
When a system grows past a handful of services, the hard part is no longer any single service. It is the data moving between them. Orders have to reach billing, stock, shipping and analytics; every click, sensor reading or payment has to land in several places at once; and a slow consumer must not bring down the service that produced the data. Apache Kafka was built for exactly that problem: it gives every system one durable, ordered stream of events to write to and read from, at very high volume.
This article explains what Kafka is, how it works, where it fits, where a simpler tool is the better choice, and how it compares with RabbitMQ and the managed alternatives.
What is Apache Kafka?
Apache Kafka is an open-source distributed event streaming platform. Applications publish events, such as "order created" or "temperature reading", to Kafka; Kafka stores them durably on disk in the order they arrived; and any number of other applications read them, in real time or later.
Kafka was built at LinkedIn by Jay Kreps, Neha Narkhede and Jun Rao to move activity and operational data between LinkedIn's systems. LinkedIn open-sourced it on 11 January 2011, it entered the Apache Incubator the same year and became a top-level Apache Software Foundation project in 2012. Kafka 1.0 was released on 1 November 2017. Its creators went on to found Confluent in 2014, which offers a commercial platform and a managed cloud service around Kafka, while the project itself stays under the Apache 2.0 licence.
The most important recent change came with Kafka 4.0 in March 2025. Older versions needed a separate Apache ZooKeeper cluster to store metadata; Kafka 4.0 runs only in KRaft mode, where Kafka manages its own metadata. That removed a whole system that teams used to deploy, secure and monitor.
How Apache Kafka works
Topics and partitions. Events are written to topics, named streams such as orders or payments. Each topic is split into partitions, and each partition is an append-only log: new events go to the end, and every event gets a sequential number called an offset. Partitions are what let Kafka scale, because different partitions live on different servers and are read in parallel.
Brokers and replication. A Kafka cluster is a set of servers called brokers. Every partition is copied to several brokers, typically three. One copy is the leader that handles writes; the others follow it. If a broker fails, a follower takes over and no committed data is lost.
Producers and keys. Producers are the applications that write events. An event can carry a key, such as a customer ID, and all events with the same key go to the same partition. That is how Kafka guarantees order where it matters: events for one customer are read in the order they were written.
Consumers and consumer groups. Consumers read events and remember their position by committing offsets. Consumers that share a group ID split the partitions of a topic between them, so adding consumers spreads the work. Different groups, such as billing and analytics, each read the full stream independently.
Retention instead of deletion. A traditional message queue deletes a message once it is consumed. Kafka keeps events for a configured time or size, or keeps the latest value per key with log compaction. A new service can therefore read history from the beginning, and a consumer with a bug can be fixed and replayed.
Key features
- High throughput from sequential disk writes, batching and partitioning, which lets a cluster handle very large event volumes.
- Durability and replay: events are replicated and retained, so they can be reprocessed.
- Ordering per key within a partition, which covers most business needs without global ordering.
- Kafka Connect for moving data between Kafka and databases, search engines and storage with ready-made connectors.
- Kafka Streams, a library for filtering, joining and aggregating streams inside your own application.
- Transactions and exactly-once processing for pipelines that must not count an event twice.
- Clients for many languages: the official Java client, plus widely used clients for .NET, Go, Python and Node.js.
Where Apache Kafka is used
- Event-driven microservices: services publish what happened and others react, without calling each other directly. The services and often the brokers themselves run in containers on Kubernetes.
- Data pipelines and change data capture: database changes, often captured with tools such as Debezium, flow into search indexes such as Elasticsearch, caches and data warehouses.
- Real-time analytics: user activity, transactions or IoT sensor data processed within seconds.
- Log and metrics aggregation from many servers into one stream.
- Activity tracking, the original LinkedIn use case: page views, clicks and searches at very high volume.
The Apache Software Foundation lists companies such as Netflix, Uber, Goldman Sachs, Pinterest and The New York Times among Kafka users.
When to choose Apache Kafka, and when not to
Choose Kafka when:
- Several systems need the same events, and you want to add new consumers without touching the producer.
- Event volume is high or will grow, and the system has to keep up without data loss.
- You need to replay history: rebuild a read model, backfill a new service or recover from a bug.
- Order matters for each entity, such as each account or each device.
Look elsewhere when:
- You need a simple task queue: send a job, have one worker process it, acknowledge it. RabbitMQ does that with less to operate, and supports routing, priorities and per-message acknowledgement out of the box.
- The volume is small and a background job library or Redis streams would do.
- The interaction is request and response. Kafka is asynchronous; a synchronous API call is still simpler when the caller needs an answer now.
- Nobody on the team can own the cluster. Partition counts, retention, consumer lag and upgrades need attention.
Apache Kafka and its alternatives
| Option | Model | Best fit |
|---|---|---|
| Apache Kafka | Distributed, replicated log | High-volume event streams with replay |
| RabbitMQ | Message broker with queues and routing | Task queues, flexible routing, modest volume |
| Apache Pulsar | Log with separate storage layer (BookKeeper) | Multi-tenant streaming, tiered storage |
| Redpanda | Kafka-compatible engine in C++ | Kafka API with a simpler single-binary setup |
| Cloud services (Amazon Kinesis, Google Pub/Sub, Azure Event Hubs) | Managed streaming | Teams that do not want to run brokers |
The most common comparison is Kafka vs RabbitMQ. RabbitMQ pushes messages to consumers and removes them once acknowledged; it is strong at routing individual messages to the right worker. Kafka stores a log that consumers pull from at their own pace; it is strong at throughput, fan-out to many consumers and replay. Many systems use both: RabbitMQ for commands and jobs, Kafka for the event stream.
Managed cloud services trade control for less operations work, and Azure Event Hubs even exposes a Kafka-compatible endpoint. If you are deciding whether the system needs an event backbone at all, our article on microservices vs monolith covers the architecture question that usually comes first.
How we use Apache Kafka at Internative
We use Kafka in high-throughput, event-driven systems where real-time processing and scalability are essential. It lets us build resilient data pipelines and decouple services in complex backend ecosystems, so one slow or failing service does not hold up the rest.
If you need to connect systems that have to share data reliably and in real time, our system integration team can help you decide whether Kafka is the right backbone for it.
Frequently asked questions
Can you explain Kafka in a simple way?
Think of Kafka as a shared, permanent logbook. Applications write what happened into it, line by line, and other applications read the logbook at their own pace. Nothing is erased when someone reads it, so a new reader can start from the first page.
What is Kafka used for?
Kafka moves events between systems in real time: connecting microservices, feeding data warehouses and search indexes, capturing database changes, collecting logs and metrics, and processing user activity or sensor data as it happens.
What is the difference between Kafka and RabbitMQ?
RabbitMQ is a message broker: it routes each message to a queue and deletes it after a consumer acknowledges it. Kafka is a distributed log: it keeps events for a set period, and many consumer groups read the same events independently. For raw throughput and replay Kafka is usually the stronger choice; for flexible routing of individual jobs at moderate volume, RabbitMQ is often simpler.
Is Kafka like Kubernetes?
No. Kubernetes runs and scales containers. Kafka stores and delivers streams of events between applications. They are often used together, with Kafka brokers or the services that use Kafka running on a Kubernetes cluster.
Does Netflix use Kafka?
Yes. Netflix is one of the companies the Apache Software Foundation names as a Kafka user, alongside Uber, Goldman Sachs and The New York Times.
Keep reading
The articles that follow this one.



