internalsGet Pro

Module 04 · Lesson 10 of 10Pro

Choosing a file format for your workload

Level
Intermediate
Topic
Data formats and file storage
Reading time
16 min

When you finish this page you can

  1. Use four questions to pick a file format: who reads it, one record or many, how it is read, and how long it is kept.
  2. Choose the format, codec, partition layout and file size for exchange files, events, analytics files and archives.
  3. Explain why data changes format at each boundary of a pipeline, and why the file that arrived is kept.
  4. Name the change in volume, readers or rules that would make each choice change.

Builds on 6 lessons

Start with lesson 214 min
  1. CSV and JSON: simple but costly at scale14 min
  2. Parquet: columnar files for analytics17 min
  3. Avro and Protobuf: schemas for events17 min
  4. Compression and encoding: smaller, faster files17 min
  5. Partitioning files by date and key16 min
  6. Object storage for data: buckets, prefixes and costs14 min

A fourth partner asks which format to send

is an online store in India, with about 60,000 orders and 10 million click events a day. Meera, its data engineer, runs the nightly job that moves this data into and into files that analysts, the ML team and outside partners read. Daniel, who leads finance reporting, reads the results at 07:00.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan