Menu

1 / 7

Build a Serverless Data Lake on AWS with S3, Glue and Athena

DEV Community: serverless·Nii Yartey Gidiglo·3 days ago
#zNvdASJC
#devtoserverless#devto#dev#name#orders
Long article (1858 words) — no AI summary yet.
Reading 0:00
15s threshold

I wanted to answer questions like "which product category made the most money in March?" from a pile of CSV files, without standing up a database or a cluster. On AWS the answer is a small serverless data lake : the files stay in Amazon S3 , an AWS Glue crawler works out the schema, and Amazon Athena runs plain SQL against them. There's nothing to keep running, and I only pay for the data each query reads.

In this post I'm building one with 150,000 synthetic e-commerce orders. Then I'm converting the data to Parquet and running the same query again. It read about 95% less data (12.6 MB down to 635 KB) and returned exactly the same answer.

What I'm building

sample CSVs ──▶ S3 raw/orders/year=2026/month=01..06/ (Hive-style partitions) │ ▼ Glue crawler ──▶ Glue Data Catalog (database: sales_lake, table: orders) │ ▼ Athena workgroup (1 GB per-query scan limit) │ CTAS ▼ S3 curated/orders/ (Parquet + Snappy) ──▶ table: orders_parquet

Enter fullscreen mode

Exit fullscreen mode

S3 stores the raw files and the…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.