Skip to content

Appendix A: The Apache Ecosystem

Sooner or later every data platform becomes a list of Apache project names: Kafka, Flink, Spark, Iceberg, Cassandra, Druid, Solr, Airflow, Arrow. Without a map, that list is trivia. This chapter gives you the map. It is a bird’s-eye view rather than a deep dive: every box on it is covered in depth elsewhere in this book or its sibling books, and the value here is knowing which box to reach for and why, not re-deriving the internals.

Concepts from other sections (20)

This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.

The organizing idea is to group projects by the problem they solve rather than by age or popularity. Seven problem families cover the stack: coordination and metadata, messaging and streaming, storage and tables, OLAP and real-time analytics, search, orchestration and interchange, and graph. The chapter walks them in pipeline order, then steps back to the two threads that explain why the stack looks the way it does: much of it is an open re-implementation of Google’s papers, and the Apache Software Foundation’s governance model is what makes “Apache X” a signal of longevity. It closes with a decision table that maps problems to projects.

Learning objectives

  • Name the one problem each major Apache data project solves, grouped into seven problem families.
  • Identify the single architectural decision that separates look-alike projects: Kafka and Pulsar, Flink and Spark, Iceberg and Hudi and Delta, Parquet and Iceberg.
  • Trace the Google-paper lineage behind HDFS, HBase, Hadoop, and Beam and Flink.
  • Explain what ASF governance guarantees and why it matters when you standardize on a project.
  • Choose a project for a stated requirement and say what you would swap if that requirement changed.

This chapter leans on the storage and batch/streaming material in Data Engineering (start at its front matter), and on the replication, consensus, and CAP vocabulary of System Design in this book. The earlier chapters of this book, Messaging and Distributed Queueing and Search and Indexing, supply the depth behind two of the families here.

Read actively. For each family below, say out loud the one problem it solves before you read the projects in it; if you cannot, you will collect trivia instead of building a mental index. When two projects look interchangeable, look for the one architectural decision that separates them, because that difference is the whole reason both exist. And follow the links to go deep: do not try to learn Kafka or Iceberg from this page.

The Apache Software Foundation is best understood as a de-facto standard library for distributed data. The recurring hard problems of large-scale systems (coordinate this cluster, move this firehose of events, store this petabyte cheaply, answer this aggregation in 50 ms, search this corpus, schedule this DAG) each get an open, governed, vendor-neutral reference implementation there. When a hard distributed-systems problem becomes common enough, an Apache project usually crystallizes as its reference answer.

The ASF does not write the code. It provides the governance model (meritocracy, the “Apache Way,” and a foundation that holds the trademark and IP) that lets a project outlive any single company. That is why “Apache X” is a signal: it means a community, not a vendor, owns the roadmap. Here is the whole stack, grouped by problem:

graph TD
    subgraph COORD["Coordination & metadata"]
        ZK[ZooKeeper -- ZAB]
        KRAFT[Kafka KRaft -- self-managed]
    end
    subgraph MSG["Messaging & streaming"]
        KAFKA[Kafka]
        PULSAR[Pulsar + BookKeeper]
        FLINK[Flink]
        SPARK[Spark]
        BEAM[Beam]
    end
    subgraph STORE["Storage & tables"]
        HDFS[HDFS]
        CASS[Cassandra]
        HBASE[HBase]
        ICE[Iceberg / Hudi]
        PARQ[Parquet / ORC]
    end
    subgraph OLAP["OLAP / real-time analytics"]
        DRUID[Druid]
        PINOT[Pinot]
        KYLIN[Kylin]
    end
    subgraph SEARCH["Search"]
        LUCENE[Lucene]
        SOLR[Solr]
    end
    subgraph ORCH["Orchestration & interchange"]
        AIRFLOW[Airflow]
        ARROW[Arrow]
    end
    subgraph GRAPH["Graph"]
        AGE[Apache AGE]
    end
    MSG --> STORE
    STORE --> OLAP
    STORE --> SEARCH
    ORCH -.schedules/moves.-> MSG
    ORCH -.schedules/moves.-> STORE
    COORD -.coordinates.-> MSG
    COORD -.coordinates.-> STORE

Read the map as a pipeline. Events arrive through messaging, land in storage (raw files, wide-column rows, or open tables), and are served to OLAP engines and search indexes, with everything coordinated and orchestrated, and with graph as a specialized lens for when relationships are the data. The running example, Streamflow, threads the whole map: clickstream events flow into Kafka, then into Flink for real-time aggregates and Spark for nightly batch, then into Iceberg tables on object storage, and from there into Druid for sub-second dashboards and Solr for the product search box, all scheduled by Airflow. As you read each family, ask which project sits at each Streamflow stage, and what you would swap if a requirement changed: sub-second latency, multi-region writes, ad-hoc OLAP.

