Amazon MSK alternative for on-premises and hybrid streaming

Teams that must keep event streams next to plants, branches or on-premises systems can run Apache Kafka in KRaft mode on their own hardware and mirror selected topics to cloud clusters. This page covers the constraint, the options and the operating model.

On this page

Why on-premises Kafka streaming needs an alternative to MSK

If your streams must stay close to factories, branches or on-premises systems, the answer is self-managed Apache Kafka in KRaft mode on hardware you own, with MirrorMaker 2 added only where you need to replicate data to a cloud cluster. Amazon MSK is a managed Kafka service that runs inside AWS regions, so a plant floor, a branch network or a data center that must keep producing and consuming during a WAN outage cannot depend on a regional cluster as its primary path. This section describes that hosting constraint. It is not a verdict on the product, which suits many workloads that already live in AWS.

Start by mapping each producer and consumer to a location and a latency or availability requirement. Systems that must keep working when the internet link is down, such as line controllers, historians or branch point-of-sale feeds, usually need a broker that sits on the same site. Systems that only need aggregated data in the cloud can consume a replicated copy. Confirm with your OT and network teams which links are allowed, which ports can cross the site boundary, and whether any data may leave the plant at all. Those answers decide whether the cluster is per site, a central cluster with local edge brokers, or a hub with replication.

Be clear about what you take on when you leave a managed service. Broker hardware or virtual machines, storage sizing, TLS certificates, SASL or mTLS identities, patching, upgrades and on-call response become your responsibility. Ask whether your team already runs Linux, certificate authorities and monitoring at the required level, and whether the operating model covers night shifts at each site. A regulated or OT-connected environment may also need evidence of how the cluster is secured and changed, so plan that documentation alongside the build.

What on-premises and hybrid streaming requires

Moving Kafka out of an AWS region changes who owns placement, versions, security and access control. The cards below cover the decisions that shape a self-managed cluster next to factories, branches or on-premises systems, and the checks to make before cutover.

Broker and data location

Decide which sites host brokers, which data stays local and which data is mirrored to cloud clusters. A plant that must keep running during a WAN outage needs local brokers that serve local producers and consumers without a cloud dependency. Map each topic to a site, owner and retention need before you size hardware. Confirm with the business owners whether any stream carries personal or regulated data that must not leave a specific site.

KRaft only from Kafka 4.x

Apache Kafka 4.0 supports only KRaft mode, and ZooKeeper mode has been removed. ZooKeeper-based clusters must migrate to KRaft before upgrading to 4.x, and KRaft clusters older than 3.3.x should first move to 3.9.x. Plan the upgrade path as a sequence of rolling steps, and check the Kafka upgrade notes for the exact version you target before scheduling any change window.

Kafka upgrade notes

Java 17 for brokers and Connect

Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, while clients and Kafka Streams applications need at least Java 11. Factory and branch servers often run older operating system images or vendor-supplied Java builds, so inventory the runtime on every host. Include the Java upgrade in the change plan, and test connectors against it because third-party plugins may carry their own requirements.

TLS and SASL authentication

Kafka secures clients, brokers and tools with SSL/TLS and SASL, and security is optional, so a cluster can run unsecured or mix secured and unsecured listeners. Choose SASL mechanisms the site can operate, such as SCRAM-SHA-512 or GSSAPI where Kerberos already exists, and avoid PLAIN without TLS. Replacing IAM-based access from MSK means designing certificates, credential rotation and identity sources for every site before producers move.

Kafka security overview

ACL defaults in KRaft

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. Leaving that default in place can block applications on day one, while setting it to true opens topics to anyone who connects. Write ACLs for each application and topic during migration, and verify them with a test client before moving production traffic.

Authorization and ACLs

OT standards and regulatory scope

Plants and utilities often reference ISA/IEC 62443 and NIST SP 800-82 Rev. 3 when they assess industrial control networks. These frameworks give asset owners context for zoning, segmentation and risk, and do not prescribe a Kafka configuration. Which regulations apply, such as NIS2, the Cyber Resilience Act or the Machinery Regulation, depends on sector, location and product, so confirm scope with legal or compliance teams before you design the architecture.

NIST SP 800-82 Rev. 3

Which open-source Kafka options fit on-premises constraints

This table compares three ways to keep Kafka brokers and data next to factories, branches or on-premises systems: Apache Kafka on owned servers, Apache Kafka on Kubernetes with Strimzi, and Apache Pulsar. Read each row as a trade-off: where the data lives, who operates it, and what you must confirm before committing. Apache Kafka itself has no paid edition, so most of the cost is staff time and hardware.

