Is self-hosted Apache Kafka cheaper than Amazon MSK for your team?
The Apache Kafka software itself costs nothing to license. Apache Kafka is released under the Apache License 2.0 and has no paid edition from the project, so a renewal comparison with Amazon MSK is really a comparison of infrastructure and people against MSK's metered charges. Whether self-hosting ends up cheaper depends on cluster size, retention period, sustained traffic and how much Kafka operations skill your team already has. No MSK or server prices are quoted here because none were supplied for this comparison. Pull the current figures from your AWS bill and your own hardware or Kubernetes quotes, then model them against the same workload.
The main direction of cost is straightforward. MSK takes broker operations work off your team, and in exchange you pay for broker-hours, storage, and, depending on cluster type, Express ingest or Serverless partition-hours. Self-hosting removes that metering but moves cost into servers or Kubernetes nodes, disks, monitoring, and the time your staff spend on on-call rotations, broker replacements, and rolling upgrades that follow the project's supported release line. Ask your team to estimate those hours honestly, including how often a broker failure would page someone outside business hours.
Before you decide, confirm three things: how many engineers can operate KRaft clusters, security, and client authentication without help, how often you expect to upgrade, and whether any MSK Connect or cross-AZ transfer costs would follow your workloads to new infrastructure. Run a short proof of cost with your real retention and throughput numbers, and record who will carry the pager. If the in-house skill is thin, price an external operations retainer alongside the hardware, since the cheapest-looking option on paper can become the most expensive once staff time is counted.
Which MSK charges map to which self-hosted costs
This table pairs each Amazon MSK charge with the self-hosted cost that replaces it, and marks whether the cost is paid once or recurs. Read it as a checklist for a quote: confirm the current MSK rates in your region and price the self-hosted rows against your own servers, storage, and staff. The main takeaway is that MSK bundles infrastructure and operations, so the self-hosted total depends heavily on who runs Kafka and how often.
| MSK charge or cost | Self-hosted equivalent | One-time or recurring |
|---|---|---|
| Broker-hours (provisioned and Express) | Servers, VMs or Kubernetes nodes running Kafka brokers in KRaft mode, sized for peak throughput and replication | Recurring: hardware or cloud instance hours, plus renewals |
| Storage and low-cost tier | Broker disks or volumes sized for retention and replication factor, plus object storage if you add tiered storage | Recurring: capacity cost grows with retention |
| Express ingest charges or Serverless partition-hours | No direct equivalent; cost shifts to cluster capacity you size and pay for whether or not traffic peaks | Recurring: capacity you provision |
| MSK Connect MCU-hours | Kafka Connect worker nodes on Kubernetes or VMs, plus connector plugin maintenance | Recurring: compute for workers, plus engineering time to upgrade plugins |
| Cross-AZ and data transfer | Network traffic between brokers, clients and zones on your own network or cloud account; confirm your provider's inter-zone rates | Recurring: scales with replication and consumer fan-out |
| Servers or Kubernetes nodes | Controller and broker nodes, load balancers and backup hosts you own or rent | One-time setup, recurring hosting or depreciation |
| Monitoring and alerting | Self-run metrics stack such as Prometheus and Grafana with broker, consumer lag and disk alerts | One-time build, recurring storage and maintenance |
| Kafka operations staff | Engineers for upgrades, certificate and ACL management, incident response and capacity planning | Recurring: the largest cost to estimate honestly |
| One-time migration effort | Moving topics, consumer offsets, ACLs and connectors, replacing IAM authentication, and planning producer and consumer cutover | One-time: scope it in writing before work starts |
What moves the MSK versus self-hosted comparison
Six drivers decide whether running Apache Kafka yourself costs less than Amazon MSK for your workload. Most of them change the bill for brokers, storage and connectors, and several change the people cost that the monthly invoice never shows.
Throughput and partition count
Sustained write and read rates, along with the number of partitions your topics need, set how many brokers you must run and how much headroom each one carries. Higher throughput and more partitions push broker capacity up in either model, so the broker sizing exercise is the same whether you pay AWS or your own hardware. Ask for the peak and average throughput per topic, not only the total, because peaks drive sizing. Check how your partition plan scales before you choose a broker count.
Retention and storage volume
How long topics keep data and how many bytes that represents decide your storage footprint. Longer retention multiplies disk and replication cost in both models, and it also raises recovery time for new consumers. Compare the storage line on the MSK bill, including any low-cost storage tier, with the disks, replication factor and free space you would provision yourself. Confirm which retention periods the business and compliance teams actually require.
MSK deployment type
Provisioned, Express and Serverless clusters bill different things: broker-hours and storage, Express ingest, or partition-hours on Serverless. Each billing unit grows with a different workload dimension, so the cheapest option changes as traffic changes. Model your bill under the deployment type you use today and under the one you plan to use in two years. Self-hosting removes this billing model but replaces it with fixed server capacity you must size and keep running.
Kafka geo-replication docsConnectors and MCU usage
MSK Connect bills connector workers per MCU-hour, so a larger number of connectors or heavier connector tasks raises the bill directly. Self-hosted Kafka Connect runs on servers or Kubernetes nodes you already pay for, which shifts the cost to node capacity and the engineering time to manage it. Count connectors, their task counts and their uptime requirements before you compare. Connectors that run around the clock usually carry the largest share of the connector cost.
Multi-AZ availability needs
Spreading brokers across availability zones protects against zone failure, and cross-AZ data transfer adds cost as replicas move between zones. The number of zones you need, and the replication factor you set, determine how much transfer traffic you generate. Self-hosting gives you control over zone placement and rack awareness, but you must design and test failover yourself. Ask what availability target your service owners require and whether a single-zone design is an acceptable risk.
Existing Kafka operations skill
The largest variable in self-hosting cost is often the staff time needed for upgrades, KRaft management, broker replacement, monitoring and on-call work. A team that already runs Kafka can absorb this with existing staff, while a team without that experience will need training or outside support. Assess how many people can operate the cluster, how often they are on call, and whether the upgrade path is already documented. This cost recurs every month, so include it in every comparison.
How to build the comparison with your own numbers
This sequence turns your current MSK spend and a costed self-hosted design into one comparison over the same period, so the result reflects your workload rather than a generic estimate.
Pull a full month of MSK billing by line item
Finance or the cloud account owner exports a complete calendar month of AWS billing filtered to MSK, MSK Connect and the data transfer that touches your clusters. Split the charges into broker-hours, storage, the low-cost storage tier if you use it, Express ingest or Serverless partition-hours, MSK Connect MCU-hours and cross-AZ transfer. Done when every line on the invoice maps to one of these buckets and the total matches what was actually paid for that month. Confirm current rates on the AWS pricing pages and against your own invoice, since rates change and your negotiated terms may differ.
Record the workload that drives those charges
Platform engineering records the broker count, instance sizes, storage provisioned and used, partition count, replication factor, peak and average throughput, retention settings and the number of MSK Connect connectors and their worker sizing. Record the same figures for the month used in the billing export so the two sets describe the same traffic. Done when a one-page inventory lists every cluster and connector with its sizing and the billing bucket each one feeds.
Price a self-hosted design on your own rates
Architects size a self-managed design for the same throughput and retention, either on EC2, Kubernetes nodes with Strimzi or owned hardware. Cost the compute, disks, load balancing, network egress and cross-zone traffic at your own cloud or hardware rates, and include the Kafka Connect workers that replace MSK Connect. Keep a separate column for the one-time build work and a recurring column for infrastructure. Done when each MSK line from the first step has a matching self-hosted line with a stated source for its rate.
Add monitoring, backup and disaster recovery
Platform engineering adds the observability stack for brokers, consumers, Connect workers and disks, plus log retention and alerting. Add the cost of backing up topic configurations, ACLs and connector definitions, and of a second cluster or mirror if your recovery objectives require one. MSK includes parts of this, so list what MSK already provides and what you would now run and pay for. Done when every operational capability on the MSK side has a named self-hosted counterpart with a cost line.
Estimate staff time for on-call and upgrades
The platform or SRE lead estimates the recurring hours for on-call coverage, Kafka version upgrades, certificate and SASL credential rotation, capacity changes and incident response, and states the roles that carry them. Kafka's release plan supports rolling upgrades from the last three releases to the latest, so note which version you run and how often you expect to move. Convert hours into cost using your own loaded rates. Done when the staff line is written as hours per month by role, with the assumptions stated so finance can challenge them.
Add one-time migration effort
Engineering lists the one-time work: building the new cluster, configuring MirrorMaker 2 for topics, consumer offsets and ACLs, replacing IAM authentication with Kafka's SASL or mTLS options, moving MSK Connect connectors, testing, and the dual-running period when both clusters carry traffic. Record the people and approximate effort for each item, and any parallel cloud spend during cutover. Done when the one-time costs are a separate total that can be amortized or excluded in the comparison.
Compare both designs over the same period
Finance places the MSK totals and the self-hosted recurring and amortized one-time costs side by side for the same period and the same traffic assumptions. Show the result with and without the one-time migration costs, and mark which inputs are measured and which are estimated. Test sensitivity by changing the throughput, retention and staff hours within a plausible range. Done when the comparison shows the gap, the break-even point if one exists, and the assumptions a reviewer would need to reproduce it.
Which costs are one-time and which recur every month
The one-time costs of leaving MSK are the work to design the new cluster, build it, harden it and move workloads across. That covers sizing brokers and storage, choosing the deployment model (Kafka on EC2, Strimzi on Kubernetes or owned hardware), setting up KRaft, configuring TLS and SASL in place of IAM authentication, building ACL policies, and rebuilding connector deployments that previously ran on MSK Connect. It also covers the migration itself, which typically uses MirrorMaker 2 to copy topics, configurations, consumer offsets and ACLs before producers and consumers are switched. Ask any provider or internal team to price these as a separate, fixed block so the migration cost is visible apart from the run cost.
The recurring costs are the ones that will decide the long-term comparison. On the MSK side they are broker-hours, storage, any low-cost tier or Express ingest charges, MSK Connect MCUs and cross-AZ transfer. On the self-hosted side they are the compute and disks for brokers and Connect workers, the monitoring stack, the backup and retention plan, and the share of Kafka operations staff time spent on upgrades and on-call. Staff time is the cost most often left out of comparisons, so estimate it in hours per month against your own team's rates.
Self-hosted Kafka also recurs as a schedule. The Kafka project aims for three releases a year, one every four months, and publishes bugfix releases only for supported versions, so upgrades are a standing task rather than a one-off project. Rolling upgrades are supported from each release in the past year (the last three releases) to the latest version, which means a cluster that falls further behind needs a multi-step path. Plan a recurring upgrade window, test it in a non-production cluster and budget engineering time for it. The Apache Kafka time based release plan is the reference for the cadence to put in your operating calendar.
How upgrade and version effort differs by starting point
Clusters that still coordinate through ZooKeeper have the longest path. Apache Kafka 4.0 supports only KRaft mode and removes ZooKeeper mode, so these clusters must complete the move to KRaft before they can upgrade to any 4.x release. That migration is a planned change to the cluster's control plane, not a version bump, and it needs its own test run, rollback plan and client compatibility check.
- Migration comes first: the ZooKeeper to KRaft move happens on the current version line, before any 4.x upgrade.
- Older versions add steps: if the cluster is older than 3.3.x, the upgrade notes recommend reaching 3.9.x before moving to 4.x.
- Runtime requirements change: brokers, Kafka Connect and tools require Java 17 from 4.0, and clients and Kafka Streams need at least Java 11.
- Client and connector review: applications, Connect workers and ACL or TLS settings each need checking against the new version.
- MSK's role: MSK manages broker versions and some upgrade paths for you, while on your own servers your team plans and runs every step.
Before committing a date, confirm the current cluster version, the Java runtime on every host and the full list of clients and connectors that depend on it.
These clusters already run without ZooKeeper, so the control-plane migration is off the table, but the version gap is still wide. The Kafka upgrade notes recommend moving KRaft clusters older than 3.3.x to 3.9.x before going to 4.x. Rolling upgrades are supported from each release in the past year to the latest version, so a cluster far behind may need intermediate hops rather than one jump.
- Intermediate hops: plan a sequence of rolling upgrades toward 3.9.x, then toward 4.x.
- Release support window: the time-based release plan supports rolling upgrades from the last three releases, so older lines fall outside that path.
- Java runtime: confirm the Java version on brokers and Connect hosts before each step, since 4.0 requires Java 17.
- Each hop needs a test: run producers, consumers and Streams applications against every intermediate version in a staging cluster.
- MSK's role: an MSK cluster on a supported version receives managed upgrades, but a self-managed cluster in this range carries every hop as your change.
Ask your team to map the current version and each hop before estimating the work, and record any version that has no supported path.
Clusters on KRaft 3.9.x or newer have the shortest path to Kafka 4.x. The main work is confirming the current release, moving to a supported 4.x line and keeping the upgrade cadence steady. The downloads page lists 4.3.1, 4.2.2 and 4.1.2 as supported releases, and the project plans three releases a year, so a steady cadence is part of the operating model.
- Shortest upgrade path: rolling upgrades from a supported 3.9.x or 4.x release move directly to the latest version.
- Routine release cadence: plan for regular upgrades rather than occasional large projects.
- Security settings: check authorization after upgrade, since StandardAuthorizer ACLs in KRaft clusters restrict resources without ACLs to super users unless allow.everyone.if.no.acl.found is set.
- Bugfix releases: the project issues bugfix releases only for supported lines, so track which versions remain supported.
- Self-hosted effort: your team owns the upgrade calendar, testing and rollback, which MSK would otherwise handle for many versions.
Confirm the exact version in each environment, the supported release line you will target and the owner of each upgrade window.
How authentication and ACL work adds to the bill
Replacing MSK IAM authentication with self-hosted Kafka is engineering work, and that work has a cost that does not appear on any infrastructure line. On MSK, clients that use IAM access control authenticate through AWS identities, so the team already has a working identity store and policy model. On self-hosted Apache Kafka, you choose an authentication mechanism yourself. Kafka supports SASL with GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER, and it can also use SSL for client authentication. Each choice carries a different credential lifecycle, rotation process and dependency. SCRAM stores credentials in the cluster, OAUTHBEARER depends on an identity provider you operate, and Kerberos depends on a KDC. Expect design, testing and runbook time for whichever you pick, and expect that time to be spent by people who already have other work.
Authorization is the larger hidden task. In KRaft clusters, the StandardAuthorizer stores ACLs in the cluster metadata log, so every producer, consumer group and topic permission must be written and maintained as Kafka ACLs. Unless the allow.everyone.if.no.acl.found setting is true, resources without an ACL are restricted to super users. Leaving that setting at its default is the safer choice, but it means every application, connector and migration tool needs an explicit grant before it can run. Moving MSK Connect connectors and MirrorMaker 2 replication into a new cluster therefore requires an ACL inventory first. Ask your security team to confirm the mechanism, the principal naming scheme, who approves ACL changes and how ACL changes are audited, because these decisions shape the operational load for years.
Plan for recurring work as well as the one-time design. Credential rotation, principal onboarding and offboarding, and periodic ACL reviews all recur, and they often fall to the Kafka operations staff whose time is already part of the cost model. If you choose SCRAM, budget for secret storage and rotation tooling. If you choose OAUTHBEARER, budget for the identity provider and its availability, since brokers depend on it. Before quoting a self-hosted design, ask any implementation partner to write down the mechanism, the ACL model and the review cadence in the scope, so the cost of authentication and authorization is visible rather than absorbed into general operations.
Questions buyers ask before comparing MSK costs
Does running Apache Kafka myself cost a license fee?
No. Apache Kafka is licensed under the Apache License 2.0, and the Apache Software Foundation project does not offer a paid edition. The costs you will pay are infrastructure and people: servers or Kubernetes nodes, disks, network transfer, monitoring, and the engineers who operate the cluster. Amazon MSK bills for broker-hours and storage, so the comparison is about what you pay AWS for managed operations versus what you pay your own staff and infrastructure vendors to run the same software. Confirm any commercial support or tooling you add separately, since those are third-party contracts, not part of Kafka itself.
How much effort does a move from MSK to self-managed Kafka take?
The effort depends on how much of your MSK estate you move and how much of it is tied to AWS-specific features. The main work items are standing up a KRaft cluster, replacing IAM authentication with a SASL or mTLS scheme that your clients support, rebuilding ACLs in the cluster metadata log, moving MSK Connect connectors to Kafka Connect, and changing producer and consumer configuration. Topic and consumer offset replication with MirrorMaker 2 is a defined task, but validating it under production load is where most time goes. Ask any partner to split the estimate into these components so you can see which parts scale with topic count and which with the number of applications.
Can our platform team run the migration without outside help?
A platform team with Kafka experience can do it, provided it has time, a test environment that mirrors production, and someone who owns the cutover plan. Teams without prior Kafka operations usually struggle with security configuration, consumer group offset handling and upgrade paths. The Kafka upgrade notes require Java 17 for brokers and Kafka Connect since 4.0, and ZooKeeper clusters must move to KRaft before upgrading to 4.x, so check your current version first. If the team lacks depth in these areas, a fixed-scope engagement can cover planning, implementation, hardening and documentation while your staff keep ownership.
How long does an MSK to self-managed Kafka migration take?
It depends on scope, and no fixed duration applies to every estate. The main drivers are the number of topics and consumer groups, the number of applications that must change configuration, how many MSK Connect connectors you run, the data volume to replicate, the security model you choose to replace IAM with, and how much cutover risk your change board accepts. Migrations with a small set of clients and simple authentication are shorter than estates with many independent teams and strict change windows. Ask for a timeline built from a written scope, with milestones for replication, client switchover and decommissioning, and confirm which dependencies sit with your own teams.
What skills does the team need to run self-managed Kafka?
Operating Kafka in KRaft mode needs people who understand broker configuration, partition and replication planning, TLS and SASL setup, ACL design, and the upgrade sequence across releases. Kafka supports rolling upgrades from each release in the past year to the latest version, so an operator must track release timing. You also need skills in monitoring (broker metrics, consumer lag, disk usage), in Kubernetes or VM automation if you use Strimzi or your own servers, and in incident response for on-call rotations. Count these as recurring staff time, not a one-off project cost, and compare them honestly with the managed-service work AWS takes on under MSK.
What should a fixed-scope quote for this work include?
Ask for written scope, deliverables and timelines before work starts, since most DeployOpen engagements are fixed-scope. A useful quote lists the current MSK inventory (clusters, topics, ACLs, connectors, client applications), the target architecture (KRaft version, hosting, authentication, TLS, monitoring), the MirrorMaker 2 replication plan, the cutover runbook and rollback steps, the testing approach, handover documentation and any post-migration support. It should state what the client provides, such as access, change approvals and application owners. Ask which items are one-time and which recur, such as retainers for upgrades and continuous testing. DeployOpen does not publish a price list; a quote follows from the written scope.
Does MirrorMaker 2 reduce the risk of moving off MSK?
It reduces one specific risk: data and metadata loss during the switch. 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. It does not remove the need for testing, because replicated offsets must still match what each consumer expects, and authentication changes from IAM to another scheme must be verified client by client. Plan a rehearsal, measure replication lag, and define an order for switching producers and consumers. Confirm MSK-specific connector and IAM behaviour in your own environment before cutover.
Which MSK costs go away, and which ones stay after the move?
Broker-hours, managed storage charges and MSK Connect MCU-hours stop when you decommission MSK, but you take on server or Kubernetes node costs, disks, backups, monitoring tools and staff time. Cross-AZ data transfer does not disappear just because you leave MSK; it depends on how you place brokers and clients across zones, so model it from your own traffic. The recurring cost of self-managed Kafka is mostly people and infrastructure, while MSK's recurring cost is mostly managed capacity. Ask your team to tag each current MSK line item with the component that replaces it, and note any cost that remains tied to AWS networking.
Where each cost sits in an MSK and self-hosted setup
The diagram starts with producers and consumers on the left, which pay for their own compute and network paths in either model. The MSK side shows the managed cluster with its broker, storage and transfer charges, and MSK Connect as a separate billed layer. The self-hosted side shows Kafka brokers on servers or Kubernetes nodes, self-run Kafka Connect, and monitoring you staff yourself. Check where cross-AZ transfer and monitoring land in your own traffic pattern, because those items are easy to miss in a quote.
Cost-bearing components in a managed and a self-run Kafka setup.
What a migration adds to the first-year cost
Migration adds one-time work on top of the recurring run costs, and the largest item is usually the cutover itself. MirrorMaker 2 is the Kafka-native tool for this: built on Kafka Connect, it replicates topic data, topic configurations, consumer groups with their offsets, and ACLs from the MSK cluster to the new self-managed cluster. That reduces cutover risk because consumers can resume from replicated offsets instead of reprocessing from the start, but it does not remove the engineering effort. Your team still needs to size the target brokers, storage and MirrorMaker 2 workers for the replication throughput, test the replicated ACLs and offsets in a non-production environment, and decide how MSK's IAM-based access maps to SASL or mTLS on the new cluster. Confirm these items with your Kafka operators before you request a quote, because each one changes the labor estimate.
The cutover order is where most of the time goes. A safe sequence usually moves consumers to the new cluster only after their offsets and ACLs are verified there, then moves producers, and keeps MSK running until consumers have drained and the replication lag is understood. MSK Connect connectors also need to be recreated as self-managed Kafka Connect workers, with their secrets and plugins handled separately, so connector cutover is a separate work item in the plan. Ask any implementation partner to write this order down as a runbook with rollback steps for each stage, and to name who approves each switch.
Dual running is the cost most often missing from first-year estimates. While both clusters run, you pay for MSK brokers and storage and for the new servers or Kubernetes nodes, disks and monitoring at the same time, and MirrorMaker 2 consumes compute and cross-network capacity as well. The overlap lasts until every consumer and producer has moved and you have confirmed that the old cluster no longer receives writes. Treat the length of that overlap as a planning input you control, and ask for the dual-running period, the MSK retention you keep for rollback, and the staffing for the cutover window to be stated separately in any quote.
How DeployOpen scopes a fixed-scope Kafka cost review and implementation
DeployOpen approaches Amazon MSK cost vs self-hosted Apache Kafka as a written, fixed-scope engagement inside your own cloud accounts or data centers. The work starts with the cost components and operating model your team actually runs today, then produces a Kafka deployment you can review, operate and hand over.
How we scope
- Inventory current MSK cluster types, broker sizes, storage, MSK Connect workers and cross-AZ traffic before estimating anything
- Agree deliverables, cost model assumptions and timelines in writing before any implementation work starts
- Confirm which Kafka version, KRaft setup and authentication method (SASL or mTLS) the scope will target
How we build
- Deploy Apache Kafka in KRaft mode on your chosen infrastructure, with TLS and SASL configured from the start
- Set up authorization with ACLs in the cluster metadata log and test that unauthorized access is denied
- Plan and test topic, configuration and consumer offset replication with MirrorMaker 2 before any cutover
How we hand over
- Deliver architecture, sizing, runbooks and a documented cost model your finance and platform teams can review
- Walk your operations staff through monitoring, alerting, upgrades and the rolling upgrade path between supported releases
- Provide evidence of configuration, access controls and backup decisions for your own compliance and security reviews
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped separately
- Repeat cost reviews when your traffic, retention or cluster count changes enough to affect the model
- Confirm with your team which parts of Kafka operations stay in-house and which the retainer covers

