ArchitectureIntermediate

Event Streaming: Kafka vs Pulsar vs Kinesis Compared

DeveloperHat Team
19 min read

TL;DR

Kafka, Pulsar, and Kinesis all store ordered, replayable event streams — and make very different trade-offs on ordering, retention, ops burden, and cost. A head-to-head for the team choosing one.

Every team that outgrows request-response eventually faces the same purchase: a durable log that producers append to and consumers read from, in order, as many times as they like. Apache Kafka, Apache Pulsar, and Amazon Kinesis Data Streams all sell that shape. They differ in almost everything else — who operates the storage, how ordering is scoped, how long history survives, and what the bill looks like when traffic doubles at 2 a.m. The wrong choice is rarely fatal on day one; it becomes expensive the first time you need a feature the broker does not have, or the first time the broker's bill arrives for a workload that was never meant to be a stream.

The short version: Kafka is the default when you want the biggest ecosystem and the longest replay, and you are willing to operate it. Pulsar is the pick when one cluster must serve many teams, mix queue and stream workloads, and scale storage independently of serving. Kinesis is the pick when the whole system already lives on AWS, nobody wants to run a broker fleet, and a 365-day retention ceiling is acceptable. Versions as of this writing: Kafka 4.4.0 (22 October 2026), Pulsar 5.0.1 (26 October 2026, the current LTS), and Kinesis, which is a managed service with no version to pin.

Three brokers, one abstraction — an ordered, replayable log Producers append events, keyed Apache Kafka 4.4.0 partitions · KRaft · self-run Apache Pulsar 5.0.1 ledgers · BookKeeper · self-run Amazon Kinesis shards · fully managed Consumers replay from any offset Same shape, different trade-offs: the log is identical — the ops burden is not.

What all three agree on

Strip away the marketing and the three systems are the same abstraction: an append-only log, divided into ordered units, that more than one consumer can read independently. A producer appends an event with a key. The broker assigns it a position in a unit — a partition in Kafka, a shard in Kinesis, a partition backed by ledgers in Pulsar. Consumers track their own position, so two applications can read the same stream at different speeds, and a consumer that crashes can resume where it stopped or rewind and replay from the beginning. That is the whole idea, and it is what makes event streaming different from a queue: a queue deletes a message when it is consumed; a log keeps it for as long as retention allows, and any number of readers can work through it.

Two consequences follow that shape every decision in this guide. First, ordering is always scoped to the unit, never to the stream. A Kafka topic with twelve partitions orders events within each partition; across partitions there is no ordering guarantee at all. The same is true of a Kinesis stream with four shards and a Pulsar topic with twelve partitions. If your system needs global order across all events, none of these brokers gives it to you — you either accept per-key order, which is what the key is for, or you need a different design. Second, the log is a storage commitment, not a transport choice. Retention is the decision about how much history you keep and what it costs, and the three brokers answer it with very different ceilings.

The shared vocabulary hides one more difference worth naming early: the consumer model. Kafka's consumer groups assign each partition to one member at a time; a group of three consumers reading a twelve-partition topic gets four partitions each, and adding a fourth consumer rebalances the assignment. Kinesis shares a shard's read capacity across all polling consumers unless they register for enhanced fan-out. Pulsar has four subscription modes — Exclusive, Shared, Failover, and Key_Shared — so the same topic can serve a single ordered consumer and a pool of competing workers at the same time, which is the feature that makes Pulsar a queue and a stream on one broker. These are not minor API details; they decide whether the broker fits the workload or whether the workload has to be reshaped to fit the broker.

The three brokers, head to head

Apache KafkaApache PulsarAmazon Kinesis Data Streams
Current version4.4.0 (22 Oct 2026)5.0.1 LTS (26 Oct 2026)Managed service, no version
Who operates itYou (or a managed host)You (or a managed host)AWS
Ordering unitPartition, by keyPartition, by keyShard, by partition key
RetentionTime or size, default 7 days, effectively unbounded with tiered storagePolicy per namespace, tiered storage to S324 hours by default, 365 days maximum
Consumer modelConsumer groups, one member per partitionFour subscription modes incl. Shared and Key_SharedPolling shares 2 MB/s per shard; enhanced fan-out gives each registered consumer its own 2 MB/s
Multi-tenancyTopics and ACLs, no built-in tenant modelTenants and namespaces built inAWS accounts and IAM
Queue workloadsShare groups (production-ready in 4.2)Native, via Shared subscriptionsNo — streaming only
CompactionYes, log compaction per keyYes, via ledger retention and readerNo
EcosystemLargest: Connect, Streams, Flink, Schema RegistryConnectors, Functions, schema registry built inLambda, KCL, Firehose, AWS-native