OptionKeeps brokers and data on-site byOperating trade-offsConfirm before choosing
Apache Kafka on owned serversRunning brokers, KRaft controllers and disks on your own hardware in the plant or branchYour team patches, sizes disks, manages TLS and SASL certificates and handles broker failures directlyHardware refresh plan, on-call coverage and whether a single site can meet your replication targets
Apache Kafka on Kubernetes with StrimziDeploying Kafka on an on-premises Kubernetes cluster so all brokers and persistent volumes stay in your data centerAdds a Kubernetes platform to operate, but automates rolling restarts, certificates and user management through operatorsStrimzi version support for your Kafka release, storage class behavior and which Strimzi features your team needs
Apache PulsarRunning brokers and BookKeeper bookies on owned hardware with data kept on-siteSeparate broker and storage layers mean more components to run, and fewer Kafka-compatible tools and staff are typically availableClient library compatibility with your producers and consumers, and whether your team can support the Pulsar operating model
Mirroring to cloud clustersUsing MirrorMaker 2 to replicate topics, configurations, consumer offsets and ACLs from the on-premises cluster outwardReplication runs continuously, so network links, lag monitoring and failover runbooks become part of daily workWhich direction you need, whether your cloud cluster is Kafka or a managed service, and your bandwidth between sites
Upgrade pathStaying on supported Kafka releases, since the project makes bugfix releases only for supported versionsClusters on older ZooKeeper or pre-3.3 KRaft setups need staged upgrades before moving to 4.xYour current version and whether it can roll forward to the latest release from the upgrade notes
Licensing costApache Kafka is Apache 2.0 with no paid edition from the project itselfCosts are hardware, support contracts if you buy them, and engineering time rather than a license feeWhether any vendor distribution or support agreement you consider adds charges

Choosing a deployment model for plants, branches and data centers

A single site with no cloud link is the simplest model. All producers, consumers and brokers sit on the same local network, so the cluster's availability depends on the power, cooling, network and hardware inside one building or data hall. Latency is local and predictable, and no traffic leaves the site, which suits systems that must stay on premises for policy or data residency reasons. The trade-off is that a site-level failure stops the streaming platform, so recovery depends on local spares, backups and staff on site.

  • Broker placement: Place brokers across separate racks or power feeds so that one failure does not remove a quorum of KRaft controllers or a partition's replicas.
  • Network links: Keep brokers, controllers and clients on a dedicated segment with redundant switching, and document every listener that is exposed.
  • Failure domains: Treat the room or building as the largest domain you control, and plan for a full-site outage in your recovery procedures.
  • Backups: Store topic configuration, ACL exports and a copy of data retention settings off the cluster, since replication alone does not protect against a site loss.
  • Operations: Assign on-call coverage for hardware events, because no cloud region will absorb the load if a rack fails.

Before committing, confirm sizing from your own throughput measurements of message rate, message size, retention and replication factor, since no published figure replaces those numbers for your plant.

How to deploy self-managed Kafka in KRaft mode on owned hardware

