What are the main components of AWS Glue?
Source: AWS Glue Developer Guide
AWS Glue is a serverless data integration service. Its main components are the Data Catalog (metadata store), crawlers (schema discovery), ETL jobs (serverless Spark, Python shell or Ray, sized in DPUs), triggers and workflows, Glue Studio, job bookmarks, Data Quality and the Schema Registry.
AWS Glue is a serverless data integration service for discovering, preparing and moving data. You do not manage servers; you pay for the compute your jobs and crawlers use.
Components
| Component | What it does |
|---|---|
| Data Catalog | Central metadata store: databases, tables, partitions and schemas. Shared with Athena, EMR, Redshift Spectrum and Lake Formation |
| Crawlers | Scan a data store, infer schema and partitions, and create or update catalog tables |
| ETL jobs | Serverless code that reads, transforms and writes data. Types: Spark (PySpark or Scala), Spark Streaming, Python shell (small jobs) and Ray |
| Triggers and workflows | Schedule or chain crawlers and jobs (on schedule, on demand, or on job completion). Many teams use Step Functions or Airflow instead |
| Glue Studio | Visual job authoring and monitoring, plus notebooks and interactive sessions |
| Job bookmarks | Remember what a job already processed, so the next run reads only new data |
| Data Quality | Rules written in DQDL (for example completeness and uniqueness), run inside jobs or on catalog tables |
| Schema Registry | Stores and versions schemas (Avro, JSON, Protobuf) for streaming producers and consumers, with compatibility checks |
| Connections | Stored settings and credentials for JDBC and other data stores, including VPC access |
How a typical pipeline uses them
S3 raw/ --crawler--> Data Catalog table --Glue job (Spark)--> S3 curated/ (Parquet) --> Athena / Redshift
^ |
schema + partitions bookmarks, Data Quality checks
Sizing and cost
- DPU (Data Processing Unit): 1 DPU = 4 vCPU and 16 GB memory. You are billed per DPU-hour (per second, with a minimum duration).
- Worker types:
G.1X(1 DPU per worker),G.2X(2 DPU), largerG.4XandG.8Xfor heavy jobs,G.025Xfor small streaming jobs, andZ.2Xfor Ray. Choose by memory and shuffle needs. - Flex execution class: a cheaper option for non-urgent jobs that can start later and run on spare capacity.
- Glue versions: the version sets the Spark and Python versions. The release notes list 5.0, 5.1 and 6.0 (6.0 is the default for new jobs there); Glue 0.9, 1.0 and 2.0 reached end of life on 1 April 2026. Choose the newest version your libraries support.
Sample job configuration (AWS CLI input)
{
"Name": "orders-raw-to-curated",
"Role": "arn:aws:iam::123456789012:role/GlueJobRole",
"Command": { "Name": "glueetl", "ScriptLocation": "s3://my-bucket/scripts/orders.py", "PythonVersion": "3" },
"GlueVersion": "5.0",
"WorkerType": "G.1X",
"NumberOfWorkers": 10,
"ExecutionClass": "FLEX",
"DefaultArguments": {
"--job-bookmark-option": "job-bookmark-enable",
"--enable-metrics": "true"
}
}
Use it with aws glue create-job --cli-input-json file://job.json.
When Glue fits
Serverless batch ETL on S3 and JDBC sources, with the catalog shared with Athena. For very large or custom Spark tuning, EMR gives more control; for simple SQL transforms Athena or dbt may be enough.
- Triggers and workflowsschedule or chain crawlers and jobs
- Data QualityDQDL rules run inside jobs or on tables
- ETL jobsserverless Spark, Python shell or Ray, sized in DPUs
- Crawlersinfer schema and partitions, update the Catalog
- Data Catalogdatabases, tables, partitions shared with Athena and EMR
Key points
- Data Catalog holds metadata and is shared with Athena, EMR and Redshift Spectrum; crawlers fill it.
- ETL jobs are serverless Spark, Python shell or Ray, sized by DPUs (1 DPU = 4 vCPU, 16 GB) and worker types.
- Job bookmarks give incremental processing; Data Quality adds rule checks; Schema Registry versions streaming schemas.
- Flex execution is a lower-cost option for non-urgent jobs; use a current Glue version.
- Triggers and workflows handle simple orchestration; larger pipelines often use Step Functions or Airflow.
Common mistakes
- Running crawlers on huge, unchanged paths every hour instead of using partition projection or catalog APIs.
- Using too few or too many workers without checking Spark metrics.
- Leaving jobs on old Glue versions that reach end of life.
- Forgetting job.commit() so bookmarks never advance.
- Treating Glue workflows as a full orchestrator for complex dependencies.
Prerequisites
- S3 and the Hive-style partition layout
- Basics of Spark
Best practices
- Store curated data as partitioned Parquet and register it in the Catalog.
- Use Glue Data Quality rules before publishing data.
- Right-size workers from job metrics and use Flex for non-urgent runs.
- Keep job scripts and configuration in version control and deploy with IaC.
Likely follow-ups
- What is the difference between a Glue crawler and creating a table manually?
- What is a DynamicFrame and how does it differ from a Spark DataFrame?
- How do Glue job bookmarks work and what are their limits?
- When would you pick Glue instead of EMR or Athena CTAS?
- How do you choose between G.1X and G.2X workers?
References
- Amazon S3: data consistency model
- Amazon S3: performance guidelines
- AWS Glue: job properties and worker types
- AWS Glue: job bookmarks
- AWS Glue: DynamicFrame class
- AWS Glue: partitions and pushdown predicates
- AWS Glue: EventBridge events
- Amazon Athena: performance tuning
- Amazon Athena: partition projection
- Amazon Athena: pricing
- AWS Lambda: quotas
- AWS Lambda: asynchronous invocation error handling
- AWS Lambda: retry behaviour
- AWS Step Functions: error handling
- AWS Step Functions: Standard vs Express
- AWS Step Functions: AWS Glue integration
- Amazon DynamoDB: condition expressions
- AWS Secrets Manager
- AWS Systems Manager Parameter Store
- IAM: security best practices
- Amazon EMR: instance types and Spot best practices