Apache Kafka is the incumbent, and its advantage is the ecosystem around the log rather than the log itself. Kafka Connect moves data in and out of hundreds of systems without custom code. Kafka Streams and Flink turn the log into a processing engine. The Schema Registry — from Confluent, not from Apache — governs the shape of events. None of that is part of Pulsar's or Kinesis's story to the same depth, and it matters because the broker is rarely the whole system: the team buys the connectors and the processing frameworks as much as the log. Kafka 4.0, released 18 March 2025, removed ZooKeeper entirely — 4.x runs only in KRaft mode, with metadata in a replicated __cluster_metadata log — which retired the second system every Kafka operator used to run. The current release, 4.4.0, also carries share groups, Kafka's queue-style consumption, which went production-ready in 4.2 and gained dead-letter queue support in 4.4. The cost of Kafka is operational: brokers hold the data on local disk, so scaling storage means adding brokers, rebalancing partitions, and watching disk. Managed options — Confluent Cloud, Amazon MSK — move that burden to a vendor, and move the bill with it.

Apache Pulsar is the architect's answer to Kafka's storage model. It separates serving from storage: stateless brokers handle producers and consumers, and Apache BookKeeper stores the data as replicated ledgers on bookies. A broker holds no data, so another broker can take over a topic immediately when one fails, and storage scales by adding bookies without touching the serving layer. Multi-tenancy is built into the naming model — tenants contain namespaces, namespaces carry policies — so one cluster can serve many teams with isolated quotas and retention, which is the shape platform teams actually want. Pulsar 5.0.1, released 26 October 2026, is the current LTS; the 5.0 line requires Java 21 on the server and introduced a scalable-topics client specification. The cost is visible components: brokers, bookies, and a metadata store — ZooKeeper by default, with Oxia as an alternative — are three systems to operate, patch, and monitor, where Kafka 4.x is one. Pulsar's ecosystem is smaller, and the number of engineers who have operated BookKeeper in production is a fraction of those who have operated Kafka. That is not a reason to avoid it; it is a hiring and on-call fact to price in.

Amazon Kinesis Data Streams is the only one of the three that is not software you run. There is no cluster, no broker fleet, no ZooKeeper, no BookKeeper — you create a stream and AWS runs it. A shard accepts up to 1 MB/s or 1,000 records/s of writes and serves up to 2 MB/s of reads, and the numbers are documented quotas rather than benchmarks: the AWS quotas page states them plainly. Provisioned mode charges per shard-hour and you choose the shard count; on-demand mode starts a new stream at 4 MB/s of write capacity, absorbs up to double its peak write throughput of the previous 30 days, and scales to 10 GB/s of writes in us-east-1, us-west-2, and eu-west-1. Retention is 24 hours by default and can be extended to 365 days at most — a hard ceiling, not a pricing tier. Enhanced fan-out gives each registered consumer its own 2 MB/s per shard, pushed over HTTP/2, with up to 20 registered consumers per stream, or 50 with On-demand Advantage. The cost of Kinesis is lock-in and shape: it is AWS-only, there is no log compaction, there is no queue mode, and a workload that outgrows the shard model has to be rethought rather than reconfigured.

Ordering, retention, and replay — the semantics that differ

Ordering is where teams get bitten, because the guarantee is narrower than the intuition. All three brokers order events within the unit, and none of them orders across units. The practical rule is the same everywhere: if two events must be processed in order, they must share a key that lands them in the same partition or shard. The failure mode is a key with too many distinct values spread across too many units — or worse, a key that is effectively random, which distributes perfectly and orders nothing. Design the key first, before the topic: order-id for order events, account-id for account events, and never a timestamp or a UUID as the ordering key, because those guarantee the events you need in order will land in different units.

Retention is where the three diverge hardest, and it is the axis most teams underweight at selection time. Kafka's default is 7 days, but retention is a policy you set — time-based, size-based, or tiered to object storage — and a topic can keep history for as long as you will pay for the disk. That is why Kafka is the choice for event sourcing and for replaying months of history into a rebuilt read model: the log is the system of record. Pulsar's tiered storage offloads old segments to S3, which makes long retention cheaper than keeping everything on bookie disks, and retention is a namespace policy, so different teams on the same cluster can keep different history. Kinesis caps retention at 365 days, full stop, and charges for the storage beyond the first day. A year sounds generous until the team wants to rebuild a two-year-old aggregate, or the compliance requirement says seven. Check the retention requirement before the comparison starts; if it exceeds a year, Kinesis is out, and no other feature compensates.

