AWS Glue: 4 Comprehensive Aspects

on Data Integration, Data Warehouse, ETL • September 15th, 2021 • Write for Hevo

With the vast sea of information that is growing every day, most organizations are looking towards Cloud-based solutions to collect, store and work on their data. Furthermore, the ETL process is necessary to convert the data collected from numerous sources into a common format that is accepted by the Data Warehouse. AWS Glue is one such ETL tool.

Are you looking to learn more about AWS Glue and its fitment for your ETL needs? If yes, you have landed on the right post. This blog helps you decode some of the key aspects to consider while evaluating AWS Glue (or any ETL solution for that matter): Glue’s Features, Pricing, Use Cases, and Limitations. Before we dive in, let us try to understand a little about the ETL process itself. This will set some more context and help appreciate the features of Glue better.

Table of Contents

What is AWS Glue?

AWS Glue Logo
Image Source

AWS Glue is a fully managed service provided by Amazon for deploying ETL jobs. AWS Glue reduces the cost, lowers the complexity, and decreases the time spent creating ETL jobs. For companies that are price-sensitive, but need a tool that can work with different ETL use cases, Amazon Glue might be a decent choice to consider. 

Launched sometime around August 2017, Glue has come a long way in adding value to its users. Here are some of the noteworthy pointers about Glue:

  • Glue is a “Serverless” service. Hence, you do not need to provision or manage any resources or services.
  • With AWS Glue, you only pay for resources when Glue is actively running. 
  • Amazon Glue ETL comes with “crawlers” that can create metadata to view the data stored in S3. This metadata comes very handy while authoring ETL jobs.
  • With the use of Python scripts, Glue can translate one source format to another source format.
  • Glue allows you to create a development endpoint by yourself. This gives you the power to construct your ETL scripts swiftly and easily.

How AWS Glue Works?

AWS Glue organizes all the ETL data transfer and transformation using other AWS services into Data Lakes such as Amazon S3 and Data Warehouses i.e., Amazon Redshift. AWS Glue uses APIs support to extract data from sources and then transform it to perform Data Integration jobs.

With the help of AWS Glue, one can schedule the ETL jobs or set the trigger events for the jobs to start. It generates code based on the input given by the user, and then AWS Glue automatically extracts data and transforms it based on the code. One can change the code in the scripts as per need. After that, AWS Glue writes the metadata from the job into AWS Glue Data Catalog, which acts as a metadata repository.

AWS Glue provides a console management service that allows users to get notifications for every job, create and monitor ETL jobs. Once a user supplies valid credentials to AWS Glue to access data from sources, the console allows users to perform administrative tasks.

Hevo Data: A Simpler Alternative to AWS Glue

Hevo Data is a simple to use Data Pipeline Platform that helps you load data from 100+ sources to any destination in real-time without having to write a single line of code. Hevo helps you overcome the limitations presented by Glue.

Get Started with Hevo for Free

Here is why Hevo is the right ETL partner for you: 

  • Minimal Setup Time: No Learning Curve: Hevo has a point-and-click visual interface that lets you connect your data source and destination in a jiffy. No ETL scripts, cron jobs, or technical knowledge is needed to get started. Your data will be moved to the destination in minutes, in real-time.  
  • Automatic Schema Mapping: Once you have connected your data source, Hevo automatically detects the schema of the incoming data and maps it to the destination tables. With its AI-powered algorithm, it automatically takes care of data type mapping and adjustments – even when the schema changes at a later point.
  • Mature Data Transformation Capability: Hevo allows you to enrich, transform and clean the data on the fly using an easy Python interface. What’s more – Hevo also comes with an environment where you can test the transformation on a sample data set before loading to the destination.
  • Secure and Reliable Data Integration: Hevo has a fault-tolerant architecture that ensures that the data is moved from the data source to destination in a secure, consistent and dependable manner with zero data loss. 
  • Unlimited Integrations: Hevo has a large integration list for Databases, Data Warehouses, SDKs & Streaming, Cloud Storage, Cloud Applications, Analytics, Marketing, and BI tools. This, in turn, makes Hevo the right partner for the ETL needs of your growing organization.
