Is self-hosted Kafka cheaper than Amazon Kinesis Data Streams?
The answer depends on throughput, retention and staff cost, not on a license fee. Apache Kafka carries no license fee because it is released under the Apache License 2.0 and the project offers no paid edition, so the comparison comes down to what you pay AWS for usage against what you pay for infrastructure and people to run Kafka yourself. Renewal pressure, a bill that grows with traffic, or a residency rule can each trigger the review, but the math should start from your own numbers.
On Kinesis, most of the bill moves with usage. Depending on the capacity mode, costs scale with shard-hours or with on-demand throughput, and PUT payload units add charges per record size on the write side. Retention beyond the default period is billed by the amount of data kept, and enhanced fan-out adds a per-consumer, per-shard charge for each consumer that needs dedicated throughput. Take every rate from your own AWS pricing page and recent invoices, since regions, capacity modes and billing units change. Pull the line items for the last three months so you can see which component grows fastest.
On Kafka, the largest costs are mostly fixed or semi-fixed for a given cluster size. Brokers, the disks that hold retained data, and the network traffic created by replication between brokers are provisioned in steps, so a cluster can absorb extra throughput until it reaches its headroom. The biggest recurring cost is usually people: someone must patch and upgrade brokers, watch disk and partition health, manage ACLs and TLS certificates, and handle incidents. Ask your team to estimate those hours honestly, including on-call coverage, and to price cloud or data center capacity with the same assumptions you used for Kinesis. The break-even point is where a steadily growing Kinesis bill crosses the cost of a right-sized Kafka cluster plus that staffing, so model two or three throughput and retention scenarios rather than a single figure.
Which cost components each side actually pays
This table lists each cost component on the Kinesis side and the self-hosted Kafka side, and marks whether it is one-time or recurring. Kafka has no license line, so the self-hosted column carries infrastructure, replication traffic and staff time instead. Read it as a checklist for your own quote: the largest recurring items usually depend on throughput and retention, which you must size for your workload.
| Cost component | Amazon Kinesis Data Streams | Self-hosted Apache Kafka | One-time or recurring |
|---|---|---|---|
| Subscription or license | None beyond AWS usage charges; pricing is metered by on-demand usage or provisioned shards | No license fee: Apache Kafka is Apache 2.0 with no paid edition from the project | Recurring for Kinesis (usage); none for Kafka software |
| Compute | Included in the service; you do not size or pay for brokers | Broker instances (and Kafka Connect or MirrorMaker 2 workers if used), sized to throughput and partition count | Recurring |
| Storage and retention | Retention charges apply beyond the included period; confirm current rates with AWS | Broker disks sized for retention, replication factor and headroom for growth | Recurring |
| Data transfer and replication | Ingress and egress charges depend on consumers and region; confirm with AWS | Cross-AZ replication traffic inside a cluster and any cross-site mirroring, often billed by your cloud provider | Recurring |
| Fan-out or consumer reads | Shared or enhanced fan-out adds per-consumer charges that grow with consumer count | Consumer groups read from the same brokers with no per-consumer fee; cost rises only with broker capacity | Recurring |
| Implementation | Limited to producer and consumer code changes and IAM setup | Cluster design, security configuration (TLS, SASL, ACLs), monitoring and backup setup | One-time |
| Migration | Not applicable when staying on Kinesis | Moving producers and consumers, dual-writing during cutover and validating offsets | One-time |
| Support | AWS support plan, billed separately, if you buy one | Internal on-call or a paid support or retainer agreement, scoped in writing | Recurring |
| Upgrades and internal skills | AWS handles service upgrades; your team needs Kinesis API and IAM skills | Regular Kafka upgrades within supported releases, plus Kafka, Java and security skills on staff | Recurring |
What moves the comparison most: throughput, retention and staff
Kinesis and self-hosted Kafka price different things. Kinesis bills largely for capacity and data moved, while Kafka bills for the hardware, storage, network and people you run. The six factors below change which side of that split gets more expensive, so check them against your own traffic before you compare totals.
Sustained throughput and peak-to-average ratio
Kinesis charges by shard-hour or on-demand volume, so a steady workload and a spiky one can cost very different amounts for the same daily total. Self-hosted Kafka brokers are sized for peak load, so a high peak-to-average ratio leaves idle capacity on your side of the ledger. A steady, high sustained rate tends to favor owned brokers, while bursty traffic often favors the managed meter. Measure both the average and the busiest hour of your producers before you model either option.
Retention length
Kinesis charges extra for retention beyond its default window, and that charge grows with the data you keep. Kafka retention costs you disk, replication copies and the backup process that protects them, so longer retention raises storage spend and recovery time. Decide which topics need replay for weeks and which need only hours, because a single retention setting across all topics usually overpays. Confirm current Kinesis retention pricing in the AWS pricing pages for your Region.
Number of consumers reading the same data
Each Kinesis consumer that needs dedicated throughput can add its own per-shard charge, which makes fan-out a direct line item. In Kafka, extra consumer groups read the same partitions at the cost of broker network egress and some load on the brokers. Fan-out therefore tends to favor self-hosted Kafka as the number of independent readers grows. Count your consumers today and the ones planned for the next budget cycle, since that number drives the result more than any single producer.
Message size and PUT payload efficiency
Kinesis bills writes in PUT payload units, so many small records can cost more than fewer larger ones carrying the same bytes. Kafka does not meter per message, but small messages still consume broker CPU and request capacity, so batching and compression matter on your side too. Test your real message size distribution with producer batching enabled, because batching settings can shift cost from the meter to your brokers. Ask AWS how it counts payload units for your record sizes before you assume a per-GB estimate.
Availability and multi-zone requirements
Kinesis spreads its availability across AWS infrastructure without any layout choice from you. A self-hosted Kafka cluster that survives a zone failure needs brokers in several zones, replication factors set to match, and enough spare capacity to absorb a lost node. Each extra zone or disaster recovery site adds compute, disk and cross-zone traffic. Write down the recovery targets your business actually requires, then price the cluster that meets them, not the smallest one that runs.
Team skills already in house
Kafka operations cost staff time for capacity planning, broker upgrades, certificate rotation, partition rebalancing and incident response. Kafka 4.0 supports only KRaft mode, and the upgrade notes recommend moving clusters older than 3.3.x to 3.9.x before going to 4.x. Brokers now require Java 17, and the time-based release plan supports rolling upgrades from the last three releases to the latest. Teams that already run Kafka absorb these steps cheaply; teams that do not should price training, an implementation partner or a retainer into the comparison.
Kafka upgrade notesHow to build the comparison with your own numbers
This sequence turns your actual Kinesis bill and traffic profile into a side-by-side model with self-hosted Kafka, so the comparison reflects your workload rather than a generic estimate. The output is a cost table run at two or three throughput and retention scenarios.
Pull twelve months of Kinesis billing
Export a full twelve months of Kinesis Data Streams charges from your cloud billing console, split by stream and by usage type. Separate shard-hours (provisioned mode) or on-demand throughput charges, PUT payload units, extended retention, and enhanced fan-out consumer-shard-hours and data retrieval. Owner: the cloud account owner with finance or FinOps access. Done when every line item for each stream is mapped to one of these components and the monthly totals reconcile with the invoice.
Measure write rate and record size
From CloudWatch stream metrics, record incoming bytes and records per second for each stream, capturing both the daily average and the peak hour across the same twelve months. Calculate average and peak record size from the same source so you know how PUT payload units are being billed. Owner: a platform or data engineer. Done when you have a table of average and peak megabytes per second, records per second and record size for each stream, with the source and date range noted.
Set the retention requirement in days
Agree the number of days each stream must be replayable, based on reprocessing needs, downstream recovery objectives and any retention duty your data policy or regulator sets. Record this per stream, because Kinesis retention and Kafka disk cost both grow with it. Owner: the data product owner with input from compliance. Done when each stream has a single documented retention value in days and a named approver.
Size the Kafka cluster for replication and disk
Convert the write rate and retention into raw storage: average write throughput multiplied by retention seconds, then multiplied by the replication factor you intend to run, plus headroom for compaction, indexes and growth. Size broker count and partitions from peak throughput and consumer parallelism, and add replication traffic between brokers to network capacity. Confirm the target Kafka release and the Java runtime it requires with the upgrade notes. Done when you have a sized bill of materials for brokers, disks, network and any separate controller nodes, with the assumptions written down.
Price each component from your own quotes
Replace every component with a figure from your own source: current cloud instance and storage rates for the same region, or hardware and colocation quotes if you run on premises. Include data transfer between availability zones, backups of the topic data, and any load balancer or monitoring costs. Mark which lines are one-time (hardware, initial migration engineering) and which recur monthly or annually. Owner: the cloud or infrastructure lead, with procurement. Done when every line has a unit price, a source and a recurrence label.
Add people and support as a separate line
Estimate the operations time that running Kafka will take, covering upgrades on the supported release cadence, security patching, certificate and authentication management, monitoring, capacity planning and on-call coverage. Keep this as its own line rather than folding it into infrastructure, so the comparison shows the staffing effect clearly. If you buy external support or a retainer, ask for the written scope and what it covers. Owner: the engineering manager responsible for the platform. Done when the staffing line states the roles, the hours per month you assume, and who would carry the load.
Run two or three scenarios and compare
Build the model with at least two or three combinations of throughput and retention, such as your current average, your observed peak and a planned growth case, each paired with a short and a long retention window. Illustrative only: a stream at today's average with seven days of retention will look very different from the same stream at peak with ninety days. Compare Kinesis charges with Kafka infrastructure plus the staffing line for each scenario, and note where the result changes sign. Done when you have a scenario table, a short written explanation of the drivers, and a list of the quote requests still outstanding.
Where the self-hosted Kafka bill comes from
The self-hosted Kafka bill is made of components you size and pay for yourself, and most of them scale with throughput, partition count and retention. Brokers are sized for the write and read throughput you need and for the number of partitions they must host, since each partition adds work for leaders and followers. KRaft controllers replace ZooKeeper for metadata and are a separate role you must staff and provision, even when they run on the same machines as brokers. Disks are sized for retention multiplied by the replication factor, so doubling retention or moving from a replication factor of 2 to 3 changes the storage line directly. Replication traffic between brokers, and any traffic that crosses availability zones, is billed by your cloud provider, so a cluster spread across zones for resilience carries a network cost that a single-zone test cluster does not. Confirm the cross-zone transfer rates with your provider and model them against your expected write volume.
If you keep a second cluster for disaster recovery, MirrorMaker 2 adds its own compute, network and operations cost. MirrorMaker 2 is built on Kafka Connect and replicates topics, configurations, consumer group offsets and ACLs to another cluster, which means you pay for a second set of brokers and disks plus the Connect workers that run the replication. Treat that standby as a line item from the start, not an afterthought, and decide whether it runs hot or is rebuilt on demand, since that choice drives the standing cost. The Apache Kafka geo-replication documentation describes how replication is configured.
Upgrades and version moves are a one-time cost and a recurring cadence, so budget for both. Clusters still running ZooKeeper must migrate to KRaft before upgrading to 4.x, and the upgrade notes recommend that KRaft clusters older than 3.3.x first move to 3.9.x. Those steps take planning, testing and staff time up front. After that, the supported releases listed on the Apache Kafka downloads page are 4.3.1, 4.2.2 and 4.1.2, and the project plans three feature releases a year. Ask your team or implementation partner to write down who performs each upgrade, how long a rolling upgrade is tested in staging, and which version you will run next, because skipped upgrades turn into the expensive migrations.
How throughput and retention change the result
This is the shape where managed Kinesis most often stays competitive. When sustained volume is modest and retention is measured in hours or a day, Kinesis charges scale down with the traffic, and you pay nothing for idle brokers. A self-hosted Kafka cluster still needs a minimum footprint for high availability, so its fixed costs (nodes, disks, monitoring and the engineer time to patch them) do not shrink with the workload. The answer flips toward self-hosting only when the fixed footprint is already paid for by other workloads on the same platform.
- Fixed floor: A replicated Kafka cluster carries baseline compute and storage whether or not traffic is high, so the floor matters more than the average rate.
- Shared platform: If your Kubernetes or VM estate already runs spare capacity, the marginal Kafka cost can be small. Confirm that headroom before counting it.
- Operations time: Staff hours for upgrades, certificate rotation and broker recovery are a recurring cost that does not appear on a cloud bill.
- Retention setting: Short retention keeps the disk footprint small on both sides, which narrows the gap.
- Ingress and egress paths: Traffic that stays inside one cloud region or network usually costs less to move, so check where producers and consumers actually run.
Before you decide, ask your Kinesis bill for the last twelve months of ingest and retention line items, and ask the Kafka side for a written sizing that includes the minimum replica count you would accept in production.
This is the shape where self-hosting often gains ground. Each additional gigabyte per hour of sustained ingest adds capacity to both sides, but on a managed service that capacity is priced per unit of throughput and retention, and retention beyond the default window is an extra charge. On Kafka, retention is a disk and replication question. Your cost grows with stored bytes times replication factor, plus the network traffic that replication generates. Whether that beats the managed bill depends on the unit prices in your own contract and on how much broker capacity you must over-provision to survive a node failure.
- Replication multiplier: Each stored byte is written to several brokers, so disk and inter-broker traffic scale with the replication factor, not only with ingest.
- Retention length: Multi-day retention multiplies the stored volume, which makes disk sizing and the cost of fast storage the dominant line items.
- Headroom: Brokers need spare disk and network capacity to absorb a failed node and recover, so plan for peak, not average, throughput.
- Cross-zone traffic: In multi-zone clusters, replication and consumer reads can generate traffic charges that the sizing spreadsheet often omits.
- Consumer replay: Frequent replays over long retention increase read load and can force larger brokers.
Illustrative example: a team that doubles sustained ingest while keeping the same retention may see its self-hosted disk and replication costs grow roughly in step with volume, while its managed bill grows at the rate in its contract. Ask both sides for a sizing that states the input rate, the retention period, the replication factor and the peak multiple they assumed.
This is the shape where the cost comparison depends heavily on how each platform charges for readers. Kinesis offers enhanced fan-out, which gives each consumer its own dedicated read throughput, and that is typically billed per consumer and per data volume read. Kafka consumer groups read from the same partitions without a per-consumer fee, so adding a team that reads the same stream usually adds broker read load, not a new line item. The trade-off moves to capacity planning and isolation: many heavy consumers can compete for broker network and disk I/O unless you size quotas and partitions with care.
- Per-consumer charges: Dedicated read capacity on the managed side scales with the number of consumers, which can dominate the bill as the consumer count grows.
- Read amplification on Kafka: Each consumer group reads the full stream, so total broker egress grows with the number of groups.
- Partition count: Parallel consumers in one group need enough partitions to scale, and partition count also affects broker metadata and recovery time.
- Isolation controls: Client quotas and separate clusters or listeners can protect critical consumers from noisy ones, and those controls add operating work.
- Security and access: Each consumer needs its own credentials and ACLs under the Kafka authorization model, which adds administration as the consumer list grows.
Before you compare, list every consumer, its read rate, and whether it needs isolated throughput. Ask both sides to price that list line by line.
Questions buyers ask before comparing Kinesis and Kafka costs
Does Apache Kafka itself cost money to use?
No. Apache Kafka is an Apache Software Foundation project released under the Apache License 2.0, and the project itself offers no paid edition. Your costs come from the infrastructure you run it on, the people who operate it, and any commercial support or managed service you choose to buy from a third party. Check the license terms of any add-on you plan to use, because some Kafka-adjacent components are licensed differently. Confluent's Community License, for example, covers Schema Registry, REST Proxy, ksqlDB and some connectors, and it limits offering them as a competing hosted service. Apache Kafka itself stays under Apache 2.0. Review the Apache Kafka downloads page to confirm which releases are current before you plan a deployment.
How much effort does a self-hosted Kafka cluster take to run?
Effort depends mainly on throughput, retention length, the number of environments, and how many teams depend on the cluster. The recurring work includes broker capacity planning, disk monitoring, replication health, certificate and credential rotation, topic and ACL administration, client onboarding, and upgrades. Kafka 4.0 and later run only in KRaft mode, so a cluster still on ZooKeeper must migrate before it moves to 4.x. Ask your team how many engineers already run distributed data systems on-call, and estimate the operational hours per week for each environment. Your internal estimate should come from your own workload, since no fixed effort figure applies to every organization.
Can our team run Kafka without outside help?
Many teams can, provided they already operate Linux, networking, TLS certificates and monitoring, and they have at least one engineer who understands partitions, replication and consumer groups. The gaps usually appear in the first production incident, during the first upgrade, or when security reviews require documented controls. Check three things before deciding: whether your staff have run a stateful distributed system in production, whether you can staff on-call coverage, and whether you have time for a parallel run before cutover. A fixed-scope engagement can cover planning, deployment, hardening, documentation and handover, while retainers cover ongoing upgrades and support. Agree the scope in writing before work starts.
How long does a migration from Kinesis to Kafka take?
No fixed duration applies, because the timeline depends on the number of producers and consumers, how much Kinesis Client Library checkpointing must be rewritten, whether Firehose and Lambda consumers must move, how long dual-writing runs, and how much retention history you need to preserve. Teams with few consumers and short retention usually finish faster than teams that must migrate many stateful applications with strict ordering requirements. Ask any implementation partner for a written plan that lists each stream, its consumers, the cutover order and the rollback steps. Treat any duration in a proposal as an estimate until the inventory of producers and consumers is complete.
What should a quote for a self-hosted Kafka project include?
A useful quote lists the scope and each deliverable in writing, so you can compare it with the cost of Kinesis over the same period. Ask for:
- Architecture and sizing assumptions, including broker count, storage per broker, replication factor and retention
- Deployment environments, such as production, staging and disaster recovery, and where each runs
- Security configuration: TLS on listeners, the SASL mechanism for each client group, and ACL design
- Migration work: producer and consumer changes, cutover plan, dual-write period and rollback steps
- Backup, upgrade and monitoring setup, plus the runbooks and training included
- Post-handover support terms, separated from the one-time build
Ask which items are one-time and which recur, such as infrastructure, support retainers and upgrade work. DeployOpen does not publish a price list, and a quote follows from the written scope.
Does Kafka need extra work to be secure?
Yes. Kafka security is optional, so a cluster can run without TLS or authentication unless you configure them, and it can mix secured and unsecured listeners. Plan for TLS between clients, brokers and tools, and choose an authentication method for each client group. The documented SASL mechanisms include GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. In KRaft clusters, the StandardAuthorizer stores ACLs in the metadata log, and resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true. Keep that setting at its restrictive default unless you have a documented reason to change it. Verify each setting against the Kafka security overview for your release.
Can we move off Kinesis later or leave a self-hosted Kafka setup?
Kafka-to-Kafka movement is well supported. Apache Kafka's MirrorMaker 2, built on Kafka Connect, replicates topic data and configurations, consumer groups with their offsets, and ACLs between clusters, so applications can move from one Kafka cluster to another. That path does not reach Kinesis, so moving back to a managed Kafka service or another Kafka cluster is practical, while moving data into Kinesis requires custom producers. Confirm that any managed Kafka provider you consider supports this kind of replication, since the supplied documentation covers MirrorMaker 2 on Apache Kafka itself. Build your exit plan into the initial design, including topic naming, schema management and client configuration, so the switch stays manageable.
How do Kafka upgrades affect the long-term budget?
Upgrades are a recurring cost, so budget for them from the start. The Kafka project aims for three releases a year and provides bugfix releases only for supported versions, so older releases fall out of support on a predictable schedule. Rolling upgrades are supported from each release in the past year, which means the last three releases, to the latest version. Plan for test environments, a rehearsal before production, compatibility checks for clients and Kafka Streams applications, and Java runtime requirements, since Kafka 4.0 brokers, Connect and tools require Java 17. Ask any support provider how upgrades are priced, whether they are included in a retainer, and how many upgrade cycles a year the retainer covers.
How the cost lines connect across the two architectures
The diagram starts with producers writing records into either Kinesis shards or Kafka topics, then follows each record to consumers and to retained storage. On the Kinesis side, usage charges accrue on writes, reads and retention. On the Kafka side, the bill sits in brokers, disks and replication traffic between brokers. Operations staff appear as a shared line that both paths draw on. Check which lines your own workload actually triggers, especially fan-out reads and how long data is retained.
Producers, consumers, storage and the cost lines on each side, with operations staff shared.
What to ask for in an implementation quote
A fixed-scope quote for a self-hosted Apache Kafka cluster should state its assumptions before it states a price. Ask for the cluster sizing inputs in writing: broker count, instance or server specification, disk type and capacity, partition count per topic, and the replication factor. Ask for the throughput and retention figures used to derive them, including peak and average ingest in megabytes per second, message size, consumer fan-out and how many days of data stay on disk. Without these inputs, two quotes can differ simply because one vendor sized for a lower peak or shorter retention. Also ask which Kafka release the quote targets. The supported releases are listed on the Apache Kafka downloads page, and the quote should name one of them.
The security baseline is where quotes most often diverge, so request each control by name. Confirm TLS for client, broker and inter-broker traffic, the SASL mechanism chosen from the options the Kafka security overview lists, and how ACLs are defined and reviewed under the StandardAuthorizer. Ask whether allow.everyone.if.no.acl.found is set to false, and who owns the super user list. Backup and restore testing should appear as a deliverable with a recorded restore exercise, not a sentence about snapshots. Upgrade planning should describe the path to the next supported release, including the rolling upgrade window. Handover documentation should list runbooks, dashboards, alert thresholds and access records. Finally, ongoing support or a retainer belongs on its own line, separate from the fixed-scope build. DeployOpen does not publish a price list, and the quote follows from the written scope, so compare quotes only after each one lists the same assumptions.
How DeployOpen scopes a fixed-price Kafka implementation
DeployOpen plans, implements and documents self-hosted Apache Kafka inside your own cloud accounts, data centers or air-gapped networks, so the cost comparison with Amazon Kinesis Data Streams is tested against your actual throughput, retention and staffing. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory current Kinesis streams, shard counts, on-demand usage, retention settings and enhanced fan-out consumers.
- Model throughput, retention length and replication factor to size brokers, disks and inter-zone traffic for your workload.
- Confirm who on your team will operate Kafka and what on-call and upgrade effort you can realistically staff.
How we build
- Deploy Kafka in KRaft mode with TLS, SASL authentication and ACLs configured for your identity model.
- Set up monitoring, retention policies, backups and capacity alerts so the running cost stays visible.
- Test producer and consumer behavior against your existing workloads, including ordering and consumer group offsets.
How we hand over
- Deliver the written architecture, sizing assumptions and a side-by-side cost model you can rerun as volumes change.
- Document runbooks for broker maintenance, rolling upgrades, topic creation and access requests.
- Walk your platform and security teams through the controls and evidence they will need for internal review.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.
- Plan version upgrades against the Kafka release plan and upgrade notes, with testing before each change.
- Re-run the cost model when retention, partition counts or traffic patterns change materially.