Replay is the third semantic, and it is the one that justifies the log in the first place. All three let a consumer rewind to any retained offset and re-read history, which is how you rebuild a projection, backfill a new consumer, or recover from a bug in a consumer that corrupted its own state. The difference is operational: in Kafka, a rewind is a consumer-group offset reset, and the whole group re-reads; in Pulsar, a subscription can be reset independently; in Kinesis, the application tracks its own position with a checkpoint, typically in DynamoDB through the Kinesis Client Library, and a bad checkpoint is a bug that replays or skips events silently. The KCL's checkpointing is the part of Kinesis that most deserves a test: write the test that kills a consumer mid-batch and restarts it, and confirm it resumes exactly where it should.

Exactly-once processing deserves a sentence because it is the most oversold claim in the space. Kafka offers it through the idempotent producer plus transactions, and it works — at the cost of latency and throughput, and only for consumers that read the transactional log correctly. Pulsar and Kinesis offer effectively-once through deduplication windows and idempotent consumers, which is a weaker promise that depends on the consumer doing its part. The honest framing for all three is the same: the broker can guarantee at-least-once delivery, and exactly-once is a property of the producer, the broker, and the consumer together. If a vendor tells you the broker alone delivers it, that is the moment to ask for the test.

Anatomy of a stream — five layers, and each broker draws the line differently Producers — keyed events, idempotent where it matters Ordering unit — partition · shard · ledger: order lives here, nowhere else Durable log — broker disk · BookKeeper bookies · AWS-managed storage Retention & tiering — 7 days · 365 days max · offload to S3 Consumers & replay — groups · subscriptions · fan-out, from any offset Pick the broker by which layer you want to own — and which you want to rent.

Ops burden and the bill

The cost of a broker is two bills: the infrastructure bill and the on-call bill, and they trade against each other in opposite directions. Kafka's infrastructure is cheap per byte and expensive per operator-hour: commodity disks, open-source software, and a team that knows how to run it. Pulsar's infrastructure is similar, with the added cost of a second storage tier and a smaller pool of experienced operators. Kinesis's infrastructure bill is the highest per byte at steady state — you pay per shard-hour plus per million PUT units in provisioned mode, or per gigabyte written and read in on-demand mode — and its on-call bill is near zero, because there is nothing to operate. Which one is cheaper depends entirely on the team's shape: a platform team with Kafka experience will find Kinesis expensive for the same throughput; a product team with no streaming expertise will find Kafka expensive in a way that never appears on an invoice, in pages and in delayed features.

Two cost traps deserve naming. The first is Kinesis's shared read capacity: standard consumers polling with GetRecords share a shard's 2 MB/s and five reads a second between them, so the second consumer slows the first, and the third slows both. The fix is enhanced fan-out, which gives each registered consumer its own 2 MB/s — and adds a per-consumer-shard-hour charge that surprises teams who added consumers freely. The second is Kafka's partition count: partitions are cheap to create and expensive to run, because every partition costs the controller metadata, the replication traffic, and the rebalancing time. A topic created with a thousand partitions "just in case" is a topic that rebalances slowly for the rest of its life. Size partitions for the throughput you have, with headroom for the throughput you expect, and no more.

The shape of the work matters too. Creating a stream is one command in each system, and the commands show the difference in philosophy:

# Kafka 4.x (KRaft) — partitions and replication are yours to choose
kafka-topics.sh --create --topic orders \
  --bootstrap-server localhost:9092 \
  --partitions 12 --replication-factor 3

# Pulsar — a partitioned topic in a tenant/namespace
pulsar-admin topics create persistent://shop/orders/orders --partitions 12

# Kinesis — shards are the unit, and the count is the capacity decision
aws kinesis create-stream --stream-name orders --shard-count 4

Three commands, three mental models. Kafka asks you to choose partitions and replication. Pulsar asks you to place the topic in a tenant and namespace. Kinesis asks you to buy shards. The command you are comfortable typing every week is a reasonable proxy for the system you will be comfortable operating for the next two years.

Recommendation

For a team starting from nothing, the order of work is: design the key and the retention requirement first, because those two decisions eliminate options before any comparison begins; pick Kinesis if the system is AWS-only, the team has no streaming operator, and a year of retention is enough; pick Pulsar if one cluster must serve many teams, or the same cluster must serve both queue and stream workloads; pick Kafka in every other case, because the ecosystem is the deciding factor once the log has to connect to the rest of the organisation. Run the chosen broker in a non-production namespace for a month with real traffic shape — a load test that replays production-like events at production-like rates — before any production topic carries data the business depends on. And write the consumer test that kills a consumer mid-batch and restarts it, on day one, because the first time that test runs in production is the first outage.

