Library

Volume 1 · Data & Big Data Platforms

Notebook
Sign in

Cheat Sheet — Part 9: Data & Big Data Platforms

681 words · about 3 min

Key Terms

Term In one line
Data lake Centralized, schema-on-read, one team owns it
Data warehouse Structured, schema-on-write, curated
Lakehouse Lake storage with warehouse guarantees — ACID, time travel, CDC (Delta/Iceberg/Hudi)
Data mesh Domain-owned data products with federated governance — an org design as much as a tech one
Predicate pushdown Filter at the storage layer before loading
Broadcast join Ship the small table to every node instead of shuffling both
AQE Adaptive Query Execution — Spark 3.x re-plans mid-query on real statistics
Partition / consumer group / RF Kafka’s parallelism unit / shared work group / replication factor (usually 3)
Exactly-once Idempotent producers + transactions — not free, and not the default
Schema registry Versioned Avro/Protobuf contracts between producers and consumers

Numbers That Matter

Figure Value Where it bites
Kafka throughput 1M+ msg/sec Retention configurable days→forever; pull-based consumers
Kinesis Shard-based, managed Simpler ops, less ecosystem, push/pull hybrid
Replication factor RF=3 The durability default
IoT scale check 10,000 machines × 10 sensors × 1 msg/s = 100,000 msg/s Do this arithmetic out loud
Ordering Guaranteed per partition, never globally The most common Kafka misconception

Decision Rules

  • Ordering is per-partition only. If a financial stream needs strict ordering, the ordering key must map to a partition — and that caps your parallelism at the partition count. Say this trade-off explicitly; it’s the question behind the question.
  • Kafka when you need high volume, complex routing, long retention, replay, and the ecosystem (Connect, Streams, ksqlDB). Kinesis/managed when you want the operational burden gone and the ecosystem isn’t the draw.
  • Spark tuning order: partitioning (even distribution first — skew beats every other optimization), broadcast joins for small tables, columnar formats with predicate pushdown, caching for reused datasets, and let AQE handle what it can at runtime.
  • Lakehouse over lake+warehouse when you want one copy of the data with ACID and time travel; the duplicate-pipeline tax of maintaining both is the cost you’re removing.
  • Data mesh is an organizational decision. It works when domains genuinely have the capability to own data products; imposed on teams without that capacity it produces the same silos with more ceremony.
  • Databricks when you want unified ETL + analytics + ML with MLflow and Delta. EMR + warehouse when you’re deep in one cloud, data engineering and data science are separate teams, cost matters and spot instances are on the table.
  • Real-time vs batch is a cost question as much as a latency one. Streaming is always-on spend; if the business genuinely acts daily, a batch pipeline is the correct architecture and the cheaper one.
  • Lineage is a compliance requirement, not a nice-to-have — for GDPR, HIPAA and model audit you must be able to answer “where did this figure come from.”

Say This Out Loud

“Kafka guarantees ordering within a partition, never across the topic. So for an ordered financial stream, the design question is what the partition key is — usually account ID, which gives you strict ordering per account and lets different accounts process in parallel. The trade-off worth naming is that your maximum consumer parallelism is now the partition count, and repartitioning a live topic is painful, so I’d size partitions for the traffic I expect in two years rather than today.”

“Ten thousand machines with ten sensors each at one message per second is a hundred thousand messages a second. I’d say that arithmetic out loud before choosing anything, because it determines the answer — a hundred thousand a second is comfortable for a partitioned log or a managed stream with the right shard count, and it would be a poor fit for a traditional message broker designed around per-message routing and acknowledgement.”

“When Spark is slow I look at skew before anything else. Broadcast joins, columnar formats and predicate pushdown are all real wins, but they’re marginal if one partition holds most of the data and a single task is doing all the work while the cluster idles. Adaptive Query Execution helps because it re-plans mid-query on actual statistics rather than stale estimates, but it can’t fix a genuinely bad partition key.”