This sequence takes a team from choosing a supported Apache Kafka release to a KRaft cluster on owned hardware that is secured, replicated to the cloud where needed, and ready for rolling upgrades.

  1. Confirm the target Kafka release

    The platform team checks the Apache Kafka downloads page to select a supported release line and records the version in the change plan. Confirm the chosen release against your application client libraries, your Java runtime and any Kafka Connect plugins you depend on. Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, and clients and Kafka Streams applications need at least Java 11. Done means a written version decision, a Java baseline for every host and a list of client versions that support it.

  2. Plan KRaft controller and broker roles

    Engineers decide which hosts run the controller role, which run the broker role and whether any node runs both. Kafka 4.0 supports only KRaft mode, so ZooKeeper is not an option for a new build. Record node IDs, metadata log directories, listener addresses and failure domains such as racks or rooms in the factory or branch. Confirm firewall rules, DNS names and reachability between sites with your network team, because these details depend on your environment. Done means a node inventory that a reviewer can check against the actual hardware.

  3. Configure TLS listeners and SASL mechanisms

    The security engineer defines separate listeners for client, inter-broker and controller traffic and enables SSL/TLS on each one. Kafka security is optional, so set up every listener deliberately and avoid leaving plaintext endpoints open on plant networks. Choose a SASL mechanism from GSSAPI (Kerberos), PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 or OAUTHBEARER based on your identity provider. Issue certificates from your internal CA and confirm rotation procedures with your certificate team. Done means a test client connects over TLS with SASL authentication, and a plaintext connection is refused.

  4. Set authorizer and ACL defaults deliberately

    The administrator enables the StandardAuthorizer, which stores ACLs in the KRaft metadata log. Resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true, so decide that default before producers and consumers connect. Keep the default closed for production topics, define super users narrowly and document each service principal. Done means an unauthorized principal is denied on a test topic, and the ACL list is exported and stored under change control.

  5. Configure MirrorMaker 2 to the cloud cluster

    Where cloud consumers or disaster recovery need the data, the platform team configures MirrorMaker 2, which runs on Kafka Connect and replicates topic data, topic configurations, consumer groups with offsets and ACLs. Set topic allow and deny patterns so only approved streams cross the site boundary. Confirm the network path, certificates and credentials for the remote cluster with your network and security owners. Done means a test topic appears on the target cluster with matching configuration, and a consumer group's offsets are translated and visible there.

  6. Validate producers, consumers and failover

    Application owners point a test producer and consumer at the new cluster and confirm end-to-end delivery, authentication and authorization. The operations team stops one broker or controller in a test window and checks that the cluster elects a new leader and that clients recover. Keep the original path available until the results are accepted. Done means a written test record with pass results for normal traffic, a broker outage and a restored replica.

  7. Plan rolling upgrades within supported releases

    Operators write the upgrade path before go-live. The Kafka time-based release plan supports rolling upgrades from each release in the past year, the last three releases, to the latest version. For KRaft clusters older than 3.3.x, the upgrade notes recommend moving to 3.9.x before 4.x. Schedule each release on the downloads page, rehearse it on a non-production copy and confirm the upgrade notes for the exact target. Done means a dated upgrade runbook and a rehearsal record stored with the cluster documentation.

How plant clusters, branch sites and cloud mirrors connect

The diagram starts at plant and branch sites, where local Kafka brokers serve OT systems and keep working when WAN links drop. Each site's brokers are governed by KRaft controllers inside that site's network, and the central on-premises cluster collects what needs to be shared. MirrorMaker 2 then carries topics, configurations, consumer offsets and ACLs across the boundary to a cloud cluster, and the corporate network sits between the two. Check which way each link can open through the firewall, which identities the mirror uses, and where the OT boundary is enforced.

Plant and branch brokers feed a central cluster, which MirrorMaker 2 mirrors to the cloud.

The operating model your team takes on

Running Kafka on your own hardware turns a managed service into an internal product your team owns. The cards below cover the recurring work that connects site-level clusters, mirroring links and cloud targets, and the staffing decisions that follow from them.

Patching and upgrade cadence

The Kafka project aims for three releases a year and supports rolling upgrades from each release in the past year to the latest version. Plan a recurring window to move brokers, Kafka Connect and client libraries forward before a line falls out of support. Confirm which releases are supported on the day you schedule the upgrade, since the downloads page changes as new versions ship. Budget upgrade rehearsals in a test cluster before every production window.

Planned releases
3 a year
Release plan

Certificate and SASL credential rotation

Kafka supports SSL/TLS for traffic and SASL mechanisms including SCRAM-SHA-256, SCRAM-SHA-512 and OAUTHBEARER for clients, brokers and tools. Each site may hold its own certificate authority, keystore and service account, so every rotation touches several places. Document which listeners are secured, since security is optional in Kafka and unsecured listeners can persist unnoticed. Rotate certificates and SASL secrets on a schedule, not only after an incident.

Security overview

Monitoring and on-call across sites

Branch and factory sites may be far from your main operations team, and a broker outage at one site can stop local production lines. Decide who is paged, what counts as a page, and how a mirroring lag alert is handled when the source site is offline. Check that your alerting works during a WAN outage, because a central dashboard that loses its feed gives you no signal. Agree the on-call rota and escalation path before go-live.

Backup and recovery of cluster metadata

In KRaft mode, cluster metadata lives in the controllers and ACLs are stored in the cluster metadata log, so losing that metadata affects both topics and access rules. Back up controller state and your authorization configuration, and test restoring them into a clean environment. Mirrored clusters are a recovery option but not a backup, because they replicate mistakes such as accidental deletions. Write a recovery runbook that names which copy is the source of truth after a site failure.

Authorization and ACLs