The unglamorous foundation answers questions like who the leader is, which broker owns which partition, and what the current cluster configuration is. This is a consensus problem, and getting it wrong corrupts everything above it. Two projects matter.

ProjectWhat it isThe one problemArchitecture idea
ZooKeeperA replicated, hierarchical key-value store (znodes) for coordinationReliable cluster metadata, leader election, locksZAB (ZooKeeper Atomic Broadcast): a leader-based total-order broadcast protocol, Paxos-adjacent; a strongly consistent small-data store
Kafka KRaftKafka’s built-in Raft quorum that replaces ZooKeeperRemove the external coordinator dependencyMetadata becomes an internal Raft-replicated log on the brokers themselves: one fewer system to operate, faster failover, far higher partition counts

The story here is the move away from ZooKeeper. For a decade, ZooKeeper was the coordinator under Kafka, HBase, Solr, and more. Operating a separate ZooKeeper ensemble is real toil, and its consistency model (small data, watch-based) does not scale to millions of partitions. Kafka’s KRaft mode, the production default since Kafka 3.x with ZooKeeper removed entirely in 4.0, folds coordination into the brokers via Raft. Both are covered in depth in Messaging and Distributed Queueing.

The non-Apache contrast is etcd. It is also Raft-based and also a consistent metadata store, but it became the coordination substrate of the cloud-native world as the backing store for Kubernetes (see Containers, Kubernetes, and Workloads). Same problem, two lineages: ZooKeeper from the Hadoop era, etcd from the Kubernetes era.

With the cluster coordinated, the next family moves an unbounded stream of events between systems and then computes over it. This is where the most active design tension in the stack lives.

ProjectWhat it isThe one problemArchitecture idea
KafkaA distributed, partitioned, replicated commit logDurable, replayable decoupling of producers from consumersAppend-only partitioned log; ordering within a partition; consumers read at their own offset. Storage and serving are coupled in the broker
PulsarA pub-sub messaging and streaming systemThe same decoupling, with elastic, independently scaled storageCompute/storage separation: stateless brokers serve; Apache BookKeeper (a separate log-storage service of “bookies”) holds the durable ledgers. Built-in tiered storage and multi-tenancy
FlinkA true streaming, stateful processing engineLow-latency, exactly-once stateful computation over unbounded streamsEvent-at-a-time processing; keyed managed state; Chandy-Lamport aligned checkpoints for exactly-once recovery tied to source offsets
SparkA general distributed compute engine (batch plus micro-batch streaming)Optimized batch and good-enough streaming on one engineLazy DAG of transformations; Catalyst optimizer and Tungsten codegen; Structured Streaming treats a stream as an unbounded table (micro-batch by default)
BeamA unified programming model, not an engineWrite one pipeline, run it on many enginesThe Dataflow model (what, where, when, how) as a portable API; runners execute it on Flink, Spark, or Google Dataflow
Storm / SamzaFirst-generation stream processors (legacy)Early real-time stream processingStorm: at-least-once tuple processing; Samza: Kafka-native, local state. Mostly superseded by Flink; you will meet them in old systems

Two contrasts define the family. Kafka versus Pulsar comes down to coupling. Kafka couples log storage to the broker, so adding storage means adding (and rebalancing) brokers. Pulsar splits them via BookKeeper, so you scale serving and storage on separate axes, at the cost of operating more moving parts. Kafka answers back with tiered storage, offloading cold log segments to object storage, which narrows the gap. Flink versus Spark comes down to which workload is first-class. Flink is streaming-first: sub-second latency, heavy stateful logic, complex event processing. Spark is batch-first with micro-batch streaming bolted on cleanly. Reach for Flink when latency and state dominate, and for Spark when you want one engine for big batch plus simpler streaming. Beam sits above both as a portability layer for teams that refuse to marry an engine. The log itself is covered in Messaging and Distributed Queueing; the processing engines, exactly-once, and watermarks are in Batch and Streaming Processing in Data Engineering.

Streams have to land somewhere. This family is where the bytes actually live, and how files become tables with guarantees.