Sign up here for a 14-Day Free Trial!

Features of AWS Glue

Since Amazon Glue is completely managed by AWS, deployment, and maintenance are super simple. Below are some important features of Glue: 

1) Integrated Data Catalog

The Data Catalog is a persistent metadata store for all kinds of data assets in your AWS account. Your AWS account will have one Glue Data Catalog. This is the place where multiple disjoint systems can store their metadata. In turn, they can also use this metadata to query and transform the data. The catalog can store table definitions, job definitions, and other control information that help manage the ETL environment inside Glue.

2) Automatic Schema Discovery

AWS Glue allows you to set up crawlers that connect to different data sources. It classifies the data, obtains the scheme-related info, and automatically stores it in the data catalog. ETL jobs can then use this information to manage ETL operations.

3) Code Generation

AWS Glue comes with an exceptional feature that can automatically generate code to extract, transform and load your data. The only input Glue would need is the path/location where the data is stored. From there, glue creates ETL scripts by itself to transform, flatten and enrich data. Normally, scala and python code is generated for Apache spark.

4) Developer Endpoints

This is one of the best features of Amazon Glue and helps interactively develop ETL code. When Glue automatically generates a code for you, you will need to debug, edit and test the same. The Developer Endpoints provide you with this service. Using this, custom readers, writers or transformations can be created. These can further be imported into Glue ETL jobs as custom libraries.

5) Flexible Job Scheduler

One of the most important features of Glue is that it can be invoked as per schedule, on-demand, or on an event trigger basis. Also, you can simply start multiple jobs in parallel. Using the scheduler, you can also build complex ETL pipelines by specifying dependencies across jobs. AWS Glue ETL always retries the jobs in case they fail. They also automatically initiate filtering for infected or bad data. All kinds of inter-job dependencies will be handled by Glue. 

To learn more about the Features of Amazon Glue, visit here.

Pricing of AWS Glue 

AWS Glue always charges an hourly rate, billed by the second. The pricing will depend on crawlers – that discover the data and ETL Jobs – that process and load your data. In addition to this, a simple monthly fee is involved to store and access metadata from the Data Catalog. As per the free tier rules of Glue, Amazon does not charge for the first million objects stored and the first million objects accessed/requested. In addition to this, if you create a developer endpoint to generate develop your ETL code, you will have to pay an hourly rate, billed per second. Yes, the pricing structure can be slightly overwhelming. Let us look at some scenarios to understand this better:

  • ETL Jobs For this example, consider Apache Spark as a Glue job type that runs for 10 minutes and consumes 6 DPUs. The Price of 1 Data Processing Unit (DPU) – Hour is 0.44 USD. Since your job ran for 10 Minutes of an hour and consumed 6 DPUs, you will be billed 6 DPUs X 10 minutes at $.44 per DPU-hour or $0.44.
  • Development Endpoint – Now let’s assume that you will provide a development endpoint to direct connect to your computer to interactively develop your ETL code. If 5 DPUs have been provisioned for your endpoint, then you need to run this development endpoint for 24 minutes. Hence you will be charged for 5 DPUs X 24 Minutes at $.44 per DPU-Hour or $.88. 
  • AWS Glue Data Catalog billing Example – As per AWS Glue Data Catalog, the first 1 million objects stored and access requests are free. In case you store more than 1 million objects and place more than 1 million access requests, then you will be charged.  Let’s assume that you will use 330 minutes of crawlers and they hardly use 2 data processing units (DPU). The number of objects stored is < 1 million. Hence the storage cost is 0. Assume that your access requests exceed 1 million requests. In this case, you will be charged $1. Crawlers will be charged at .44 USD per Data Processing Unit (DPU)-Hour, and you will pay for 2 Data Processing Unit (DPU)s X 30 minutes at $.44 or $.44. Hence the monthly total bill will be $ 1.44.

