Skip to main content
Intermediatehow it works Verified ~8 min

What are the main components of AWS Glue?

Source: AWS Glue Developer Guide

Quick answer

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

ComponentWhat it does
Data CatalogCentral metadata store: databases, tables, partitions and schemas. Shared with Athena, EMR, Redshift Spectrum and Lake Formation
CrawlersScan a data store, infer schema and partitions, and create or update catalog tables
ETL jobsServerless code that reads, transforms and writes data. Types: Spark (PySpark or Scala), Spark Streaming, Python shell (small jobs) and Ray
Triggers and workflowsSchedule or chain crawlers and jobs (on schedule, on demand, or on job completion). Many teams use Step Functions or Airflow instead
Glue StudioVisual job authoring and monitoring, plus notebooks and interactive sessions
Job bookmarksRemember what a job already processed, so the next run reads only new data
Data QualityRules written in DQDL (for example completeness and uniqueness), run inside jobs or on catalog tables
Schema RegistryStores and versions schemas (Avro, JSON, Protobuf) for streaming producers and consumers, with compatibility checks
ConnectionsStored settings and credentials for JDBC and other data stores, including VPC access

How a typical pipeline uses them

output.txt
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), larger G.4X and G.8X for heavy jobs, G.025X for small streaming jobs, and Z.2X for 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)

data.json
{
  "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.

Animated explanation
  1. Triggers and workflowsschedule or chain crawlers and jobs
  2. Data QualityDQDL rules run inside jobs or on tables
  3. ETL jobsserverless Spark, Python shell or Ray, sized in DPUs
  4. Crawlersinfer schema and partitions, update the Catalog
  5. Data Catalogdatabases, tables, partitions shared with Athena and EMR
Glue components from orchestration at the top down to the shared metadata store.

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

Discussion