ProjectWhat it isThe one problemArchitecture idea
Hadoop / HDFSA distributed filesystem (the historical foundation)Store petabytes across commodity disksGFS re-implementation: NameNode (metadata) plus DataNodes (blocks), 3x replication. Largely displaced by cloud object storage (S3, GCS), but the conceptual ancestor of the whole lake
CassandraA masterless wide-column storeAlways-on, write-heavy, multi-region writesDynamo lineage: consistent-hash ring, no single point of failure, tunable quorum consistency; LSM-tree storage. Query-first modeling; partition key equals shard key
HBaseA distributed sorted map on HDFSRandom read/write over huge sparse tablesBigtable re-implementation: sorted rows split into regions, LSM (memstore plus HFiles); strong per-row consistency. Reach for it when you need Bigtable semantics on-premises
IcebergAn open table format over data filesACID, time travel, schema and partition evolution on object storageSnapshot plus manifest design: each commit writes a new immutable metadata snapshot pointing at manifest lists, then manifests, then data files. Hidden partitioning decouples layout from queries. The emerging open standard
HudiAn open table format specialized for upsertsFast incremental upserts and CDC on the lakeCopy-on-write versus merge-on-read tables; record-level indexes for mutate-heavy ingest
Delta LakeA table format (Linux Foundation, not Apache)ACID transactions via a write-ahead logA transaction log (_delta_log) of ordered JSON commits; Databricks-native origin. Listed here because it competes head-on with Iceberg and Hudi
Parquet / ORCColumnar file formats (the bytes on disk)Compact, scan-efficient analytical storageColumnar layout, per-column encoding and compression, and row-group statistics (min/max, zone maps) for predicate pushdown. The substrate Iceberg, Hudi, and Delta organize

The layering here confuses almost everyone, so state it plainly: Parquet and ORC are file formats, which say how one file is encoded, while Iceberg, Hudi, and Delta are table formats, a metadata layer that turns a directory of those files into a transactional table. Iceberg’s rise is the headline. Its engine-agnostic snapshot-and-manifest design, and its REST catalog, made it the format every major engine and cloud vendor now supports, and it is the point where the divide between lake and warehouse finally collapses into the lakehouse. Storage engines and table and file formats are covered in depth in Storage and Warehousing; Cassandra’s distribution model is also discussed in Distributed Data and Caching in Systems Engineering.

Between a streaming engine and a slow warehouse there is a gap: sub-second aggregations over fresh data. Three projects fill it.

ProjectWhat it isThe one problemArchitecture idea
DruidA real-time analytics databaseLow-latency slice-and-dice over event streamsSegment-based columnar storage, time-partitioned; ingests from Kafka and serves queries; pre-aggregation at ingest. Powers live dashboards
PinotA real-time OLAP datastoreUltra-low-latency, high-QPS user-facing analyticsColumnar segments with rich indexing (inverted, star-tree, range); built for serving analytics to end users at scale, such as “who viewed your profile”
KylinA distributed OLAP engineSub-second queries on huge dimensional dataPre-computed OLAP cubes over Hadoop and Hive; trades storage and build time for instant cube lookups. More legacy and batch-cube oriented than Druid or Pinot

Reach here when your dashboard query is too latency-sensitive or too high-QPS for a warehouse, but too analytical (a group-by over millions of rows) for an OLTP store. Druid and Pinot both ingest directly from Kafka, which closes the loop with the messaging family; Streamflow’s live dashboards sit here. Storage and Warehousing covers the columnar storage underneath.

Full-text relevance ranking is a different problem from both OLAP (aggregation) and key-value access (point lookup), and it has its own pair of projects.

ProjectWhat it isThe one problemArchitecture idea
LuceneA full-text search library (the engine core)Index a corpus and rank documents by relevanceThe inverted index (term to postings list of documents), plus tokenization, analysis, and BM25 scoring. Not a server: a JAR you embed
SolrA search server built on LuceneOperate Lucene as a distributed, queryable serviceAdds sharding, replication, an HTTP API, and faceting over Lucene. Elasticsearch and OpenSearch are the other Lucene-based servers

The key relationship is that Lucene is the engine and Solr, Elasticsearch, and OpenSearch are servers wrapped around it. That is why interview questions about inverted indexes, analyzers, and BM25 are really Lucene questions, whichever server runs in production. Streamflow’s product search box is Solr in front of a Lucene index. The internals are the subject of Search and Indexing.

Someone has to schedule the pipeline, and data has to move between systems without being re-serialized at every hop. This family handles both.

