How a team moves off Amazon MSK without losing data or offsets
Moving off Amazon MSK is a replication, authentication and cutover project that runs in parallel, not a single data copy. Usually a platform or streaming team leads it, often with an implementation partner, because the work touches topic data, consumer offsets, access control and every producer and consumer application at once. Apache Kafka itself is licensed under Apache 2.0, and the project offers no paid edition, so the cost of the move is in people, infrastructure and testing rather than in a license fee. Before you start, confirm with AWS which MSK cluster version and metadata mode you run, and confirm the Kafka version you will target against the Apache Kafka downloads page.
The replication layer is MirrorMaker 2, which runs on Kafka Connect and copies topic data, topic configurations, consumer group offsets and ACLs from the MSK source to the new cluster. Plan the target cluster in KRaft mode, since Kafka 4.x supports only KRaft, and confirm that your Kafka Connect hosts meet the Java 17 requirement for brokers and Connect. Authentication changes at the same time: MSK IAM access control has no direct equivalent in Kafka, so you must choose among SASL mechanisms such as SCRAM-SHA-512 or OAUTHBEARER, or mTLS, and rewrite client configuration and ACL rules for each principal. Test each principal in a staging environment before any production producer or consumer changes its settings.
Cut over in a safe order: move consumers first only after offsets are confirmed to be mirrored and lag is near zero, then move producers, and retire MSK Connect connectors last by recreating them on Kafka Connect. Freeze connector configuration changes during the window and keep MSK running as a rollback path until consumers have processed through the cutover point. Confirm the rollback steps, the offset translation procedure and the owner of each step in writing before the window opens, because this is where most data gaps and duplicate processing start.
Which MSK features map cleanly to Apache Kafka and which need rework
This table maps each MSK feature your cluster uses to its Apache Kafka equivalent and marks it as clean, needs rework or gap. Read the rows for your own cluster first, since a feature you do not use creates no migration work. The main takeaway is that topics, offsets and ACLs move with MirrorMaker 2, while IAM access control must be replaced before cutover.
| MSK feature | Apache Kafka equivalent | Status |
|---|---|---|
| Topics, partitions and data | Same topic names and partition counts, copied by MirrorMaker 2 from the MSK cluster to the new Kafka cluster | Clean |
| Topic configuration | Topic configs such as retention and cleanup policy are replicated by MirrorMaker 2, but confirm overrides on the target before cutover | Clean |
| Consumer group offsets | MirrorMaker 2 replicates consumer groups with offsets, so consumers can resume near their last position after switching clusters | Needs rework |
| ACLs | MirrorMaker 2 can replicate ACLs, but on a KRaft cluster the StandardAuthorizer stores them in the metadata log, and resources without ACLs are restricted to super users unless configured otherwise | Needs rework |
| TLS encryption | Kafka supports SSL/TLS on listeners, so the listener and certificate setup must be rebuilt and checked on the new cluster | Needs rework |
| IAM authentication | No direct Kafka equivalent. Access control must move to SASL (such as SCRAM-SHA-512 or OAUTHBEARER) or mTLS, with ACLs defined in KRaft | Gap |
| MSK Connect connectors | Kafka Connect workers you run yourself in distributed mode, with connector configuration through the REST API and secrets handled outside MSK | Needs rework |
| Broker monitoring | CloudWatch metrics are replaced by your own exporters and dashboards, so alerts and runbooks must be rebuilt | Needs rework |
| Express brokers and serverless clusters | Express brokers and serverless clusters have no self-managed mode. Plan broker sizing, storage and scaling on Kafka instead of relying on MSK automation | Gap |
The safe order: inventory, mirror, switch clients, decommission
This sequence moves topics, consumer offsets and access rules to a new KRaft cluster while MSK keeps serving traffic, so each cutover can be checked and reversed before MSK is retired.
Inventory topics, clients, connectors and ACLs
The platform owner, with application teams, lists every topic with its partition count, replication factor and retention settings, every producer and consumer group with its authentication method, every MSK Connect connector with its plugin and worker configuration, and every IAM policy or Kafka ACL that grants access. Include the MSK cluster configuration and the connector secrets stored in AWS Secrets Manager or other stores. The output is a signed inventory that names an owner for each client and each connector, and that shows which clients use IAM and which use SASL or mTLS. Confirm the list against live broker metadata, not only against documentation, because undocumented consumers often surface here.
Build the target KRaft cluster
The infrastructure team deploys a new cluster on a supported Apache Kafka release: 4.1.2, 4.2.2 or 4.3.1, as listed on the Kafka downloads page. Brokers and Kafka Connect run on Java 17, and KRaft is the only mode in 4.x, so no ZooKeeper step applies. Configure TLS and SASL listeners that match the authentication model you chose for each client group, and set the authorizer so that resources without ACLs are not left open unless you intend that. The output is a healthy cluster that passes a smoke test with a test topic, a producer, a consumer and a TLS handshake from each client network. Record the exact version and configuration in version control so the target can be reproduced.
Create target topics and ACLs
The platform team recreates each topic on the target cluster with the partition count, replication factor and retention settings from the inventory, and applies ACLs that mirror the MSK access model, translated from IAM policies into Kafka principals. MirrorMaker 2 replicates topic configuration and ACLs, but reviewing them first catches differences in naming or principal mapping. The output is a topic and ACL diff with no unexplained gaps, reviewed by the security team. Any principal that cannot be mapped is flagged for an application owner decision before replication starts.
Run MirrorMaker 2 with offset sync
The platform team runs MirrorMaker 2 on Kafka Connect in distributed mode between MSK (source) and the new cluster (target). MirrorMaker 2 copies topic data, topic configuration, consumer group offsets and ACLs, and its offset sync keeps translated offsets available on the target so consumers can resume near their last position after cutover. Watch replication lag, checkpoint and offset-sync topics, and connector task status through the Connect REST API. The output is a steady state where target partitions track source end offsets within an acceptable lag that the owners agreed in advance, and where checkpoint records show translated offsets for every consumer group in scope.
Migrate MSK Connect connectors
Each MSK Connect connector is redeployed on self-managed Kafka Connect workers on the target side, using the same connector plugin versions and configuration, with secrets moved to your secrets store. Source connectors should be paused on MSK before the target version starts to avoid duplicate records, and sink connectors need an offset strategy agreed with the owner, since Kafka Connect stores offsets in its own topics. Kafka Connect manages connector offsets automatically, but the new worker group still needs its own internal topics and sufficient capacity. The output is a connector list where each entry shows its state (running, paused or retired) and an owner who has confirmed the output on the target.
Switch consumers, then producers, and verify lag
Move consumer groups first, so new records are still written to MSK while consumers drain, or move producers first, so the target receives new writes while consumers on MSK drain the backlog. Pick one order for the whole migration and state the rationale in the runbook. Consumer-first keeps the target receiving data only after its readers are proven, but needs the MSK backlog to drain and offsets to be translated correctly. Producer-first reduces the time MSK holds unread data but risks duplicates if consumers on both sides read the same topics. Verify lag, consumer offsets and error rates after each group moves. The output is a per-group sign-off showing zero unexplained lag and expected offset positions, recorded before the next group moves.
Stop replication and decommission MSK
After all producers and consumers run on the new cluster, the platform team stops MirrorMaker 2 and any remaining MSK Connect connectors, then keeps MSK in a read-only or retained state for the retention window your compliance and recovery policies set. Confirm that backups or exports needed for audit or recovery were taken before deletion. Confirm the retention window with your legal, security and compliance owners, because the Kafka and AWS documentation do not set one for you. The output is a closure record showing that no client still points to MSK, that the retention window has ended, and that MSK brokers, storage and related IAM roles have been deleted and removed from cost reporting.
How MirrorMaker 2 runs between the MSK and target clusters during the parallel run
This illustrative diagram starts with producers writing to the MSK source cluster inside AWS. MirrorMaker 2, running on Kafka Connect in the client's own network, reads from MSK and replicates topics, configurations, consumer group offsets and ACLs to the self-managed KRaft target cluster. Consumers can be pointed at the target once their offsets and data have caught up. Check replication lag, offset translation and ACL parity at each phase before moving producers, and confirm the network path and TLS and SASL settings that cross the AWS boundary.
Illustrative parallel run: MirrorMaker 2 copies MSK data into a self-managed KRaft cluster.
What MirrorMaker 2 replicates, and what you must rebuild by hand
MirrorMaker 2 replicates the Kafka data plane and its metadata, but not the AWS control plane around your MSK cluster. It is built on Kafka Connect and copies topic data along with topic configurations, consumer groups with their committed offsets, and ACLs from the source cluster to the target. That covers the parts of the migration that move data and consumer progress. Everything that lives in AWS or in your application configuration has to be recreated on the new side. Confirm the exact replication behavior for your release, including which ACL and offset details are mirrored and how checkpoints are emitted, in the Apache Kafka geo-replication documentation before you write the runbook.
Several items sit outside MirrorMaker 2 and need a named owner. IAM principals and policies, which MSK uses for IAM access control, have no equivalent in Kafka. You must map each IAM role to a SASL mechanism or mTLS identity and then create matching ACLs on the new cluster, because the ACLs that MirrorMaker 2 copies are the source cluster's entries and may not reflect your IAM policies. MSK Connect connector definitions, their plugin locations, and the secrets they reference in AWS Secrets Manager or elsewhere must be re-declared for Kafka Connect and the secret store you choose. Schema tooling, such as any schema registry and its subjects, is not part of the data stream, so export and import it separately and verify compatibility modes. Client configuration is the last item: bootstrap servers, security settings and truststores change in every producer and consumer, and must be switched in an order your dependency map supports.
Treat each of these as a checklist item with an owner and a verification step, not as a side effect of replication. For example, after mirroring, compare a sample of ACL entries and connector configurations between the two environments, and run a consumer group cutover in a non-production copy first. Ask your team to confirm, from its own inventory, every IAM policy, connector, secret and schema subject in use. Items missing from that inventory are the most common reason a migration stalls after the data has already moved.
Integrations to rebuild: authentication, connectors and client configuration
Moving off MSK is rarely just a broker swap. Authentication, connector runtime, secrets and access rules all depend on AWS-specific pieces that do not carry over automatically. Each card below is one item to rebuild and verify before any producer or consumer is pointed at the new cluster.
Replace IAM with SASL or mTLS
MSK IAM access control has no direct equivalent in Apache Kafka. Choose a replacement before cutover: SASL with SCRAM-SHA-512, OAUTHBEARER against your identity provider, GSSAPI if you already run Kerberos, or mutual TLS with certificates issued by your own CA. Each option changes how every client authenticates, so inventory every IAM policy that grants producer or consumer access and map it to a principal on the new cluster.
Kafka security overviewRebuild ACLs in the StandardAuthorizer
In KRaft clusters the StandardAuthorizer stores ACLs in the cluster metadata log. Resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so a fresh cluster can block clients that worked on MSK. Recreate ACLs for each topic, consumer group and transactional ID from your IAM mapping, and test denied paths as well as allowed ones.
Authorization and ACLs docsMove connectors to Kafka Connect
MSK Connect workers do not move with the cluster. Run Kafka Connect in distributed mode on your own compute and recreate each connector through the REST API, which is the supported management path because Kafka Connect does not ship a graphical interface. Confirm that every connector plugin version you deploy is available from a source you can audit, and that connector offsets are carried over before the old connector is stopped.
Kafka Connect overviewRelocate connector secrets
MSK Connect typically pulls credentials from AWS-managed services. On your own Connect cluster, database passwords, keystores and cloud keys must come from a secrets store you operate, or from a config provider you configure in the worker. Confirm which secrets each connector reads, who can rotate them, and that no credential is written into a connector configuration that is visible through the REST API to users who should not see it.
Update bootstrap servers and listeners
Every client holds a bootstrap address and a security protocol. Switching from IAM to SASL or mTLS means changing the listener, the protocol and the client credentials at the same time, so a single misconfigured service can fail to connect. Keep a list of every client, its bootstrap string and its security settings, and confirm that DNS names, load balancer rules and network paths to the new brokers are in place before the switch window.
Validate clients before cutover
Run a test pass with a representative producer and consumer against the new listeners before moving production traffic. Check authentication success, authorization for each topic, consumer group offsets and the Java versions your clients need, since clients and Kafka Streams applications require at least Java 11 on Kafka 4.x. Record the results so the cutover plan has evidence behind each service.
How the migration differs by cluster size and starting point
Provisioned clusters are usually the hardest identity migration because the cluster has been used by many services, each with its own IAM role and policy. Every principal that connects with IAM access control must be mapped to a SASL mechanism or mTLS identity on the new cluster, and the ACLs for each principal must be recreated in the Kafka authorizer. MirrorMaker 2 can replicate ACLs, but it copies them as they exist in the source, so IAM policy conditions do not translate on their own.
- Principal inventory: List every IAM role and user that produces, consumes or administers topics, and record the topic and group permissions each one holds.
- Credential design: Decide between SCRAM-SHA-512, OAUTHBEARER or mTLS for each client group, and where the secrets will live.
- ACL rebuild: Confirm which replicated ACLs apply to the target cluster and add missing ones before any client switches.
- Staged client cutover: Move one service group at a time so an authorization gap affects a small set of applications.
- Shared-role risk: Services that share one IAM role need separate identities on the new cluster, so the audit trail stays readable.
Before cutover, confirm with your security team that every principal on the new cluster is documented and that the old IAM policies can be retired.
Serverless and Express clusters hide more of the broker layer from you, so the self-managed target asks you to define things AWS currently handles. On the source side, you have less direct control over broker configuration, storage and partition limits, so the first task is to record the settings the applications actually depend on. Pricing models differ too: serverless charges on partition-hours and throughput, and Express charges on ingest, so the cost reasoning in your plan should reflect the component you are leaving.
- Configuration capture: Export topic settings such as retention, cleanup policy, compaction and partition counts, because managed defaults may not match what you build.
- Client settings review: Check producer acknowledgement, idempotence and compression settings that clients assumed from the managed service.
- Capacity planning: Size brokers, disks and network for the throughput you observe, and confirm the figures with your own monitoring rather than vendor defaults.
- Version choice: Plan on a current supported Kafka release and confirm the Java runtime requirement for brokers and Connect.
- Replication lag watch: Track mirror lag during the parallel run, since serverless throughput can spike.
Check with your platform team that the target cluster's retention and partition settings match the source before mirroring starts.
When many connectors run on MSK Connect, the connector layer becomes a migration stream of its own. MirrorMaker 2 moves topics, offsets and ACLs, but it does not move your connector definitions, plugin artifacts or worker configuration. Each connector must be redeployed on a Kafka Connect cluster you operate, and each one needs its own check that it resumes from the correct position.
- Connector inventory: Record each connector's class, plugin version, task count, converters and error-handling settings.
- Plugin packaging: Rebuild the plugin path on your Connect workers and confirm each plugin version is compatible with the target Kafka release.
- Secrets and IAM: Replace any IAM-based access that connectors use to reach data sources, and move credentials into a secrets store your team controls.
- Offset verification: Kafka Connect manages connector offsets automatically, so confirm that sink connectors resume from the expected point and that duplicates are acceptable for each sink.
- Pause and resume order: Stop source connectors on the old cluster before starting their replacements, to avoid two connectors writing the same data.
Ask your data owners to sign off on each connector's replay and duplicate behavior before its cutover date.
Hybrid estates keep some Kafka traffic in factories, branches or data centers and mirror selected topics to the cloud. The migration then has more than one destination, and the reasons for keeping data local, such as network limits or data residency, shape which topics move. MirrorMaker 2 can run in each direction, but each replication flow adds network paths, certificates and monitoring that you must own.
- Topic placement: Decide for each topic whether it stays local, mirrors to the cloud or moves entirely, and document the reason.
- Replication topology: Map every mirror flow and check for loops, so a topic is never replicated back to its origin.
- Network and certificates: Plan the links between sites, including TLS certificate rotation for each cluster.
- Offset and ACL scope: Confirm which consumer groups and ACLs must exist at each site after the move.
- Site-level runbooks: Give each site its own failover and recovery steps, since a cloud outage should not stop local operations.
Review the topic placement list with your network and compliance owners before any mirror flow is turned on.
What drives migration cost and duration
This table lists the components that set the effort of moving from Amazon MSK to self-managed Apache Kafka, with the driver behind each one and how to shrink it. Read it as a checklist for scoping: the larger the value on each row, the more work the migration carries. Ask any quote to price each row separately so you can see which decisions move the total.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of topics and clients | Each topic needs its replication scope, partition count and retention confirmed on the target, and each producer and consumer needs a switch plan. Effort grows with the count of client applications that have their own release cycles. | Group topics by owning team and by cutover wave. Retire unused topics before migrating and confirm which clients still read or write. |
| IAM principals to convert | MSK IAM access control uses IAM roles and policies, while self-managed Kafka authenticates through SASL or SSL and authorizes through ACLs. Every IAM principal needs an equivalent credential and ACL entry, and each change needs review. | Inventory IAM policies per application before design starts. Map roles to a smaller set of service identities. Confirm the chosen SASL mechanism or mTLS design with your security team early. |
| MSK Connect connector count | Each MSK Connect connector must be rebuilt as a Kafka Connect deployment with its plugins, configuration, secrets and offsets handled outside MSK. Connectors with custom plugins or external sinks add testing time. | List connectors, plugin versions and sink dependencies in one table. Move connectors in groups, and reuse one Connect cluster per team where that fits your boundaries. |
| Data volume to replicate | MirrorMaker 2 must copy existing data before cutover, so the volume and the retention window set the time the mirror needs to catch up. Cross-network transfer and temporary storage on the target also scale with volume. | Reduce retention on low-value topics before the mirror starts. Measure current lag and throughput on a test topic to estimate catch-up time, and ask the implementer to show that measurement. |
| Consumer offset complexity | MirrorMaker 2 translates consumer group offsets, but groups that read multiple topics, use manual offset stores or run in non-standard patterns need checking. Offset translation gaps can cause duplicate or skipped messages after switchover. | Identify consumer groups that do not commit offsets to Kafka. Test offset translation with a sample group and agree on an acceptable duplicate window with each owning team. |
| ZooKeeper versus KRaft and upgrade path | Apache Kafka 4.0 supports only KRaft, and ZooKeeper-based clusters must migrate to KRaft before upgrading to 4.x. Kafka upgrade notes recommend that KRaft clusters older than 3.3.x first move to 3.9.x before 4.x. Each step is a separate test and rollback plan. | Confirm the MSK version and mode first. Choose the target release from the supported list on the Kafka downloads page and plan the path from your current version, rather than assuming a direct jump. |
| Team Kafka skills | Running brokers, controllers, upgrades, partition rebalancing and incident response takes skills that MSK currently handles for you. Thin skills extend the timeline and raise on-call risk after cutover. | Assess the team against broker operations, KRaft controller management and Connect administration. Plan training or external support for the first upgrade cycle, and write runbooks before cutover. |
| Monitoring rebuild | CloudWatch metrics and alarms tied to MSK do not carry over. Dashboards, alerts for under-replicated partitions, consumer lag, disk use and Connect task failures must be built and tested on the new cluster before traffic moves. | Reuse existing metric names where possible. Build the alert set on the target while MSK still runs, so both environments are watched during the parallel period. |
| Quote and scope basis | Effort is best quoted as separate components: discovery, IAM and ACL conversion, connector rebuild, mirror setup and validation, cutover, monitoring and documentation. Each component has its own one-time and recurring costs. | Ask for a written scope that lists these components, the assumptions behind each, and what is excluded. Ask which items recur after cutover, such as upgrades and retainer support. |
What usually goes wrong and how to prevent it
Most failed MSK exits do not fail in the cutover itself. They fail in the gaps left by IAM policies that do not carry over, offsets that do not line up, and connectors that come back without their secrets. Each risk below has a check you can run before producers and consumers move.
Topics without ACLs fall back to super users
On a KRaft cluster, the StandardAuthorizer stores ACLs in the metadata log, and resources with no ACL are restricted to super users unless allow.everyone.if.no.acl.found is set to true. MSK IAM policies do not copy over, so a new cluster can look healthy while every application is denied. Before cutover, export each MSK IAM policy as explicit ACLs for the same principals and test each client identity against the new cluster. Keep the setting at its default unless you have a reviewed reason to change it.
Kafka authorization docsConsumer offsets that do not translate
MirrorMaker 2 replicates consumer groups with their offsets, but the offsets on the target cluster can lag or differ from the source during active replication. A consumer that starts from the wrong position will reprocess a window of messages, which is painful for payment, billing or inventory events. Confirm the offset sync lag for each critical group in a rehearsal, and make consumers idempotent or deduplicate on the target before switching them.
Producers writing to both clusters
During the window when MirrorMaker 2 runs, a producer that still points at MSK and another that has already moved both publish to the same logical topic. Mirroring then creates duplicates or topic loops, and consumers see the same business event twice. Assign each topic a single write owner, record the cutover order per topic in the runbook, and confirm with monitoring that each source topic stops receiving writes before its target takes over.
Java 17 requirement missed
Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, and clients and Kafka Streams applications need at least Java 11. Teams that move a self-managed cluster to 4.x often find that a Connect host, a build agent or a legacy consumer still runs an older JVM. Inventory the JVM version on every broker, Connect worker and application image before the target cluster is provisioned, and also check the upgrade path, since the upgrade notes recommend moving older KRaft clusters through 3.9.x first.
Kafka upgrade notesConnectors restarted without their secrets
MSK Connect connectors often hold database passwords, API keys and TLS material in configuration that is injected by AWS or stored in Secrets Manager. When the same connector is redeployed on Kafka Connect, it can start with empty values or, worse, with credentials pasted into plain config files. Map every connector property that references a secret, load those values through a secrets provider or externalized configuration, and confirm each connector reaches the RUNNING state with a test record before retiring the MSK copy.
Rollback never rehearsed
A cutover plan that has no tested way back usually stalls once the first consumer lag alarm fires. Rehearse the full sequence in a non-production copy: stop writes, let MirrorMaker 2 drain, switch producers, switch consumers, then reverse the order and measure how long it takes. Keep MSK running and mirroring back to it until the rehearsal and the production window have both passed, and agree in writing who makes the rollback decision and on what signal.
Questions buyers ask before moving off Amazon MSK
How long does a move off Amazon MSK take?
The duration depends on how many topics, consumer groups, connectors and client applications you run, how much data must be mirrored before cutover, and how many change windows your producers and consumers allow. Teams with a small number of topics and well-documented clients usually finish faster than teams with dozens of services that share topics and have undocumented offset handling. The largest single driver is the volume of data that MirrorMaker 2 must copy and keep in sync before you can switch traffic. Ask any provider to break the timeline into inventory, build, mirroring, cutover and a stabilization period, and to tie each phase to the work it covers in your environment rather than to a generic estimate.
Can our own team migrate off MSK without outside help?
A team that already operates Kafka on Kubernetes or VMs, understands KRaft, and has owned broker upgrades can usually do the work in-house. Teams that have only used MSK's managed control plane often underestimate the gaps: TLS and SASL setup, ACL rebuilding, Kafka Connect worker configuration, monitoring, and runbooks for broker failure. The practical test is whether someone on the team can explain how consumer offsets are mirrored, how ACLs are authorized in KRaft clusters, and how they would roll back a cutover. If those answers are unclear, an outside implementation partner such as DeployOpen can plan, implement and document the move under a fixed scope agreed in writing before work starts.
What does the migration need from our team and AWS accounts?
The work needs read access to the MSK cluster configuration, topic lists, consumer group inventory, connector definitions and IAM policies, plus network paths between the source and target clusters. Your team also has to supply application owners who can confirm producer and consumer behavior, and change windows for switching clients. Ask for a named owner for each downstream system, a freeze calendar for release trains, and access to the environment where the new Kafka cluster will run. Confirm who approves production changes and how long a rollback window stays open after cutover, because these decisions shape the schedule more than the replication tooling does.
Does MirrorMaker 2 copy our IAM policies to the new cluster?
No. MirrorMaker 2 replicates topic data, topic configurations, consumer groups with their offsets, and ACLs between Kafka clusters, but it does not translate AWS IAM policies. MSK's IAM access control uses AWS identities and policies, which have no direct equivalent in a self-managed cluster. You need to rebuild authentication on the new cluster, typically with SASL (SCRAM-SHA-512 or OAUTHBEARER are common choices) or mutual TLS, and then recreate authorization using ACLs that the StandardAuthorizer stores in the KRaft metadata log. Each client identity used under IAM must be mapped to a new principal, and the ACLs must be checked against that mapping before any application connects. Confirm the exact mechanisms your Kafka version supports in the security documentation before you commit to a design.
Is Confluent or Apache Pulsar the right target instead of self-managed Kafka?
It depends on whether you want to keep the Kafka protocol and client libraries you already use. Self-managed Apache Kafka is the closest match for MSK because MSK is Kafka, so producers, consumers and Kafka Connect keep working with minimal code change. Confluent Cloud is a managed service, so it changes the operating model without changing the protocol, but its Community License excludes some components from being offered as a competing hosted service, and Cluster Linking only moves data into Confluent Cloud, not out to a self-managed cluster. Apache Pulsar is a different system with its own API and architecture, so moving to it means rewriting clients and rethinking topic and tenancy design. Choose Pulsar only when its features are a requirement, not because the migration appears simpler.
How does rollback work if the new cluster fails after cutover?
Rollback is designed before cutover, not after the first failure. The usual approach keeps MSK running and mirroring in the reverse direction, so that offsets and new messages written to the self-managed cluster can be copied back if you need to return traffic. Your plan should specify which consumers switch first, how offsets are checkpointed, how duplicate processing is handled for idempotent and non-idempotent consumers, and the criteria that trigger a rollback. Ask the provider to test the rollback path in a non-production environment, to document the exact steps, and to state how long MSK must stay available after cutover.
What should a quote for this migration include?
A quote should follow from a written scope that lists the topics, consumer groups, ACLs, MSK Connect connectors, client applications and environments in play. It should separate one-time work (inventory, design, cluster build, mirroring setup, client changes, cutover support and documentation) from recurring costs (self-managed infrastructure, monitoring, upgrades and on-call support). It should name the Kafka version and the Java runtime it requires, state which security mechanisms are in scope, and describe the testing and rollback exercises. Ask whether ongoing support, upgrades and continuous testing are priced as a retainer, and what is excluded. DeployOpen does not publish a price list; a quote follows from the scope agreed in writing.
What a fixed-scope Kafka migration engagement delivers
A DeployOpen engagement for this migration starts with a written scope that names the MSK clusters, the target Apache Kafka cluster, the MirrorMaker 2 replication flows, the MSK Connect connectors to be rebuilt, and the producers and consumers that will switch. Most engagements are fixed-scope, so the deliverables and timelines are agreed in writing before work begins. In practice that means the cutover plan, rollback steps and acceptance checks are part of the agreed scope, not an open-ended hours budget. Before quoting, ask the vendor to list each deliverable against a named artifact, such as a replication configuration, a runbook or a test report, so the quote can be compared line by line.
Within that scope, DeployOpen plans, implements, hardens, backs up and documents the self-hosted Kafka cluster in your own infrastructure, whether that is your cloud account, a data center or an air-gapped network. Hardening covers the decisions this page has raised, including the SASL or mTLS replacement for IAM authentication, TLS on every listener, and ACLs stored in the KRaft metadata log with the default-deny behavior confirmed. Backup and documentation cover the topic configurations, the offset state of replicated consumer groups, and the operating runbook your on-call team will use after handover. Ask the provider to confirm which of these items are included in the fixed price and which would be handled as change requests.
Ongoing support is a separate retainer, not part of the fixed-scope delivery. A retainer typically covers upgrades, continuous testing and support after go-live, and it is the right place to plan for Kafka release cadence, since rolling upgrades are supported from the last three releases to the latest version. Ask for the retainer terms in writing, including response expectations, upgrade responsibilities and who performs the security retest after each change. DeployOpen does not publish a price list, so the quote follows from the written scope and the retainer terms you agree on.
How DeployOpen scopes, runs and supports the migration
DeployOpen plans, implements, integrates, hardens, backs up, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a move off Amazon MSK, we start from a written scope that names every topic, connector, client and ACL in the migration, then build and test the new Apache Kafka cluster beside MSK before any traffic moves.
How we scope
- Inventory every MSK topic, consumer group, MSK Connect connector, IAM policy and client application before agreeing the work.
- Agree the target Kafka version, KRaft layout, authentication method and monitoring in writing before work starts.
- Confirm the cutover order, rollback steps and who approves each switch so the fixed-scope deliverables and timeline are clear.
How we build
- Deploy the self-managed Kafka cluster in your environment and configure SASL or mTLS, TLS listeners and ACLs to match the MSK access model.
- Set up MirrorMaker 2 to replicate topics, configurations, consumer offsets and ACLs, then verify lag and data parity before cutover.
- Rebuild MSK Connect connectors on self-managed Kafka Connect and test each connector with representative data and failure cases.
How we hand over
- Deliver runbooks for producer and consumer switchover, rollback, broker maintenance and the Kafka upgrade path your team will follow.
- Document configuration, access controls, secrets handling, backup and recovery procedures, and the evidence your compliance team may request.
- Walk your platform and operations staff through the running system and confirm they can operate it without DeployOpen present.
How we support
- Support the cutover window and fix issues found during the first production period under the agreed written scope.
- Offer ongoing support, upgrades and continuous security testing as a retainer after the migration closes.
- Ask any vendor or partner about support terms, upgrade timing and security testing in writing before you commit to a plan.