Java runtime maintenance

Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, and clients and Kafka Streams applications need at least Java 11. Your team owns the JVM build, its security updates and the compatibility of each application with the runtime on each site. Inventory every host and container image that runs Java, including branch servers that rarely receive attention. Track the Java version on every site as part of the Kafka upgrade plan.

Capacity planning for each site

Each site has its own throughput, retention and disk growth, so a single cluster sizing exercise does not cover them all. Plan for mirroring traffic on top of local production, and for consumer catch-up after a link has been down. Staffing levels depend on your environment, including the number of sites, clusters and connectors you run, so estimate them with your own operations data rather than a generic figure. Ask your team to model the mirroring load before committing to hardware.

What changes when you move off MSK for on-premises streams

Moving off Amazon MSK for on-premises streams moves the broker lifecycle from AWS to your own team. Under MSK, AWS handles broker provisioning, patching coordination and much of the underlying infrastructure, and you configure cluster settings and choose the version. Once you run Apache Kafka in KRaft mode on your own hardware, you own installation, controller and broker upgrades, disk capacity, certificate rotation, monitoring and on-call response. Confirm early whether your operations staff can absorb that work at the hours your factories or branches need, because a stream that feeds a plant floor cannot wait for a business-hours fix.

Authentication and connectors change too, and both need replacement designs before cutover. MSK clusters that use IAM access control will need Kafka's own mechanisms instead, such as SSL client certificates or SASL, with the authorizer and ACLs stored in the KRaft metadata log. Plan for the case where resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set, because that default can break producers you did not expect. MSK Connect workers also become your responsibility, so the connector plugins, secrets and worker scaling need a home. The Apache Kafka security overview is the right starting point for mapping those controls.

Mirroring from MSK is a migration step, and it is covered in the dedicated migration page rather than here. Keep one fact in mind when you plan the route out: Confluent's Cluster Linking only creates links into Dedicated or Enterprise Confluent Cloud clusters, so it moves data in, not out to a self-managed cluster. For a self-managed destination, plan on MirrorMaker 2 and confirm its behavior with your target Kafka version.

Questions buyers ask before on-premises Kafka work

What does on-premises Kafka work cost, and which components drive it?

The cost is the sum of hardware, people, monitoring, network links and support, and each one recurs differently. Hardware (brokers, controllers, disks and rack space or colocation) is mostly one-time, with refresh cycles later. Staff time to build, operate and patch the cluster recurs every month. Network links between a factory or branch and the cloud region, and any dedicated circuits, are usually billed monthly by a carrier. Monitoring, logging and backup tooling add licenses or storage, and support contracts for the hardware and operating system recur annually. Kafka itself is Apache 2.0 with no paid edition from the project. Ask any provider for a written quote that lists each component separately, with who pays for each line.

How long does an on-premises Kafka deployment take?

The duration depends on the number of sites, how many topics and clients must move, how mature the existing network and hardware are, and whether mirroring to a cloud cluster is part of the scope. Hardware lead times, change windows at each site and the number of client applications that need configuration changes often matter more than the Kafka install itself. Ask for a timeline in the written scope that separates design, build, test, cutover and handover, and name the client-side dependencies that could slow each phase.

What does the work need from our internal teams?

Expect the work to need named people from several teams, not only the platform group. Network engineers must confirm routing, firewall rules and bandwidth between plants or branches and the cloud. Security teams must approve the authentication model, TLS certificates and ACL design. Application owners must confirm topic ownership, producer and consumer settings and cutover windows. Operations staff need access to the hardware, monitoring and on-call rotation. Ask the provider to list these roles and the hours each one is expected to give in the written scope.

Can our own team run on-premises Kafka without outside help?

A team with existing Linux, network and Kafka operations skills can run a cluster, but the question is whether it can carry the ongoing work: patching, certificate rotation, capacity planning, broker replacement, upgrades and incident response. Many organizations start with an outside implementation partner for design, build and handover, then keep operations in-house or move to a retainer for upgrades and testing. Ask for a skills matrix against the scope, and decide who will be on call before the cluster goes live.

How do KRaft mode and upgrade rules affect planning?

Plan for KRaft from the start, because Apache Kafka 4.0 supports only KRaft mode and ZooKeeper mode has been removed. Any ZooKeeper-based cluster must migrate to KRaft before upgrading to 4.x, and the Kafka upgrade notes recommend that KRaft clusters older than 3.3.x upgrade to 3.9.x before moving to 4.x. Rolling upgrades are supported from each release in the past year to the latest version, according to the Kafka time-based release plan. Since Kafka 4.0, brokers, Kafka Connect and tools require Java 17, and clients and Kafka Streams applications require at least Java 11. Confirm the current supported releases on the Kafka downloads page before fixing a version in the scope.