ProjectWhat it isThe one problemArchitecture idea
AirflowA workflow schedulerExpress and run dependency-ordered batch pipelinesDAGs as Python code; a scheduler triggers tasks when their upstreams succeed; rich retries and backfills. The default batch orchestrator
BeamThe unified pipeline model from the messaging familyEngine-portable data processingCross-listed: Beam is both a streaming abstraction and an orchestration-adjacent one
ArrowAn in-memory columnar interchange formatMove and share columnar data with zero copies and no serializationA standardized in-memory columnar layout so Spark, pandas, DuckDB, and Parquet readers share buffers directly. ADBC is the emerging Arrow-native database connectivity standard, a columnar JDBC/ODBC

Arrow matters more than it looks. Most data-system overhead is serializing and deserializing between processes. Arrow defines one in-memory columnar layout that everyone agrees on, so handing a table from Spark to pandas to DuckDB becomes a pointer pass rather than a re-encode. Arrow Flight, Flight SQL, and ADBC extend this to the wire. It is the quiet, frontier-relevant glue under the modern stack. Airflow DAGs and the modeling layer around them are covered in Orchestration and Modeling; Arrow and the columnar formats are in Storage and Warehousing.

The last family is for when the relationships are the data and traversals dominate.

ProjectWhat it isThe one problemArchitecture idea
Apache AGEA Postgres extension for graphsRun graph (Cypher) queries alongside relational tablesopenCypher inside Postgres: one database for relational, vector (with pgvector), and graph data, instead of bolting on a separate Neo4j

Reach here for multi-hop traversals (friends-of-friends, dependency chains, GraphRAG subgraphs) that would be self-join hell in plain SQL, when you would rather extend the Postgres you already run than operate a dedicated graph database. Distributed Data and Caching picks up graph-on-Postgres.

Having walked the families, step back. Two threads explain why the stack looks the way it does.

The first is that a striking share of the foundation is an open re-implementation of Google’s papers: GFS became HDFS, Bigtable became HBase (and, conceptually, Cassandra, which blends Bigtable’s data model with Dynamo’s distribution), MapReduce became Hadoop, and Dataflow became Beam and Flink. Read the paper and you have the architecture for free; the Apache project is the community-maintained implementation.

The second is the ASF governance model. The foundation holds the trademark and IP, enforces the Apache Way (public, merit-based, consensus-driven development), and requires a diverse community before a project graduates from the Incubator to top-level status. The payoff is vendor neutrality and longevity: “Apache X” signals that no single company can unilaterally relicense or abandon the project, which is exactly why enterprises standardize on it. Contrast the relicensing rug-pulls in the BSL and SSPL world, such as Elasticsearch’s move described in Search and Indexing; the ASF model is the structural answer to that risk.

The frontier is moving toward separation and interchange: storage split from compute (Pulsar’s BookKeeper, the lakehouse), the end of the separate coordinator (Kafka’s KRaft), open table formats (Iceberg’s rise), and zero-copy columnar interchange (Arrow and ADBC). These are where the coupled architectures of the 2010s are being unbundled, and they are worth tracking.

The map is only useful if it turns a problem into a choice. The table below does that, with the tempting wrong answer alongside.

Your problemReach forNot
Coordinate a cluster / store cluster metadataKRaft (new), etcd (cloud-native), ZooKeeper (legacy)A general database
Durable, replayable event backboneKafka (default)A traditional message queue
Independently scale messaging storage and serving, multi-tenantPulsar (BookKeeper split)Kafka, if operational simplicity matters more
Sub-second stateful streaming, exactly-once, CEPFlinkSpark Structured Streaming
Big batch plus good-enough micro-batch on one engineSparkFlink
Engine-portable pipeline codeBeamBinding to one engine
ACID tables and time travel on cheap object storageIceberg (open standard); Hudi (upsert-heavy); Delta (Databricks)A raw directory of Parquet
Always-on, write-heavy, multi-region writesCassandraA single-leader RDBMS
Bigtable-style sorted random access on-premisesHBaseA relational store
Sub-second, high-QPS user-facing analyticsPinot (or Druid)A cloud warehouse
Live operational dashboards over event streamsDruidBatch warehouse queries
Full-text relevance searchSolr or Elasticsearch (Lucene under both)A LIKE '%...%' query
Schedule dependency-ordered batch jobsAirflowCron plus glue scripts
Zero-copy columnar data interchangeArrow (plus ADBC)Re-serializing between every system
Multi-hop graph queries beside relational dataApache AGEA separate graph database you must operate

