Migrating from Amazon SQS to Apache Kafka: what it involves
Moving from Amazon SQS to Apache Kafka is a change of model, from queues to a log, and the main work is redesigning consumers and retry handling. A standard SQS queue typically hands each message to a single consumer and removes it once that consumer deletes it. Kafka keeps records in topics for a retention period you configure, and each consumer group tracks its own offset, which changes how replay, fanout and failure recovery work. Teams usually start this review because of a renewal notice, an AWS cost review, a data residency rule or a wish to run messaging inside their own network. Each of those triggers is a reason to inventory queues before anyone chooses a topic layout.
Internal platform teams usually own this work, often with an implementation partner for the Kafka cluster design, security controls and cutover plan. Effort and risk depend less on the number of queues than on what the consumers do. Before planning, list every queue with its producers, consumers, message sizes, ordering needs and dead-letter queue use. Standard queues provide at-least-once delivery, so consumers that already tolerate duplicates will port more easily than consumers that assume each message arrives once. Queues carrying payloads above 1 MiB, where SQS can store the content in Amazon S3 and keep a pointer in the message, need a decision on where that content will live once Kafka carries the traffic. This page gives no duration or cost figure. Confirm both against your own inventory and a written scope.
Three risks deserve a decision before any queue is switched. First, failure handling does not carry over on its own: SQS provides a visibility timeout and a redrive policy that moves failed messages to a dead-letter queue, while Kafka has no built-in dead-letter queue, so you will design retry topics or a dead-letter topic and decide who reviews poison messages. Second, the cluster needs current choices: Kafka 4.0 and later run only in KRaft mode, brokers require Java 17, and rolling upgrades are supported only from the last three releases, so confirm the supported release line on the Kafka downloads page before you pick a version. Third, access control must be rebuilt, because Kafka authenticates clients with SSL or SASL and authorizes them with ACLs, and IAM policies do not translate line by line. Keep the old queues live with a drain window and a rollback path until consumers have processed every message from the old path.
Which Amazon SQS features map to Kafka and which need rework
This table compares the Amazon SQS features your team relies on with their closest Apache Kafka equivalents. Each row carries one of three statuses: clean means a direct match, needs rework means the design or code changes, and gap means Kafka offers no equivalent and your platform must supply it. The main takeaway is that delivery semantics, retention and dead-letter handling change the application, so plan that work before cutover.
| Amazon SQS feature | Kafka equivalent and what changes | Status | Confirm in Kafka 4.3 docs |
|---|---|---|---|
| Standard and FIFO delivery | Consumer groups with committed offsets. Redelivery and ordering depend on your commit logic and partition keys. | Needs rework | Producer idempotence, transactions and consumer offset commit behavior |
| Message retention (4 days default, 60 seconds to 14 days) | Time and size retention set per topic. Messages stay after being read, so cleanup and replay rules must be designed. | Needs rework | Topic retention settings and the broker defaults for your version |
| Dead-letter queues | No built-in equivalent. Build a retry and dead-letter topic in your consumers or use Kafka Connect error handling for sinks. | Needs rework | Kafka Connect error tolerance and dead-letter settings for sink connectors |
| Server-side encryption with KMS keys | TLS protects data in transit. Encryption at rest uses disk or volume encryption tied to your own key management service. | Gap | Confirm no native at-rest option applies to your version and plan disk-level encryption |
| Large-message pointers to S3 or DynamoDB | Kafka size limits are set on brokers and producers. A claim-check pattern to your object store needs application code and cleanup. | Needs rework | Maximum message size settings for brokers, producers and consumers |
| SNS fanout to multiple subscribers | Several consumer groups read the same topic independently. Subscription filters move into consumer or stream logic. | Needs rework | Consumer group offsets and how independent groups read one topic |
| IAM policies | Kafka ACLs on topics, consumer groups and clusters, tied to SASL or TLS principals. Policies must be rewritten. | Needs rework | Authorizer setup and ACL resource types in the authorization documentation |
| Cost allocation tags and monitoring labels | No tag-based billing in self-hosted Kafka. Cost splits and metric labels come from your own tooling and naming rules. | Gap | Metrics exposed by brokers and the labels your exporter adds |
| TLS and SASL authentication | Kafka supports SSL and SASL, including SCRAM and OAUTHBEARER. Client identities move from IAM roles to Kafka credentials. | Clean | Listener, SASL mechanism and client configuration for your version |
What data and integrations need to move or be rebuilt
A move from SQS is mostly a rebuild. Messages in flight, retention, access and monitoring each sit in a different place in Kafka, and several have no direct equivalent. Work through the cards in order, because the backlog decision shapes the cutover plan.
Message backlog and in-flight messages
Messages already in the queue are the first decision. Ask AWS which export options apply to each of your queue types, since standard and FIFO queues can differ in what you can extract. If no bulk path fits, plan a bridge consumer that drains the queue and republishes messages to Kafka while producers switch over. Assign an owner to every message that is in flight at cutover, or it risks being processed twice or dropped.
Queue and redrive settings
Visibility timeouts, delivery delays, redrive policies and retention are set per queue, and each one needs an explicit Kafka decision. Match topic retention to how long consumers may need to replay messages after a failure. Kafka has no visibility timeout, so record how each consumer handles retries today before you rewrite it around consumer groups and offsets. Export the current values from every queue, not from memory, and keep them in the migration record.
- Maximum retention
- 14 days
Producer and consumer identities
Each SQS producer and consumer runs under an IAM role or policy, and those grants do not carry over to Kafka. Plan one identity per application, authenticated with SSL or one of the SASL mechanisms Kafka supports, and bind each identity to ACLs on the topics and consumer groups it needs. Inventory every role with SQS permissions before you decide, because a missed consumer can surface later as a stalled pipeline. Re-create these grants by hand, since they are not copied.
Kafka security overviewDead-letter queues
A dead-letter queue in SQS holds messages that exceeded the redrive count on a source queue. Kafka has no built-in equivalent, so most teams publish failed records to a dedicated dead-letter topic and build the redrive step in consumer code or a separate job. Confirm which source queues have a dead-letter queue attached today, how many messages each holds, and who reprocesses them. Decide whether the Kafka copy keeps original headers and the failure reason, because replay tooling depends on both.
S3 pointer payloads
Messages above the size threshold keep their body in Amazon S3 and carry only a pointer through SQS. Kafka records have their own size limits, so large payloads need a decision: send the object reference and keep the bytes in object storage, or raise the Kafka limits and carry the body inline. Check which producers write pointers, which consumers dereference them, and whether the S3 objects stay in place or move to a self-hosted store. Do not delete any S3 object until every consumer has moved.
- Pointer threshold
- 1 MiB
Alarms, tags and dashboards
CloudWatch alarms, dashboards and cost allocation tags do not move with the queue. SQS cost allocation tags have no Kafka counterpart, so decide which labels your cost and ownership reporting needs and attach them to topics, clusters or your own tooling. Recreate alarms on consumer lag, broker health and disk usage in your monitoring stack, then confirm each alarm fires in a test before retiring the SQS version. Treat these as rebuilt items and list each one with its new owner.
How parallel running and cutover work for SQS consumers
The main risk in a parallel run is duplicate processing, and it starts on the SQS side. Standard queues deliver at least once, so a consumer can receive the same message more than once even before any Kafka path exists. During the run, the same business event may also reach a Kafka topic, so every consumer on both sides must be idempotent. Each event should carry a stable business key, the consumer should record the keys it has already applied in a store your team controls, and side effects such as payments, emails or database writes should check that store first. Keep both paths fed with one of two patterns. A bridge is a relay service that reads from each SQS queue and writes to a Kafka topic, which leaves producers unchanged. A dual publish changes each producer so that every event goes to SQS and Kafka. The bridge limits producer changes but becomes a component you must monitor. Dual publish requires a code change in each producer, and that change must be tested and released.
The bridge must delete an SQS message only after Kafka confirms the write. A crash between those two steps then produces a duplicate that idempotent consumers absorb, and the event is never silently dropped. On the Kafka side, set enable.idempotence to true and acks to all on the bridge producer so that retries do not create duplicates inside Kafka. Ask the platform owner to confirm replication factor and retention on each topic before the first event is fed. MirrorMaker 2 copies topics between Kafka clusters, so it does not move SQS messages. It becomes relevant only if you later need a second Kafka cluster. Each Kafka consumer group tracks its own offsets, so move one consumer group at a time, and confirm in a test environment that the new group starts from the position you expect.
Cut over one queue at a time. First stop direct writes to that SQS queue, or stop the bridge feed for it, and then wait until the queue reports zero visible messages and zero in-flight messages in its queue attributes. Confirm that the dead-letter queue is empty or that each remaining message has a recorded disposition. Only then switch that queue's consumer group to Kafka. Keep the SQS queue, its dead-letter queue and the reverse path in place so that consumers can be pointed back to SQS if errors appear after the switch. Write the go and no-go criteria, the owner of each decision and the rollback steps into a runbook before the first switch. Ask your team to confirm how long the SQS queue must remain in place after cutover, and who signs off on decommissioning it.
How to migrate from Amazon SQS to Apache Kafka in six steps
Each step produces a document or a tested artifact that the next step depends on, so the move can be paused or rolled back at a clear point. The sequence starts with an inventory of every SQS queue and ends with retirement of queues, IAM roles and keys, with the Kafka platform built and proven in between.
Inventory every queue and its dependencies
The team that owns the SQS estate lists every standard and FIFO queue, its producers and consumers, dead-letter queue links, message size, retention setting, tags, and the IAM roles and KMS keys that touch it. Flag queues that carry messages above 1 MiB, since their payloads sit in Amazon S3 or DynamoDB behind a pointer, and the new consumers must resolve those pointers too. Record which queues need exactly-once processing and which tolerate at-least-once delivery, because that decides the Kafka design. Check the list against CloudWatch metrics, since consumers that nobody documented often appear there. The output is a queue register signed off by each owning team.
Pilot one low-risk queue
Pick a queue with few consumers, one that tolerates duplicate delivery and has no FIFO requirement. Map it to a Kafka topic, choosing the partition count and message key from the message flow. Build a pilot consumer that makes processing idempotent, because standard SQS queues deliver at least once. Test it with replayed traffic, including a consumer failure in the middle of a batch and a broker restart. The output is a tested pilot consumer and a short test report covering duplicates, lag and failure handling. Later steps reuse the report as evidence for the design choices.
Build the Kafka platform and runbook
Deploy Apache Kafka in KRaft mode, because Kafka 4.0 supports only KRaft and ZooKeeper-based clusters must migrate before upgrading to 4.x. Run brokers on Java 17. Enable TLS and one of the supported SASL mechanisms, such as SCRAM-SHA-512 or OAUTHBEARER, then set ACLs so each application principal reaches only its own topics and consumer groups. Define how configuration, certificates and topic data are backed up, and restore a copy into a test cluster to prove the procedure works. Confirm the supported release on the Kafka downloads page before choosing a version. The output is a runbook and a restore test record.
Run both systems in parallel with a bridge
Keep SQS as the system of record while a bridge copies messages into Kafka, or while producers write to both during the overlap. MirrorMaker 2 only copies data between Kafka clusters, so the SQS bridge is a separate component that you build or choose, then test for this job. Confirm its license and maintenance status before relying on it. Compare message counts, consumer lag, duplicate rates and dead-letter activity across both paths throughout the overlap. The output is a reconciliation report in which every gap has a documented cause.
Cut over one consumer group at a time
Move each consumer group from SQS to Kafka separately, starting with the group that carries the least risk. Before each switch, confirm the group has drained its SQS backlog, its handlers are idempotent, and the rollback path to SQS has been tested. Keep the bridge running for that group until its Kafka consumer lag stays within the threshold agreed in the runbook through a full business cycle. Then retire that group's SQS subscription. The output is a cutover record per consumer group, with the switch time, owner sign-off and rollback test result.
Decommission queues, roles and keys
Stop all producers to the SQS queues, then confirm each queue is empty and no consumer still reads it. SQS keeps unread messages for the configured retention period, which can be as long as 14 days, so drain each queue before you delete it. Remove IAM roles and policies that served only these queues, and retire any KMS keys used only by them after checking that no other workload depends on them. Keep the queue register, cutover records and audit logs under your retention policy. The output is a retirement record listing each deleted queue, role and key, with the approver and date.
Producers, the bridge and Kafka consumer groups move one group at a time
The diagram starts with producers writing to Amazon SQS queues inside the AWS account. A bridge consumer reads those queues and produces the same messages to topics on a self-hosted Apache Kafka cluster in the client network, so the trust boundary sits on that bridge connection, which should use the SSL or SASL authentication Kafka supports. Each Kafka consumer group reads its own copy of the topic, which replaces SNS fanout. The cutover switch moves each consumer group from the SQS path to the Kafka path separately. Before switching a group, check message ordering, duplicate handling and offset tracking for that group.
Producers, the bridge and Kafka consumer groups across the trust boundary.
What drives the cost of an Amazon SQS to Apache Kafka migration
This table lists the drivers that change migration effort and running cost when moving from Amazon SQS to self-hosted Apache Kafka. Read each row as a question to answer before design starts, with the reason it matters and the step that reduces the work. Apache Kafka has no license fee from the project, so the cost moves to compute, storage, network, staff time and upgrades.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Queue and consumer count | Each SQS queue and its consumers becomes a topic, consumer group and ACL set to recreate and test. | Inventory every queue, redrive policy and consumer first, and retire unused queues before design. |
| FIFO and ordering | Message group ordering maps to keyed partitions, and SQS FIFO deduplication must be reviewed in consumers. | Derive partition keys from message group IDs, and confirm idempotency and delivery needs with each team. |
| Large payloads | SQS holds pointers for messages over 1 MiB stored in S3 or DynamoDB, a pattern you must rebuild. | Choose between raised broker and client size limits and an object store pointer, then load-test both. |
| Cross-account IAM access | Cross-account producers and consumers rely on IAM roles today, and Kafka authenticates with SSL or SASL identities. | Map each IAM role to a Kafka principal and ACL set, and confirm the SASL mechanism with security. |
| Kafka platform build and hardening | You build and secure the cluster yourself, including TLS, SASL, KRaft metadata, network controls and backups. | Use a supported release line, KRaft mode and infrastructure as code so builds repeat. |
| Retention and sizing | SQS defaults to 4 days of retention and allows up to 14 days. Kafka retains data per topic, so disk and replication drive cost. | Set retention per topic from consumer recovery needs, and size brokers with load tests. |
| Monitoring and on-call | AWS runs the queue service today. Kafka adds broker health, consumer lag and disk alerts that your team must answer. | Write alert ownership and runbooks before cutover, and confirm the on-call rota covers broker incidents. |
| Parallel run window | Both paths run together so consumers can drain SQS and compare outputs, which adds some running cost. | Set exit criteria for each queue, and agree the window length with change management. |
| Upgrades and version path | Kafka supports rolling upgrades from releases in the past year, and each upgrade consumes your team's staff time. | Schedule upgrades on the Kafka release cadence, test on staging, and budget staff time for them. |
What usually goes wrong when teams move from SQS to Kafka
Most migration problems come from keeping the SQS mental model after the queue has changed. SQS removes a message once a consumer deletes it, while Kafka keeps records for a retention period and tracks a position per consumer group. The cards below cover where that difference shows up in delivery, cutover, access control, data retention and cluster upgrades.
Duplicates from at-least-once delivery
SQS standard queues deliver at least once, so a consumer can receive the same message twice after a visibility timeout expires or a worker crashes. Kafka creates the same risk through offsets: if a consumer commits before its work finishes, a crash loses that work, and if it commits after, a crash between processing and commit repeats it. Make each handler idempotent by writing a stable business key into the target system under a unique constraint, then test a forced restart in the middle of a batch. Ask the team which handlers write to payments, inventory or notifications, since those need this check first.
SQS Developer GuideDrop-in queue and ordering assumptions
SQS standard queues make no ordering promise, and FIFO queues order messages within a message group. Kafka orders records only within one partition, and the record key chooses the partition, so a weak key either splits related events across partitions or sends unrelated work to one busy partition. Kafka also has no visibility timeout, no per-message delete and no built-in dead-letter queue, so retries and poison messages need topics and handler logic that your team writes. Map each FIFO message group to a key, list every queue whose consumers depend on order, and test ordering under load.
Messages lost during the drain
Cutover fails when producers and consumers switch on different days. If producers move to Kafka while messages still sit in an SQS queue, consumers that start on Kafka from the latest offset skip backlog that never reached the topic. A queue deleted or purged before its backlog is consumed takes those messages with it. Stop producers first, let SQS consumers drain until no visible or in-flight messages remain, then start Kafka consumers from a recorded offset, and keep a per-queue count reconciliation for the cutover window.
ACLs left too open
Kafka authorization is only as strict as the ACLs you write. Teams moving from IAM policies often grant an application service account read and write on every topic to get a first deployment working, or use a wildcard principal, and those grants stay after go-live. Kafka clients authenticate with SSL or SASL, and the documented SASL mechanisms include SCRAM-SHA-512 and OAUTHBEARER, so give each service its own principal. Review ACLs per topic and consumer group, deny by default, and repeat the review whenever a new service is added.
Kafka ACL guideRetention too short for replay
SQS keeps a message for a retention period of 4 days by default, up to 14 days, and a consumer's delete removes it sooner, so the queue is rarely a replay source. Kafka keeps records by time or size according to each topic's configuration, and a period that suits a backlog may be too short to rebuild a downstream store after a bug or to onboard a new consumer. Set retention per topic from the longest replay you need, and budget broker storage for it before cutover. Do not carry the SQS default into topics that feed new consumers.
Kafka upgrade paths
Kafka 4.0 supports only KRaft mode, and ZooKeeper mode has been removed, so a ZooKeeper-based cluster must migrate to KRaft before it moves to any 4.x release. The upgrade notes recommend that KRaft clusters older than 3.3.x first move to 3.9.x. Rolling upgrades are supported from each release in the past year, the last three releases, to the latest version, so an older cluster needs a planned sequence of hops. Brokers, Kafka Connect and tools also require Java 17 from 4.0, so check the Java runtime on every host and the client libraries before scheduling the first hop.
Kafka upgrade notesHow the migration differs by starting point
A small estate with a handful of standard queues is the most contained starting point. The work centers on producers, consumers and the queue settings each team relies on. Standard queues already deliver at-least-once, so the first question is whether each consumer handles duplicates safely. The move changes how progress is tracked, and that is where most of the consumer work sits.
- Consumer progress: Kafka consumers commit offsets per consumer group instead of deleting messages after a successful receive, so each consumer's commit logic must be rewritten and tested.
- Retention settings: Write down the retention each queue relies on today, then set Kafka topic retention explicitly so replay windows are known before cutover.
- Ordering assumptions: Standard queues make no ordering promise, but teams often assume order anyway. Key records deliberately so any order a consumer relies on is explicit.
- Retry timing: Visibility timeouts and receive counts have no direct Kafka equivalent, so retry timing moves into consumer code.
- Queue-by-queue parallel run: A small estate can usually be shadow-consumed one queue at a time, which keeps each comparison reviewable.
Before scheduling cutover, confirm which consumers depend on visibility timeouts or other SQS-specific retry behavior, because those changes produce no visible error.
FIFO queues bring exactly-once processing, message group ordering and dead-letter redrive into one operating model. Kafka covers ordering and delivery guarantees differently, and it does not provide a queue-style redrive feature out of the box. Each of these becomes an explicit design item and a tooling item. Many FIFO queues multiply that work, because every queue needs its own key, retry and replay decisions.
- Message groups to keys: SQS message group IDs translate to Kafka record keys. Key-to-partition mapping changes if partition counts change later, so set partition counts before historical data is loaded.
- Exactly-once scope: Kafka idempotent producers and transactions cover writes inside Kafka. End-to-end exactly-once depends on consumers writing to databases or APIs idempotently, and that design must be tested.
- Retry and dead-letter topics: Build retry topics and dead-letter topics per consumer group, with headers that record the original topic, partition, offset and failure reason.
- Redrive tooling: Write a replay tool that moves messages from dead-letter topics back to source topics and records who replayed what and when. Today this step is often performed by hand from an SQS redrive runbook.
- Backlog handling: In-flight messages and pending groups need a cutover plan that drains queues and records offsets, not just a message count.
Ask the team for the redrive runbooks used in production, since each one describes a replay step the replacement has to reproduce.
SNS fanout sends one event to several SQS subscribers, often in different accounts and regions. The publish and subscribe pattern carries over to Kafka, but cross-account trust, filtering and network paths all have to be rebuilt on the Kafka side. The size of the change depends on how many subscriptions cross an account boundary and who owns each one.
- Subscription inventory: Record each SNS topic, subscription, filter policy and cross-account principal. Filter policies must become consumer-side filtering or separate topics.
- Topic layout: Decide whether event types get their own topics or share a topic with headers. That choice sets the size of each ACL and the number of consumer groups.
- Access control: Cross-account IAM policies become Kafka ACLs bound to authenticated identities. The Kafka authorization and ACL documentation explains how these are defined.
- Cross-region consumers: If subscribers sit in other regions or clusters, MirrorMaker 2 can replicate topics, configurations, consumer group offsets and ACLs between clusters. The Kafka geo-replication guide describes that setup, and the replication topology becomes a design artifact you own.
- Network paths: Cross-account delivery becomes broker listeners, DNS, firewall and routing rules that you must build and test.
Confirm which subscriptions feed audit or failover systems first, since those decide the replication design and test plan more than the subscription count does.
Regulated workloads usually need three things: data kept in named locations, controls that can be shown to an assessor, and logs that show who accessed what. Self-hosting gives you control over where messages sit, but it also moves encryption, identity, logging and retention from AWS-managed defaults to settings your organization must build, configure and evidence. DeployOpen prepares systems, controls and evidence for assessments. Independent auditors and certification bodies make the determination.
- Data residency: Record where brokers, disks, backups and any replicas run, including cross-region replication links, so residency can be shown per topic.
- Encryption: SQS offers AWS-managed server-side encryption or customer keys in AWS Key Management Service. Kafka protects transport with SSL, and encryption at rest depends on the storage layer you select.
- Authentication: Kafka supports SSL and SASL mechanisms, including GSSAPI (Kerberos), SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. The Kafka security overview lists them, and you should choose the one that fits your identity provider.
- Audit logging: Authorization decisions, administrative changes and client connections need logs that are retained and shipped to your log platform, because AWS audit records for SQS do not cover the Kafka cluster.
- Retention and deletion: Topic retention and compaction are data handling settings, so document them in the same control set as backups and deletion.
Ask your assessor which evidence formats they accept, such as configuration exports and log samples, before the design is frozen, because that decides what the build must produce.
Questions teams ask before they migrate from Amazon SQS to Apache Kafka
How much does moving from Amazon SQS to Apache Kafka cost?
The Apache Kafka software has no license fee, since it is released under Apache 2.0 with no paid edition from the project, so your cost is the infrastructure and the people. Recurring costs are compute and storage for brokers and controllers, network traffic between zones, backups, monitoring and staff time for upgrades and on-call. One-time costs are sizing, deployment, client code changes, testing and cutover. Your current SQS spend is the baseline: AWS describes SQS as having no upfront costs and scaling with usage, so compare request and data volumes against what the hardware and staff would cost. Ask any quote for a written list of queues, consumers, message rates, retention periods, environments and recovery targets.
How long does an SQS to Kafka migration take?
The honest answer depends on your queue inventory, so treat any date given before one exists as a guess. The main drivers are the number of queues and consumers, how many depend on SQS-specific behavior such as visibility timeouts, dead-letter queues and FIFO ordering, how many environments you must build, and how much change approval your organization requires. A small estate of standard queues with simple consumers can move one queue at a time. Estates with many FIFO queues, consumers owned by several teams or long change freezes need more parallel running and longer test periods. Ask for a timeline built from the inventory, with a cutover plan and a rollback step for each queue.
What does the migration need from our engineering team?
Your team needs named owners for each queue and each consumer, access to the AWS accounts and queue settings, and engineers who will change producers and consumers. Security and platform staff decide how brokers are hosted, how clients authenticate, and how certificates or SASL credentials are issued and rotated. Operations staff take ownership of monitoring, alerts, backups and upgrades after handover. Product owners approve cutover windows and any change in delivery or ordering behavior that consumers will see. Code changes that replace SQS calls, visibility timeout logic and dead-letter handling usually take the most attention, so start the inventory of those patterns early.
Can our own team do the migration without an implementation partner?
Yes, if your team already runs Kafka in production, can size, secure and upgrade it, and each application team can change its own consumers. The work covers more than the cluster: deployment, Java 17 for brokers, client authentication and ACLs, consumer migration, load and failure testing, and a tested rollback. If those skills are missing, DeployOpen offers fixed-scope engagements covering planning, implementation, hardening, backup, documentation and support inside your own infrastructure, with scope, deliverables and timelines agreed in writing before work starts. Also decide internally who will staff the on-call rotation after handover, since that determines how much outside help the long run needs.
Can Amazon SQS keep running while we move to Kafka?
Running both systems during a staged move can reduce risk for production queues. The rule is that each queue has one active path at a time, so producers and consumers never split messages between systems without a plan. A common pattern moves one producer and its consumers at a time, with the SQS backlog drained before the switch. SQS retention defaults to 4 days and can be set from 60 seconds to 14 days, so count the backlog and its age before each cutover. Confirm how each consumer handles duplicates and ordering before you run both, because the two systems deliver messages differently.
Which Apache Kafka release should we choose for the migration?
Start from 4.3.1, the highest version number among the three supported releases listed on the Apache Kafka downloads page, and fall back to 4.2.2 or 4.1.2 only if a client library, Java runtime or security control requires it. Brokers need Java 17, and clients and Kafka Streams applications need at least Java 11. Kafka 4.0 supports only KRaft mode, so new clusters should be built on KRaft from the start. The project makes bugfix releases only for supported releases, and rolling upgrades are supported from the last three releases to the latest version, so choose a line you can keep upgrading. Check the upgrade notes for your target version before you commit to a path.
How do SQS queue patterns map to Kafka topics, and what breaks?
Standard SQS queues map to Kafka topics, but the delivery model changes. SQS typically has a single subscriber per queue, so fanout built with Amazon SNS becomes several consumer groups reading one topic at their own offsets, and each group needs its own design review. Visibility timeouts, per-message deletes and built-in dead-letter queues do not carry over directly, so retry and dead-letter behavior must be rebuilt in consumers or in dedicated topics. Message bodies above 1 MiB stored in S3 or DynamoDB with a pointer need a check against the message size limits in both brokers and clients. Check that consumers tolerate redelivery, and confirm the ordering key for every FIFO queue.
How does Kafka authentication and access control differ from SQS IAM?
Kafka authenticates clients, brokers and tools with SSL or SASL, and the documented SASL mechanisms are GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. Authorization is then set with Kafka ACLs on topics, consumer groups and cluster resources, which replaces the per-queue IAM policies you use in SQS. SQS encrypts messages with its managed keys or with custom keys in AWS Key Management Service, so decide how encryption at rest, certificates and credential rotation will work on your own storage and network. Confirm with your security team which mechanism fits your identity provider, and map each existing IAM role to a Kafka principal before cutover.
How DeployOpen scopes, runs and supports the Kafka migration
DeployOpen plans and runs the move from Amazon SQS to self-hosted Apache Kafka inside your own cloud accounts, data centers or air-gapped networks. Work starts with a written scope that names the queues, consumers and cutover conditions in play. Documentation from each step is written so your security and compliance teams can review it.
How we scope
- The written scope lists each SQS queue, its producers, consumers, dead-letter queues and retention settings.
- Scope also covers SQS encryption settings, IAM access patterns and large-payload handling.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- Kafka 4.0 and later supports only KRaft, so brokers are deployed in that mode.
- Topic partitioning, retention and producer settings are mapped to SQS queue behavior and tested against your traffic profile.
- Authentication uses SSL or SASL, with ACLs set per topic and consumer group for each application.
How we hand over
- Runbooks cover topic creation, consumer lag checks, broker restarts, upgrades and incident response.
- Dead-letter handling, retry topics and the SQS-to-Kafka consumer changes are documented for your developers.
- Cutover steps, rollback criteria and evidence for your change board are agreed before the migration window.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Kafka upgrades follow the supported release line, and rolling upgrades are checked against your own clusters.
- Security testing of brokers, clients and access controls can be scheduled alongside the migration.

