# AWS Glue architecture: crawlers, Data Catalog and ETL jobs

> A deep dive into AWS Glue: crawlers and classifiers, the shared Data Catalog, Spark jobs, Glue Studio, Data Quality, triggers and workflows, job bookmarks, and what DPUs cost.

## Key takeaways

- The Data Catalog is the part everything else shares: Athena, Redshift, EMR and Lake Formation all read the same tables.
- Crawlers are a convenience, not a contract. Review what they create, or define important tables yourself.
- Spark jobs are the workhorse. Glue for Ray is closed to new customers, and Python shell is a small, older option.
- You pay per DPU-hour, billed by the second. Right-size workers, use Flex for jobs that can wait, and set timeouts.

[Open this diagram in archhy](https://archhy.com/app#d=N4IgLglmA2CmIC4QEEDqBlABAcWgV1kwEMAnAYwAspYyw8TYFMySiB3OEgZwBpMARImCKYAwkKLQA9gHNiAOwAmmAKIAVADKYAVlIBGXEDxDQiATyl4w-CA1oQp8xCA0AlIyAC2sYYlAzpPUlDBFAuCik2ADkpRVg1MwAHWBCwEgJjCC50eSJElVy9OEVENIyQGRIIRXQIAC94BAAmAAZjCkkAM2wqxVciCGgQzuDYY1ZB9DAzOGcyOCInY0SIWnpG0EgYRrLYAF8D43lYlMQAbVBq53ZDY1M9WGhnNCxRaTwS42nk54w3y0+JnMljAfhAAA9EG0QGYocY2NUwBREABGABsAA5oRRYBAZBRQQgAJwtaF1ACSSlgkIQAFoUaSWodLiUkAwZA4lkCHk8kK5YBzHB5vo0QPzBVzEqRYPIwOTWSAbh5TBYrGCaa1jLCEAAWaEIxRI1FovXtXH4wkYvXMkBXJBcSzkU53Ig85zoR1kZ3gJKigBCliUpFhy2lsvlznZnI8eikJDiJCmM1FiikYDAsEBKpB6sQmphiFNIANRuaRZxeIJiAA7FibXaQHGE1xaYo9MrXY9nAB5eOwbiYRQSIJcQgAClc-HQfAAUvw-aIAJTC33OSfoDxShjhhUO+he25A1WE0Aa6HarHwxHI5qks2Vwko1r1hWsNgdt189iYOqOceidAADVZ3QbsomILhMFMKlFGXL5VyQdAAGZNzDOVd09b1szVUIITzc9CyLEsb1abFzSrBAnyZPY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IGwNEAg1BobXHPOjdRphdpnto4tjgFkr4pBJpgE+0oaOYBaRVGusYEK4JMy1DiKkejewHl7CAA)

AWS Glue is several services under one name: crawlers that guess schemas, a catalogue that every AWS query engine reads, serverless Spark jobs, a visual editor, data quality rules and a small scheduler. This deep dive draws a typical AWS Glue architecture, explains each part and what it costs, and says where Glue stops being the right tool. It is part of our Data on AWS series; the [data lake architecture](https://archhy.com/blog/aws-data-lake-architecture) post is the overview.

## The problem: files you cannot find or trust

Data lands in S3 from databases, partners and applications. Without a catalogue, every analyst rediscovers the columns. Without a pipeline, the same CSV is cleaned five different ways. Glue gives you one place for metadata and one managed place to run the cleaning.

## The design

Read the diagram left to right ([open the diagram](https://archhy.com/app#d=N4IgLglmA2CmIC4QEEDqBlABAcWgV1kwEMAnAYwAspYyw8TYFMySiB3OEgZwBpMARImCKYAwkKLQA9gHNiAOwAmmAKIAVADKYAVlIBGXEDxDQiATyl4w-CA1oQp8xCA0AlIyAC2sYYlAzpPUlDBFAuCik2ADkpRVg1MwAHWBCwEgJjCC50eSJElVy9OEVENIyQGRIIRXQIAC94BAAmAAZjCkkAM2wqxVciCGgQzuDYY1ZB9DAzOGcyOCInY0SIWnpG0EgYRrLYAF8D43lYlMQAbVBq53ZDY1M9WGhnNCxRaTwS42nk54w3y0+JnMljAfhAAA9EG0QGYocY2NUwBREABGABsAA5oRRYBAZBRQQgAJwtaF1ACSSlgkIQAFoUaSWodLiUkAwZA4lkCHk8kK5YBzHB5vo0QPzBVzEqRYPIwOTWSAbh5TBYrGCaa1jLCEAAWaEIxRI1FovXtXH4wkYvXMkBXJBcSzkU53Ig85zoR1kZ3gJKigBCliUpFhy2lsvlznZnI8eikJDiJCmM1FiikYDAsEBKpB6sQmphiFNIANRuaRZxeIJiAA7FibXaQHGE1xaYo9MrXY9nAB5eOwbiYRQSIJcQgAClc-HQfAAUvw-aIAJTC33OSfoDxShjhhUO+he25A1WE0Aa6HarHwxHI5qks2Vwko1r1hWsNgdt189iYOqOceidA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ZOWMMQOepC5QZGKM+LXVZ6OGLhUxfK6B8DkGauwdS-VjLGNdmbK035nRbX0Cgw0BthzIGwNEAg1BobXHPOjdRphdpnto4tjgFkr4pBJpgE+0oaOYBaRVGusYEK4JMy1DiKkejewHl7CAA)): sources, Glue itself, the catalogue and curated store, then the engines that query it.

### Crawlers and classifiers

A crawler connects to a data store, such as an S3 prefix or a JDBC database, and writes table definitions into a Data Catalog database. To read a format it runs your custom classifiers first, in order, then the built-in ones for formats such as JSON, CSV and Avro. On S3 it treats folders like `year=2026/month=11/` as partitions of one table when their schemas match. Give each table its own include path: a crawler that merges two datasets under one prefix gives Athena a table that returns nothing useful.

### The Data Catalog

The catalogue holds databases, tables, partitions and schemas, one per account and Region. Athena, Redshift Spectrum and EMR all read it, so a table defined once is queryable everywhere. Lake Formation adds grants on those tables, columns and rows. The first million objects stored and the first million requests each month are free. Crawlers are only one way to fill it: jobs, the API and SQL `CREATE TABLE` statements work too.

### ETL jobs

Spark jobs run your PySpark or Scala script on serverless workers; Glue 6.0, the default for new jobs, runs Spark 4.1. Spark Streaming jobs do the same continuously. Python shell jobs run plain Python on 0.0625 or 1 DPU, and AWS's own migration guide now steers that work to Spark, Lambda or ECS. Glue for Ray closed to new customers on 30 April 2026; AWS suggests Ray on Amazon EKS instead.

### Glue Studio and Data Quality

Glue Studio is the visual editor: you connect sources, transforms and targets on a canvas, and it writes the Spark script, which you can then edit. Glue Data Quality, built on the open-source Deequ library, checks rules written in DQDL. Run them on catalogue tables to watch data at rest, or inside a job to stop bad rows before they reach the curated zone; only the in-job checks can pick out the failing records.

### Triggers, workflows and bigger orchestration

Triggers start jobs and crawlers on a schedule, on demand, or when watched jobs succeed or fail. A workflow chains them and can start from an EventBridge event, such as a file arriving, optionally batched. AWS advises keeping each workflow to 100 jobs, crawlers and triggers or fewer. When a pipeline also calls Lambda, EMR or other services, use Step Functions, which costs nothing while idle, or Amazon MWAA if your team already writes Airflow DAGs; MWAA bills even when no DAG runs.

### Job bookmarks

Bookmarks let a scheduled job process only what is new. For S3 they track object modification times; for JDBC they track a sequential key, the primary key by default. They are off by default, need a `transformation_ctx` on each source and a `job.commit()`, and only track sources: resetting a bookmark does not delete what the job already wrote.

## DPUs and cost

A DPU is 4 vCPUs and 16 GB of memory. A G.1X worker is one DPU and G.2X is two; larger G types and memory-optimised R types exist for heavy jobs. Spark jobs need at least two DPUs. The published rate is $0.44 per DPU-hour, billed per second with a one-minute minimum, so ten G.1X workers for 15 minutes cost about $1.10. Flex, at $0.29, suits jobs that can start late. Crawlers and Data Quality runs are billed in DPU-hours too. Glue 5.0 and later jobs time out after 480 minutes unless you set a limit, and you should set a shorter one.

## When not to use it

- Tiny files and short scripts: Lambda starts faster and costs less.
- Long-lived clusters with custom tuning: EMR gives you more control.
- Pure SQL transformations on data already in a warehouse: run them in Redshift.

## How to draw it in archhy

1. From the **Services** drawer, place an AWS Cloud and a Region, then four dotted boundaries: Sources, AWS Glue, Catalogue and store, Consume.
2. Search the AWS pack for Glue, Athena, Redshift, EMR, Lake Formation and Step Functions; place the RDS database and S3 buckets from the same drawer.
3. Keep metadata on the top row (crawler, catalogue) and data on the bottom row (raw, job, curated), so the two flows never cross.
4. Make trigger rails dotted and colour the write to the curated zone green, then use **File ▸ Download PNG** for your runbook.

Next in the series: [Athena vs Redshift Spectrum vs Redshift](https://archhy.com/blog/athena-vs-redshift-spectrum-vs-redshift), [ETL vs ELT on AWS](https://archhy.com/blog/etl-vs-elt-on-aws) and [S3 zones, formats and Iceberg](https://archhy.com/blog/s3-data-lake-zones-formats-iceberg).

## Frequently asked questions

### What is the AWS Glue Data Catalog used for?

It stores table definitions (schemas, locations and partitions) for data in S3 and other stores, so Athena, Redshift Spectrum, EMR and Glue jobs can query the same tables.

### Do I need a crawler for every table?

No. Crawlers are convenient for discovery, but you can create tables with SQL, the API or from a Glue job, which is safer for tables whose schema matters.

### Is AWS Glue for Ray still available?

Only to existing customers. It closed to new customers on 30 April 2026, gets security and availability fixes only, and AWS recommends Ray on Amazon EKS.

### When should I use Step Functions or MWAA instead of Glue workflows?

When the pipeline spans more than Glue, needs branching and retries across services, or your team already runs Airflow.

*Based on:* Written from the [AWS Glue Developer Guide](https://docs.aws.amazon.com/glue/latest/dg/what-is-glue.html) (crawlers, the Data Catalog, job properties, Data Quality, triggers, workflows and job bookmarks) and the [AWS Glue pricing page](https://aws.amazon.com/glue/pricing/), checked in November 2026. The orchestration comparison draws on AWS Prescriptive Guidance. The diagram and the commentary are archhy's own.