To learn more about the Pricing Structure of Amazon Glue, visit here.

Use Cases of AWS Glue

This section highlights the most common use cases of Glue. You can use Glue with some of the famous tools and applications listed below: 

1) AWS Glue with Athena

AWS Athena Logo
Image Source

In Athena, you can easily use AWS Glue Catalog to create databases and tables, which can later be queried. Alternatively, you can use Athena in AWS Glue ETL to create the schema and related services in Glue.

2) AWS Glue for Non-native JDBC Data Sources

AWS Glue by default has native connectors to data stores that will be connected via JDBC. This can be used in AWS or anywhere else on the cloud as long as they are reachable via an IP. AWS Glue natively supports the following data stores- Amazon Redshift, Amazon RDS ( Amazon Aurora, MariaDB, MSSQL Server, MySQL, Oracle, PgSQL.)

To learn more about Amazon Redshift, visit here.

3) AWS Glue Integrated with AWS Data Lake

AWS Data Lake Logo
Image Source

AWS Glue can be integrated with AWS Data Lake. Further, ETL processes can be run to ingest, clean, transform and structure data that is important to you.

4) Snowflake with AWS Glue

Snowflake with AWS Glue
Image Source

Snowflake has great plugins that seamlessly gel with AWS Glue. Snowflake data warehouse customers can manage their programmatic data integration process without worrying about physically maintain it or maintaining any kind of servers and spark clusters. This allows you to get the benefits of Snowflake’s query pushdown, SQL translation into Snowflake, and Spark workloads. 

To know more about Snowflake Data Warehouse, visit here.

Limitations and Challenges of AWS Glue

While there are many noteworthy features of AWS glue, there are some serious limitations as well. 

  • In comparison to the other ETL options available today, Glue has only a few pre-built components. Also, given it is developed by and for the AWS Console, it is not open to match all kinds of environments.
  • Glue works well only with ETL from JDBC and S3 (CSV) data sources. In case you are looking to load data from other cloud applications, File Storage Base, etc. Glue would not be able to support.
  • Using Glue, all data is first staged on S3. This sync has no option for incremental sync from your data source. This can be limiting if you are looking at ETL data in real-time.
  • Glue is a managed AWS Service for Apache spark and not a full-fledged ETL solution. Tons of new work is required to optimize pyspark and scala for Glue. 
  • Glue does not give any control over individual table jobs. ETL is applicable to the complete database.
  • While Glue provides support to writing transformations in scala and python, it does not provide an environment to test the transformation. You are forced to deploy your transformation on parts of real data, thereby making the process slow and painful.
  • Glue does not have good support for traditional relational database types of queries. Only SQL types of queries are supported that too through some complicated virtual table.
  • The learning curve for Glue is steep. If you are looking to use glue for your ETL needs, then you would have to ensure that your team comprises engineering resources that have a strong knowledge of spark concepts.
  • The soft limit of handling concurrent jobs is 3 only, though it can be increased by building a queue for handling limits. You will have to write a script to handle a smart auto-DPU to adjust the input data size.

Conclusion

The article discussed AWS Glue in great detail. It introduced you to the concept of the ETL process and AWS Glue. Furthermore, it explained the 4 essential aspects of this ETL tool: Features, Pricing, Use Cases, and Limitations. Now, AWS Glue although is an efficient tool, still faces certain limitations which were discussed above.

Visit our Website to Explore Hevo

To overcome these bottlenecks, check out Hevo Data, a No-code Data Pipeline that helps you transfer data from a source of your choice in a fully automated and secure manner without having to write code repeatedly. Hevo Data, with its strong integration with 100+ sources & BI tools, allows you to export, load, transform & enrich your data & make it analysis-ready in a jiffy. 

For a greater understanding of AWS Glue, check out the following link!

Want to take Hevo for a spin? Sign Up for a 14-day free trial and experience the feature-rich Hevo suite first hand.

Share your experience of this blog in understanding AWS Glue in the comments section!

No-code Data Pipeline for your Data Warehouse