Pick the broker by what you will not operate Start at the top. Stop at the first yes — and check the retention cap first. What decides it? ops team · tenants · ecosystem AWS-only, no ops team Kinesis Many teams, queue + stream Pulsar Ecosystem, replay at scale Kafka If you need retention past a year, Kinesis is out before the comparison starts.

Architecture Decision

Decision: Choose the event broker by retention and operating model, not by benchmark throughput: Kinesis for AWS-only systems with no streaming operator and retention under a year; Pulsar for a multi-tenant platform cluster serving queue and stream workloads together; Kafka as the default for everything else, on the strength of its ecosystem and unbounded retention.

Context: The team is moving from request-response to event-driven services, and the first streaming choice will shape the next several systems. There is no dedicated streaming operator yet, the system runs on AWS, and two of the candidate workloads need to rebuild read models from history. The existing articles on event-driven microservices and the event-driven vs request-driven decision cover when to stream at all; this decision is which broker carries the stream once that choice is made.

Options considered: (1) The conditional pick above. (2) Kafka for everything — the simplest story to tell, but it leaves a team with no Kafka operator running a system they cannot debug at 3 a.m., and it pays the operating cost on workloads Kinesis would have carried for free. (3) Kinesis for everything — the lowest operational burden, but the 365-day retention ceiling and the lack of compaction rule it out for the event-sourced workloads, and it ties every future system to AWS. (4) Pulsar for everything — the most capable single cluster, but the smallest hiring pool and the most components to operate, which is a real cost for a team that has not run BookKeeper before. (5) No broker, and instead a database-backed outbox with polling — cheapest, and it works for low-throughput change feeds, but it is not a streaming platform, and the team will rebuild one badly within a year.

Why this one: The conditional pick matches the broker to the constraint that actually binds. Retention kills Kinesis for the event-sourced workloads before any other feature is weighed. Multi-tenancy and queue-plus-stream push Pulsar ahead for the platform cluster, where one broker serves many teams. Kafka wins the remainder because the ecosystem — Connect, Streams, Flink, the Schema Registry — is the part of the system the team will spend most of its time with, and the part that is hardest to replace later.

What it costs you: Three brokers in the organisation instead of one, if the conditions genuinely differ across systems — and each broker needs an operator, a runbook, and a dashboard. The conditional model also needs discipline: a team that picks Kinesis for a workload that later needs two years of retention pays a migration, and a team that picks Kafka because it is the default pays the operating cost on a workload Kinesis would have carried. The key design and the retention policy are decisions that have to be made before the broker is chosen, and they are the decisions teams most often skip.

When to reverse it: Reverse toward a single broker when the organisation has one clear operating model — if the platform team grows a Kafka practice, consolidate on Kafka and let the Kinesis streams migrate as their workloads mature. Reverse the Kinesis choice the moment a workload needs retention past a year or compaction; do not work around the ceiling with a parallel archive, because the archive becomes a second system with its own bugs. Reverse the Pulsar choice if the team never actually uses the multi-tenancy or the queue modes — a single-tenant, stream-only Pulsar cluster is Kafka with a smaller ecosystem and more components, and that trade is not worth making.

When NOT to use event streaming at all

The broker comparison assumes streaming is the right answer, and often it is not. Do not build a stream for a workload that is a request and a reply — a synchronous API call with a timeout is simpler, faster to debug, and easier to test, and a stream in front of it adds latency and failure modes for no benefit. Do not use a stream as a database: a log with a 7-day retention is not a system of record, and a team that treats it as one will discover the gap the day a consumer needs history that has already expired. Do not stream events that nobody consumes — an event with no subscriber is a cost with no reader, and the stream that grows to a thousand topics with three consumers is a stream that has become a dumping ground. And do not pick a broker by benchmark throughput: the difference between the three at realistic volumes is smaller than the difference between a well-designed key and a random one, and the broker you can operate at 3 a.m. beats the broker that benchmarks faster in a blog post.

The test for whether the choice is right is one question: if a consumer crashes mid-batch, restarts, and replays from its checkpoint, does the system come back correct — and can someone on the team explain why, without opening a runbook? If the answer is yes, the broker fits the team. If the answer is "we have not tested that yet," then the broker decision is not finished, whatever the comparison table says. Our durable execution guide covers the case where the work itself needs to survive a crash, not just the log — and the two decisions, broker and execution, are the ones that decide whether the event-driven system is reliable or merely fashionable. The goal was never to own the fastest broker. It is to own a log the team understands, with a retention policy the business agreed to, and a consumer that survives the restart it will eventually face. That is the whole discipline, and it is enough.

Why This Matters

Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

Trade-offs to Consider

Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

When NOT to Use This

Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

Decision Framework

Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.