STACK
Ch 10 · Data Engineering & Analytics
Chapter 10 · From raw to insight

Data Engineering — pipelines, lakehouse, streaming, contracts

Ingestion, transformation, storage formats, orchestration, semantic models, real-time vs batch, schema registries, data contracts, observability. The modern data platform.

10.1 · The modern data stack (2026)

Sources→ Ingest (Airbyte, Fivetran, CDC)→ Lakehouse (Iceberg/Delta on S3)→ Transform (dbt, Spark, Polars)
Warehouse / OLAP→ Semantic layer (Cube, dbt Semantic, Malloy)→ BI / apps / reverse-ETL

10.2 · ETL vs ELT

ETLELT
Transform happensBefore load (in pipeline)After load (in warehouse)
Modern defaultLegacy / regulatedYes — cheap warehouse compute
ToolsInformatica, TalendAirbyte / Fivetran + dbt

10.3 · Ingestion

SourcePicks
SaaS connectorsFivetran, Airbyte, Hevo, Stitch.
Database CDCDebezium, Estuary, AWS DMS, Postgres logical replication.
Event streamsKafka Connect sinks; Kinesis Firehose; Pub/Sub → BigQuery.
Files / S3Snowpipe, BigQuery Data Transfer, Iceberg auto-ingest.
Webhooks / eventsRudderStack, Segment, Snowplow.

10.4 · Lakehouse — open table formats

FormatNotes
Apache IcebergDe-facto winner (2025+); used by Snowflake, BigQuery, Databricks, Redshift, Trino, DuckDB.
Delta LakeDatabricks-originated; strong on Spark.
Apache HudiUber-originated; strong on upserts + streaming.

Underlying file format: Parquet (columnar) — read by every engine. Iceberg's REST catalog (Polaris, Tabular/Iceberg REST) standardises metadata access.

10.5 · Transformation — dbt & SQL

  • dbt (Core + Cloud + Fusion) — SQL models, tests, lineage, docs. The modern transformation standard.
  • SQLMesh — alternative emphasising forward/back-fill correctness, virtual environments.
  • Spark / Polars / DuckDB — when SQL isn't enough or scale demands it.
  • Iceberg + DuckDB — local-first analytics on warehouse data.

10.6 · Orchestration

ToolNotes
AirflowThe classic; Python DAGs; huge ecosystem.
DagsterAsset-oriented; strong types; modern UX.
PrefectPythonic; cleaner than Airflow's defaults.
Argo WorkflowsK8s-native DAGs; great for ML / data tasks.
Mage / KestraNewer entrants.
Temporal / InngestDurable execution (also used for data jobs).

10.7 · Streaming

EngineNotes
Apache Kafka / RedpandaAppend-only logs; the backbone.
Apache FlinkTrue streaming, exactly-once, stateful processing.
Apache Spark Structured StreamingMicro-batch; great if you already use Spark.
RisingWave / MaterializeStreaming SQL databases; incrementally maintained views.
ksqlDBSQL over Kafka.
Apache BeamUnified batch + stream model.

10.8 · Schema registry & data contracts

  • Schema registry (Confluent Schema Registry, Apicurio) stores Avro / protobuf / JSON Schema for streams.
  • Compatibility modes: backward, forward, full. Enforce in CI.
  • Data contracts — producer-owned, versioned, SLA'd. Tools: dbt Contracts, Datacontract.com spec, Schemata.

10.9 · Semantic layer

One place defining metrics ("monthly active users") so every dashboard agrees. Tools: dbt Semantic Layer / MetricFlow, Cube, Malloy, LookML.

10.10 · BI & reverse ETL

LayerPicks
BILooker, Tableau, Metabase, Superset, Hex, Lightdash, Power BI.
NotebooksHex, Deepnote, Observable, Marimo, Jupyter, VS Code notebooks.
Reverse ETLHightouch, Census — push warehouse data back to SaaS (Salesforce, HubSpot).

10.11 · Data quality & observability

  • Tests: dbt tests, Great Expectations, Soda, Elementary.
  • Observability: Monte Carlo, Bigeye, Acceldata, Datafold; column-level lineage.
  • SLOs on data freshness, volume, schema stability — alarm before stakeholders notice.

10.12 · Self-check

Q1 · Open table format that became the cross-vendor default in 2025–2026?
Delta Lake
Apache Iceberg
Parquet only
Avro