Which fits a team leaving Kinesis Data Streams for Apache Kafka
Kafka is a sound target when the driver is a renewal, a data residency rule, AWS-specific APIs that make a move hard, or a retention bill that keeps growing, but only if your team can operate a cluster. Apache Kafka is licensed under Apache 2.0 and has no paid edition from the project itself, so the software cost is zero and the decision turns on who runs it. The supported releases are 4.3.1, 4.2.2 and 4.1.2, and new deployments should start on one of these rather than on an archived version.
Kinesis still fits when your pipeline is AWS-native, your operations staff is small, and your consumers are mostly Lambda functions and Firehose delivery streams. In that setup the managed service removes broker, disk and upgrade work, and the cost of moving those consumers may exceed the savings. Self-hosted Kafka fits better when you need portable deployments across on-premises and more than one cloud, when you want the Kafka ecosystem and its tooling, or when you need direct control over how long data is kept. Confirm with your data platform team that the connectors and clients you need exist for Kafka before you commit.
Four factors should decide the choice. First, throughput and retention length: long retention on Kinesis is billed as an ongoing charge, while on Kafka it consumes broker disk and replication traffic that you size and pay for yourself. Second, ordering needs, since both systems order records within a partition or shard, so you must confirm your partition key strategy carries over. Third, existing Kafka skills in your team, which lowers the cost of a self-hosted cluster. Fourth, who will operate the cluster on a daily basis, including upgrades, which must follow the rolling upgrade path in the Kafka release plan. Ask your team to write down each consumer type and its requirements, then price the operations work explicitly before deciding.
Which option fits which workload
This table maps common workload conditions to the platform that usually fits better, and names the condition that drives the choice. Read each row against your own estate, team skills and compliance constraints, since the better fit often depends on one or two factors rather than on the platform alone.
| Workload condition | Better fit | Driving condition |
|---|---|---|
| AWS-only event pipeline with Lambda consumers | Kinesis Data Streams | Lambda and Firehose integrate natively with Kinesis, and the team has no plan to run brokers |
| Multi-cloud or on-premises estate | Apache Kafka | Kafka runs on any infrastructure you control, so producers and consumers can span clouds and data centers |
| Data must stay in a fixed location | Apache Kafka | Self-hosted Kafka keeps brokers and disks in the regions and facilities you choose; confirm residency terms with AWS for Kinesis |
| High fan-out to many independent consumers | Apache Kafka | Consumer groups let many applications read the same topic without per-consumer throughput charges; check your own fan-out cost model |
| Long retention for replay | Apache Kafka | Retention is set by your disk capacity and topic configuration; compare the retention fees on Kinesis for your target window |
| Team with no Kafka experience and small volume | Kinesis Data Streams | Operating brokers, KRaft clusters, security and upgrades requires skills that a managed service removes |
| Strict security and audit controls over broker access | Apache Kafka | SSL/TLS, SASL and ACLs are configured by you, so reviewers can inspect them directly; plan the work and evidence |
| Connectors to databases and external systems | Apache Kafka | Kafka Connect and a broad connector ecosystem reduce custom code; confirm connector licenses before rollout |
What running Apache Kafka takes in your own infrastructure
Running Kafka yourself starts with a mode decision: every Kafka 4.x release runs only in KRaft mode, because ZooKeeper mode was removed in 4.0. Clusters already on ZooKeeper must migrate to KRaft before upgrading to 4.x, and KRaft clusters older than 3.3.x should first move to 3.9.x. Confirm your current cluster version and metadata mode before you plan any upgrade, since that sequence sets the length of the project. Java is the second check: since Kafka 4.0, brokers and Kafka Connect require Java 17, while clients and Kafka Streams applications need at least Java 11. Application teams often run older JVMs, so inventory them early.
Security is optional in Kafka, so your team must switch it on deliberately. Encryption uses SSL/TLS between clients, brokers and tools, and authentication uses SSL or one of the documented SASL mechanisms, including SCRAM-SHA-512 and OAUTHBEARER if your identity provider supports them. The authorization design matters as much as the transport setup. In KRaft clusters, the StandardAuthorizer keeps ACLs in the metadata log, and set allow.everyone.if.no.acl.found to false so that resources without an explicit ACL are restricted to super users. Expect to write ACLs for every producer, consumer group, Connect worker and topic, and to test that a missing ACL fails closed. Keep super user accounts few and documented.
Plan upgrades and staffing around the release rhythm. Kafka aims for three releases a year, and rolling upgrades are supported from each of the last three releases to the latest version, so a cluster that falls further behind needs a staged path. Kafka Connect ships with each Kafka release, which means connector workers upgrade with the brokers, and you administer them through the REST interface or a third-party tool, since the project does not provide a graphical console. If you replicate data between clusters, MirrorMaker 2 handles topics, configurations, consumer group offsets and ACLs, and it runs on Kafka Connect, so it adds another component to patch. Ask your team or partner to confirm the staffing hours and on-call model in writing before you commit.
Where the data lives and who holds the keys
Moving from Kinesis to self-hosted Kafka changes where event data sits, who operates the brokers and how access is proven. The cards below cover the decisions that shape those answers and the evidence a compliance team will ask for.
Choose the hosting location
Kinesis streams run inside AWS regions that you select, operated by AWS. Self-hosted Kafka can run in your own data center, in a cloud account you control, or on an air-gapped network with no outbound path. Confirm which regions or sites your data residency rules allow, and whether producers and consumers outside that footprint need to reach the cluster. Decide this before sizing disks or networking, because moving a live cluster later is a project in its own right.
Define the hosting model
Your team can run Kafka on virtual machines, on Kubernetes with an operator, or as a managed service from another provider. Each model splits responsibilities differently between your staff, a vendor and DeployOpen. Ask who patches brokers, who holds the encryption keys for disks and who can reach the controller and broker ports. Write those answers into the design before procurement starts.
Kafka security overviewIntegrate identity with SASL and Kerberos
Kafka authenticates clients, brokers and tools through SSL or SASL. The documented SASL mechanisms are GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER. Most enterprises connect OAUTHBEARER to their existing identity provider or Kerberos realm, so that offboarding in one place removes Kafka access too. Plain username and password lists without rotation are the weakest option and should be avoided for production.
Kafka security overviewEncrypt traffic and secure listeners
Kafka supports SSL/TLS between clients, brokers and tools, but security is optional, so a cluster can run with unsecured or mixed listeners. Confirm that every production listener is encrypted and that no plaintext listener is reachable from networks where data should not travel. Also verify certificate issuance, rotation and revocation, since expired broker certificates stop traffic.
Produce access evidence from ACLs
In KRaft clusters, the StandardAuthorizer stores ACLs in the cluster metadata log. Resources without an ACL are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so keep that setting false in regulated environments. Export the ACL list and the super user list on a schedule. Those exports are the access evidence an auditor will request when asking who could read or write a topic.
Kafka authorization docsMap controls to compliance evidence
DeployOpen prepares systems, controls and evidence for compliance assessments, including location records, identity configuration, encryption settings and ACL exports. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations. Ask your auditor early which evidence they will accept and in what format, so the Kafka design produces it from day one.
How a move from Kinesis to self-hosted Kafka unfolds
The sequence turns an inventory of Kinesis streams and their consumers into a secured Kafka cluster in your own infrastructure, with producers and consumers moved over in controlled stages and the old streams retired only after offsets and ordering are verified.
Inventory streams, producers and consumers
List every Kinesis data stream, its producers, and every consumer, including Kinesis Client Library applications, Lambda event source mappings, Firehose delivery streams and any enhanced fan-out consumers. Record the retention period set on each stream, peak throughput, partition key choices, and the ordering guarantees each consumer relies on. Your team and the implementation partner should sign off on this inventory before design begins, since it sets the scope of every later step. Done means each stream has a named owner and a documented retention and ordering requirement.
Stand up a secured Kafka cluster
Deploy Apache Kafka in your own cloud accounts, data center or air-gapped network, running in KRaft mode on a supported release listed on the Kafka downloads page. Enable TLS for client and broker traffic, configure a SASL mechanism that fits your identity model, and set authorization so ACLs in the cluster metadata log govern access rather than relying on open defaults. Confirm the Java runtime meets the upgrade notes for the chosen version. Done means a test topic can be produced to and consumed from with authenticated clients, and the cluster passes your security review checklist.
Map streams and shards to topics
Translate each Kinesis stream into one or more Kafka topics and decide the partition count from the shard count and the throughput you measured, not from the shard count alone. Review the partition key scheme, because Kinesis hashes keys to shards while Kafka hashes keys to partitions, so per-key ordering is preserved but the distribution may shift. Set topic-level retention explicitly, since Kafka does not inherit Kinesis retention settings. Done means a mapping document lists every stream, its topic, partition count, retention and key strategy, and has been reviewed by the stream owners.
Dual-write during cutover
Change producers so each event is written to the Kinesis stream and to the matching Kafka topic during a defined cutover window. Consumers continue reading from Kinesis at this stage, which keeps the existing business flow intact while Kafka receives the same events. Compare record counts and payload checksums between the two systems for representative traffic, and monitor producer errors on both paths. Done means the two paths show matching counts and checksums over the agreed window, and the team has a tested rollback that removes the Kafka write path without losing Kinesis data.
Move consumers to Kafka consumer groups
Rewrite each consumer to use a Kafka client and a named consumer group, replacing Kinesis Client Library checkpointing with committed offsets. Lambda and Firehose consumers need separate handling: Kafka Connect sink connectors can take over delivery work that Firehose did, and Lambda functions can be re-hosted as consumers of the Kafka topic. Kafka Connect manages connector offsets automatically, so connector code does not commit offsets itself. Run each consumer group against the Kafka topic while Kinesis remains the source of truth for a short parallel period. Done means each consumer group has processed the same events as its Kinesis counterpart and its offsets are committed without gaps.
Validate ordering and offsets
Test the behavior that matters to each consumer: per-key ordering under retries, reprocessing after a consumer restart, and handling of late or duplicate events. Check that consumer lag stays within the limits your application needs and that committed offsets match the expected position after failover tests. Record the results against the requirements captured in the inventory step. Done means each consumer has a signed-off test record, and any gap in ordering or delivery has either been fixed or accepted in writing by the stream owner.
Cut over and decommission Kinesis
Switch the remaining consumers to Kafka, stop writes to Kinesis, and keep the stream readable for the retention window needed for any rollback or audit requirement. Once the agreed hold period ends, delete the Kinesis streams and remove their IAM policies, Lambda mappings and Firehose configurations. Confirm the backup and recovery plan now covers the Kafka cluster. Done means no producer or consumer references Kinesis, the resources are removed, and the cutover record is filed with your compliance team.
How producers, Kafka and consumers fit during cutover
The diagram starts with producers that write to both Amazon Kinesis Data Streams and a self-hosted Apache Kafka cluster during dual-write. Kafka consumer groups read the Kafka topics, while Kafka Connect moves records into sink systems. MirrorMaker 2 copies topics, consumer group offsets and ACLs to a second Kafka cluster when one is needed. Everything Kafka-side sits inside the client's own infrastructure boundary. Check that the Kinesis and Kafka consumers see the same records, and that offsets and ACLs match before cutover.
Producers dual-write to Kinesis and Kafka, with Kafka Connect and MirrorMaker 2 inside the client boundary.
Questions buyers ask before choosing Kafka over Kinesis
How much effort does running Apache Kafka take compared with Kinesis?
Running Kafka yourself is more work than using Kinesis, because you own the brokers, storage, upgrades, monitoring and security settings that AWS handles behind the Kinesis API. The effort depends on cluster size, how many topics and partitions you run, how long data is retained, how many teams publish and consume, and whether you already operate Kubernetes or other stateful systems. Ask any implementation partner to break the estimate into broker operations, upgrade cycles, on-call coverage and monitoring setup, and to state which parts are one-time and which recur each year.
How long does a Kinesis to Kafka migration take?
No general duration can be given, because the time depends on the number of streams and consumers, how much logic depends on the Kinesis Client Library, whether producers can dual-write during cutover, and how much retention history must be carried over. Teams with few consumers and a clear cutover window move faster than those with many Lambda, Firehose and custom consumers. Before agreeing a timeline, confirm the inventory of producers and consumers, the replay requirements, the rollback plan and the test environment, and ask for the schedule to be written into the scope.
Can our team run this migration without outside help?
A team can do it alone if it already has engineers comfortable with Kafka clients, Linux, TLS and SASL configuration, Kubernetes or VM operations, and production incident response. The skills that most often gap are broker tuning, partition planning, consumer group rebalancing, and securing the cluster with SSL or SASL and ACLs. Kafka 4.x also requires KRaft clusters and Java 17 for brokers and Kafka Connect, so check that your staff can work with those versions. An outside partner can cover the parts your team has not run before, and the split of work should be written down.
Can Kafka replace Lambda and Firehose consumers that read from Kinesis?
Kafka can replace these consumers, but the replacement is a new component rather than a configuration change. Lambda event source mappings and Firehose delivery streams do not read Kafka topics natively, so you need a Kafka consumer in your own runtime, or Kafka Connect sink connectors that write to the same destinations. Kafka Connect manages connector offsets automatically and scales through Kafka's group management protocol, which removes manual offset commits from connector code. Connector configuration goes through the REST API or third-party tools, since Kafka Connect does not include a graphical interface. Confirm which sink targets you need and whether each has a maintained connector.
How do retention and ordering differ between Kinesis and Kafka?
Both systems order records within a unit of parallelism, Kinesis within a shard and Kafka within a partition, and both let consumers replay data from a stored position. The practical difference is that Kafka retention is set by your own configuration and disk capacity, so long retention means planning storage, replication and cleanup policies yourself. Confirm the default retention and limits in the Kinesis documentation for your account, then decide the retention per topic in Kafka. Ordering across partitions is not guaranteed in either system, so check whether consumers depend on global ordering and redesign keys if they do.
Does Confluent licensing affect the use of Apache Kafka?
No. Apache Kafka is an Apache Software Foundation project under the Apache License 2.0, and the project itself offers no paid edition. The Confluent Community License applies to some Confluent components such as Schema Registry, REST Proxy, ksqlDB and certain connectors, and it restricts offering them as a hosted service that competes with Confluent. If your design uses any of those components, review that license separately with your legal team. Core Kafka brokers, clients, Kafka Connect and MirrorMaker 2 are covered by the Apache license.
What should a Kafka migration scope include?
A written scope should list the producers and consumers to move, the target cluster architecture and hosting, the authentication and authorization design, the monitoring and backup approach, the retention policy per topic, and the cutover and rollback steps. Add testing of failover and rebalancing, documentation, and handover to your operations team. DeployOpen delivers fixed-scope engagements with scope, deliverables and timelines agreed in writing before work starts, and ongoing support or upgrades can be added as a retainer. Ask for each deliverable to be named, with acceptance criteria.
What Apache-2.0 licensing means for a long-term plan
Apache Kafka is licensed under the Apache License 2.0, and the project itself offers no paid edition. For a long-term plan, that means the core broker, the clients and Kafka Connect, which ships as part of Apache Kafka, carry no per-core, per-cluster or per-seat license fee from the project. The cost question moves to who supports the platform: your own staff, a vendor with a support contract, or a partner. Ask any support provider to state in writing which components they cover, since a support contract is a separate purchase from the software license.
Check the components you use, not only Kafka itself. The Confluent Community License covers some Confluent components, including Schema Registry, REST Proxy, ksqlDB and some connectors. It forbids offering them as a hosted service that competes with Confluent, so a team that plans to sell a managed streaming service built on those components needs legal review. Internal use is a different question from hosting for third parties, so have counsel confirm the position for your case, and list every connector and add-on in your architecture so none is missed.
Treat the Kafka downloads page as the source of truth for which releases are current, and re-check it before each upgrade decision. At the time of this research the supported releases listed there were 4.3.1, 4.2.2 and 4.1.2, and all earlier versions are archived. Because the project ships roughly three releases a year and supports rolling upgrades from releases within the past year, plan a regular upgrade window into your operating model rather than a one-time install. Confirm the release and license details yourself on that page before you commit to a version.
How DeployOpen works on this
DeployOpen plans, implements and supports self-hosted Apache Kafka inside your own cloud accounts, data centers or air-gapped networks. For a Kinesis migration, the work starts with a written scope that compares your current stream topology, consumers and retention needs against a Kafka design you can review.
How we scope
- Inventory every Kinesis stream, producer, consumer, Firehose delivery and Lambda trigger in the current setup
- Agree in writing which streams move to Kafka topics, which stay on Kinesis, and why
- Record target retention, ordering needs and consumer fan-out requirements before any build begins
How we build
- Deploy Kafka 4.x in KRaft mode with TLS and SASL authentication inside your environment
- Map shards and partition keys to topic partitioning and test ordering against real consumer behavior
- Test authentication, ACLs and broker exposure, then retest after fixes are applied
How we hand over
- Deliver architecture notes, configuration records, runbooks and the cutover plan as written documents
- Walk your platform and security teams through ACL design, monitoring and upgrade procedures
- Provide a dual-write and consumer cutover checklist that your teams can rehearse and sign off
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover
- Plan Kafka upgrades around the supported release window your team agrees to follow
- Confirm the support scope, response expectations and upgrade cadence in the written agreement