What should a written scope and quote for on-premises Kafka include?

A useful scope names the sites, the number of brokers and controllers, the storage and network assumptions, the authentication model (SASL mechanisms or mutual TLS), the ACL design, the mirroring plan to any cloud cluster, and the monitoring and backup approach. It should also list deliverables such as runbooks, handover sessions and acceptance tests, and state what is excluded. Ask for the quote to show one-time and recurring costs separately, the assumptions behind each line, and the client responsibilities. DeployOpen does not publish a price list, and a quote follows from the written scope.

What security controls matter for Kafka at industrial sites?

Kafka supports SSL/TLS for encryption and SSL or SASL for authentication, but security is optional, so clusters can run unsecured or mix secured and unsecured listeners. In KRaft clusters the StandardAuthorizer stores ACLs in the metadata log, and resources without ACLs are restricted to super users unless allow.everyone.if.no.acl.found is set to true. Industrial sites may also need to map the design to the ISA/IEC 62443 series, which is organized into general, policy, system and component groups. Confirm with your security and OT teams which requirements apply to your environment before design starts.

Evidence that auditors and OT reviewers ask for

A reviewer assessing self-hosted Kafka next to a plant or branch will usually ask for a set of records that shows how the cluster is built, secured and changed over time. Start with architecture and network diagrams that show every broker, KRaft controller, Kafka Connect worker and MirrorMaker 2 instance, the zones or segments they sit in, and every path that crosses the boundary between the OT network and the corporate or cloud side. Reviewers in industrial settings often compare these diagrams against the zone and conduit model described in the ISA/IEC 62443 series, so label each zone and conduit explicitly rather than leaving the drawing to speak for itself.

Next, export the configuration that enforces access. Collect the listeners and advertised.listeners settings, the security.inter.broker.protocol value, the SSL and SASL settings per listener, and the authorizer configuration, along with the ACL list from the cluster metadata. Confirm whether allow.everyone.if.no.acl.found is set to false, and record which SASL mechanisms (GSSAPI, PLAIN, SCRAM-SHA-256, SCRAM-SHA-512 or OAUTHBEARER) each listener accepts. Keep these exports dated and versioned, because an auditor will test whether the running state matches the approved design. Upgrade and patch records matter as much: keep a log of each Kafka version in service, its supported status on the Apache Kafka downloads page, and the Java runtime in use, since Kafka 4.x requires Java 17 for brokers.

Mirroring and access evidence close the picture. Document the MirrorMaker 2 configuration, including source and target aliases, the topics and consumer groups it replicates, and the ACLs it carries across, then show a test run where offsets and configurations arrived intact. For access logs, confirm that broker authorization denials and administrative changes are retained in a central store that the security team controls. DeployOpen prepares these records, controls and test results, but it does not issue audit reports or certifications. Independent auditors and certification bodies decide whether your environment conforms. Ask the assessor early which evidence format they accept, and confirm the retention period for logs with your own compliance team.

How DeployOpen deploys Kafka on your own hardware

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including data centers and air-gapped networks. For on-premises and hybrid Kafka, that means a written scope that fits your factory, branch or data center constraints, followed by a cluster you can operate and review yourself.

How we scope

  • Map which sites, factory systems and cloud clusters need Kafka, and which data must stay on premises.
  • Agree the KRaft topology, broker sizing approach, and which MirrorMaker 2 flows cross to cloud clusters.
  • Record authentication choices (SASL or SSL), authorization model and who owns ACL changes in writing.

How we build

  • Deploy Apache Kafka in KRaft mode on your hardware, with TLS and SASL configured on every listener.
  • Configure MirrorMaker 2 for topics, configurations, consumer offsets and ACLs where cross-cluster replication is in scope.
  • Test failure handling, cross-site network loss and upgrade paths before the cluster carries production traffic.

How we hand over

  • Deliver runbooks for broker replacement, certificate rotation, topic changes and version upgrades.
  • Document the security configuration as evidence for internal reviews and for OT or NIS2 readiness work.
  • Train your operations staff on monitoring, alerting and on-call procedures for the cluster you own.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Ask us to confirm the supported Kafka release line and upgrade window against the official release plan at quote time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.