Every family on the map has a deeper treatment. Kafka and Pulsar internals, KRaft, and ZAB are in Messaging and Distributed Queueing. Flink, Spark, Beam, exactly-once, and watermarks are in Batch and Streaming Processing. HDFS, Cassandra and HBase, Iceberg, Hudi, and Parquet, Druid and Pinot, and Arrow are in Storage and Warehousing. Airflow DAGs, dbt, and the medallion pipeline are in Orchestration and Modeling. The Lucene inverted index, Solr, and BM25 are in Search and Indexing. Cassandra, Apache AGE, and etcd-style coordination appear in Distributed Data and Caching, and etcd as the Kubernetes coordinator in Containers, Kubernetes, and Workloads. The theory under every box (consensus, replication, CAP, Dynamo, and Bigtable) is in System Design.

The stack’s origins are visible in who built what. LinkedIn created Kafka, Samza, and Pinot, and leans heavily on Lucene. Netflix created Iceberg and runs Kafka and Flink at massive scale. Confluent and StreamNative sell Kafka and Pulsar as products, driving KRaft, tiered storage, and BookKeeper. Databricks created Spark, along with Delta, and now supports Iceberg too. Uber created Hudi and runs Flink and Pinot. Apple and Bloomberg run large Cassandra and Solr fleets. For any data-platform or staff infrastructure role, knowing which box to reach for, and why, is the job.

  • Apache Way: the ASF’s public, merit-based, consensus-driven development model, backed by foundation ownership of trademark and IP.
  • Compute/storage separation: an architecture in which serving nodes hold no durable data, so serving and storage scale independently (Pulsar with BookKeeper, the lakehouse).
  • File format: how one file’s bytes are encoded on disk (Parquet, ORC).
  • Table format: a metadata layer that turns a directory of data files into a transactional table with snapshots and schema evolution (Iceberg, Hudi, Delta).
  • Real-time OLAP: sub-second aggregation over fresh event data, served from columnar segments (Druid, Pinot).
  • Columnar interchange: a shared in-memory columnar layout that lets systems pass tables without serialization (Arrow, ADBC).
  • Treat the ASF as a standard library for distributed data, and pick projects by the problem they solve, not by brand.
  • Seven families cover the stack: coordination, messaging and streaming, storage and tables, OLAP, search, orchestration and interchange, and graph.
  • Look-alike projects are separated by one architectural decision: coupled versus separated storage (Kafka, Pulsar), streaming-first versus batch-first (Flink, Spark), file versus table format (Parquet, Iceberg).
  • Much of the stack re-implements Google’s papers: GFS to HDFS, Bigtable to HBase, MapReduce to Hadoop, Dataflow to Beam and Flink.
  • ASF governance buys vendor neutrality and longevity; the frontier is unbundling through storage/compute separation, KRaft, open table formats, and Arrow.
  1. What is the one architectural decision that separates Kafka from Pulsar, and what does Kafka do to narrow the gap?
    AnswerKafka couples log storage to the broker, so adding storage means adding and rebalancing brokers. Pulsar separates stateless serving brokers from BookKeeper storage, so each scales independently at the cost of more moving parts. Kafka narrows the gap with tiered storage, offloading cold segments to object storage.
  2. A colleague says “we use Parquet, so we don’t need Iceberg.” What distinction are they missing?
    AnswerParquet is a file format: it encodes one file efficiently. Iceberg is a table format: a snapshot-and-manifest metadata layer over many such files that provides ACID commits, time travel, and schema and partition evolution. Iceberg organizes Parquet files; it does not replace them.
  3. Streamflow’s product team wants a user-facing “orders in your area in the last minute” widget with thousands of queries per second. Which family and project would you reach for, and why not the warehouse?
    AnswerReal-time OLAP, specifically Pinot (or Druid). It ingests directly from Kafka and serves sub-second, high-QPS aggregations from indexed columnar segments. A cloud warehouse is too slow and too expensive per query for user-facing QPS.
  4. Why are questions about analyzers and BM25 “really Lucene questions” regardless of whether production runs Solr or Elasticsearch?
    AnswerBoth servers wrap per-shard Lucene indexes. The inverted index, analysis pipeline, and scoring all live in Lucene; the server adds sharding, replication, an API, and faceting.
  5. Map each Google paper to its open re-implementation: GFS, Bigtable, MapReduce, Dataflow.
    AnswerGFS to HDFS; Bigtable to HBase (and, conceptually, Cassandra's data model); MapReduce to Hadoop; Dataflow to Beam and Flink.
  6. What does ASF governance guarantee that a single-vendor open-source project does not?
    AnswerThe foundation, not a company, holds the trademark and IP, and projects must have a diverse community to graduate. No single vendor can unilaterally relicense or abandon the project, which protects against the kind of BSL or SSPL relicensing that happened elsewhere.