Azure Event Hubs vs Amazon MSK: which fits your streaming workload
Event Hubs fits an Azure-only estate that wants no broker management and Azure-native capture, identity and private networking. Amazon MSK fits a team running Apache Kafka on AWS that wants Kafka's own APIs, supported versions and a documented open-source exit path. Neither fits when event data must stay in your own data center or air-gapped network, or when one Kafka cluster must run across clouds. In those cases, self-hosted Apache Kafka is the option to evaluate first. Both products are event streaming services, so this comparison covers how events are ingested, retained and moved between systems. It does not cover database storage, so keep the evaluation focused on pipeline needs.
Event Hubs is Azure-only and has no self-hosted edition. Microsoft describes an Event Hubs emulator for local development and testing, which does not run production traffic in your facility. Microsoft says existing Kafka workloads can run without code changes, but confirm that your clients, consumer group behavior and Kafka features are supported on the tier you choose. Retention is up to 7 days on Standard and up to 90 days on Premium and Dedicated, so any replay window longer than 7 days points you to Premium or Dedicated. On MSK, AWS lists Kafka 3.9.x as recommended and 4.x versions as supported, as set out in the Amazon MSK supported versions documentation. AWS lists end of support for Kafka 3.6.0 on June 1, 2026 and for 3.7.x on September 1, 2026, so check which version your clusters run today.
The decision turns on four questions. First, which cloud footprint will this platform live in, and will any consumer sit outside it? Second, how deeply does your stack depend on Kafka clients and APIs, since that dependency keeps a later move to self-managed Kafka straightforward. Third, what retention do replay and audit require, measured against the tier limits above. Fourth, who operates the platform. A managed service removes broker work but ties operations to one provider's tiers and quotas, while self-hosting moves patching, scaling and failover to your team or a partner. Ask each vendor for a written quote per tier and retention setting, and include the cost of data transfer and storage, before comparing totals.
Which service fits each streaming scenario
This table matches six common streaming scenarios to the service that fits best, and names the condition under which each advantage holds. Check whether your own conditions match the stated condition in each row before choosing. The main takeaway: Event Hubs fits Azure-native estates, MSK fits Kafka-centric AWS estates, and self-hosted Apache Kafka is the option when data must stay in your own facilities.
| Scenario | Better fit | Reason and condition |
|---|---|---|
| All workloads and identity on Azure, no Kafka dependency | Azure Event Hubs | Holds when clients use AMQP, HTTPS or the Kafka protocol and access runs through Entra ID or managed identities. |
| Kafka applications and Kafka tooling on AWS | Amazon MSK | Holds when the workload runs in AWS and depends on Kafka tooling, Kafka Connect or Kafka-native clients the team already operates. |
| Kafka client workloads moving to Azure with minimal code change | Azure Event Hubs | Holds when the Kafka protocol covers the client features in use. Confirm supported client APIs, configs and admin tools before cutover. |
| Retention beyond the managed tier limits | Self-hosted Apache Kafka or Amazon MSK | Holds when retention must exceed 90 days on Premium or Dedicated. Confirm MSK retention limits in AWS documentation before choosing MSK. |
| Data that must stay in your data center or air-gapped network | Self-hosted Apache Kafka | Holds when data may not leave your sites. Event Hubs has no self-hosted edition, and MSK runs only in AWS. |
| Team wants the option to leave one cloud for another | Amazon MSK | Holds when clients use open Apache Kafka APIs and avoid AWS-specific integrations. The Apache Kafka core is the portable part. |
How the decision path sorts Event Hubs, MSK and self-hosted Kafka
The path starts with where the event data must run. Azure-only workloads lead to Azure Event Hubs, but only after you confirm that your Kafka clients are compatible with its Kafka protocol support, since Event Hubs has no self-hosted edition. AWS-only workloads that want managed Apache Kafka lead to Amazon MSK. On-premises, air-gapped or multi-cloud requirements lead to self-hosted Apache Kafka. Each branch ends at the same question: will you need to leave later? If the exit is Kafka to Kafka, MirrorMaker 2 replicates topics, configurations, consumer groups with offsets and ACLs between clusters.
Decision path from data location to Event Hubs, MSK or self-hosted Kafka.
Azure Event Hubs vs Amazon MSK: capabilities side by side
This table compares Azure Event Hubs and Amazon MSK on deployment, protocols, retention, pricing, security, resilience and Kafka operations. Cells that point you to AWS documentation mark details to verify before a decision or a quote. The main takeaway is that Event Hubs is an Azure-only managed service, while MSK exposes Apache Kafka versions and broker quotas directly.
| Capability | Azure Event Hubs | Amazon MSK |
|---|---|---|
| Deployment model | Fully managed, Azure-only service with no self-hosted edition | Managed Apache Kafka on AWS with provisioned, Express and Serverless clusters |
| Protocols | Kafka, AMQP 1.0 and HTTPS; existing Kafka workloads can run without code changes | Apache Kafka protocol; confirm any other supported interfaces with AWS documentation |
| Retention ceiling | Up to 7 days on Standard; up to 90 days on Premium and Dedicated | Confirm retention limits for each cluster type with AWS documentation |
| Pricing structure | Basic, Standard, Premium and Dedicated, billed hourly per throughput, processing or capacity unit | Provisioned, Express and Serverless; kafka.m7g.large at $0.204 per broker-hour in US East (AWS pricing page) |
| Authentication and encryption | Microsoft Entra ID RBAC, Shared Access Signatures or managed identities; encryption at rest with Microsoft-managed or customer-managed keys; TLS 1.2 in transit | Confirm authentication methods and encryption key options with AWS documentation |
| Private networking | Azure Private Link | Confirm private connectivity options with AWS documentation |
| Capture, schema registry and connectors | Capture to Azure Blob Storage or Data Lake Storage; Schema Registry for Avro and JSON | MSK Connect at $0.11 per MCU-hour; confirm schema registry options with AWS documentation |
| Geo-replication and SLA | Geo-replication and geo-disaster recovery; SLA of up to 99.99% | Confirm cross-region replication and SLA terms with AWS documentation |
| Kafka versions and broker limits | Broker-level settings are outside this comparison; confirm Kafka client compatibility on Microsoft Learn | Kafka 3.8.x through 4.2.x (3.9.x recommended); up to 60 brokers in KRaft mode, 30 on ZooKeeper |
Azure Event Hubs vs Amazon MSK pricing: what drives the bill
Both services bill on usage, but they meter it differently. Event Hubs bills by tier unit and, on lower tiers, by event count, while MSK bills by broker, storage, cluster mode and connector capacity. The cards below cover each product's billing model, the recurring and one-time costs, the drivers that move the total, and the questions to put to any quote.
Event Hubs tiers and units
Event Hubs has four tiers: Basic, Standard, Premium and Dedicated. Each is billed per hour by a unit, which is a Throughput Unit on Basic and Standard, a Processing Unit on Premium and a Capacity Unit on Dedicated. Basic and Standard also bill ingress per million events, where each event up to 64 KB counts as one, while Premium and Dedicated include ingress. Size the unit count for peak traffic, since the hourly charge applies whether or not traffic arrives. Confirm current rates on the Event Hubs pricing page for your region.
Event Hubs pricingMSK billing by mode
Amazon MSK prices each cluster mode separately. Provisioned standard brokers are billed per broker-hour and storage per GB-month. In US East (N. Virginia), the Amazon MSK pricing page lists $0.21 per broker-hour for kafka.m5.large and $0.10 per GB-month of storage. Express brokers also bill ingress per GB, and Serverless bills per cluster-hour, partition-hour and GB in and out. Low-cost tier storage carries a retrieval charge per GB, so check how often you read old data before choosing it. Recheck the MSK pricing page at purchase.
Amazon MSK pricingUsage recurs, setup does not
Both services bill for usage that accrues every hour, month or GB for as long as the cluster or namespace runs, so that is the recurring cost. Migration, integration, connector setup and load testing are one-time effort that you pay for once. A low hourly rate can still produce a large total if producers and consumers need rework, so ask each quote to separate the two lines. Model the recurring bill across a full billing cycle, including peak periods, before you commit.
Drivers that move the total
Six inputs move the bill most. Throughput sets ingress and partition load. Retention sets how long storage accrues, and Event Hubs offers up to 7 days on Standard and 90 days on Premium and Dedicated. Broker or unit size and count set the hourly base. Partitions are billed per partition-hour on MSK Serverless, connectors are billed per MCU-hour on MSK Connect, and data transfer out adds cost on MSK Serverless. In KRaft mode, MSK includes controllers at no additional cost, so broker count and size drive most of the provisioned hourly charge.
Questions for any quote
Ask every quote to state the tier or cluster mode, unit or broker count and size, region, retention period, peak and average throughput, partition count, connector count with MCU sizing, and storage tier. Ask which charges are included and which the cloud platform bills separately. DeployOpen works to a fixed scope agreed in writing before work starts and does not publish a price list, so ask for a quote that follows from that written scope. Confirm all rates on both pricing pages at purchase.
What operating effort each service leaves with your team
Event Hubs takes broker operations off the team, but capacity planning and streaming design stay with it. Microsoft describes Azure Event Hubs as a fully managed streaming platform and says existing Kafka workloads can run without code changes or cluster management, so the team does not patch or size brokers. What remains is capacity. On Basic and Standard, the team sizes throughput units, on Premium it sizes processing units, and on Dedicated it sizes capacity units, and each choice sets the hourly bill. The team also owns Capture to Blob Storage or Data Lake Storage, the Schema Registry for Avro and JSON schemas, access through Microsoft Entra ID RBAC, Shared Access Signatures or managed identities, Private Link settings, and the monitoring that shows when throughput or consumer lag is off. Assign a named owner for each of these before cutover.
On MSK, the team still makes the Kafka design decisions that a managed control plane cannot make for it. Amazon MSK removes broker hosting, but on provisioned clusters the team chooses broker instance types and broker counts and plans Kafka version upgrades. AWS lists 3.9.x as the recommended version and as the last version that supports both ZooKeeper and KRaft, and in KRaft mode the controllers are included at no additional cost. Check the supported Kafka versions page before writing an upgrade plan. AWS end-of-support dates for Kafka 3.6.0 (June 1, 2026) and 3.7.x (September 1, 2026) have already passed as of this page's date, so readers on those versions should confirm their upgrade path with AWS now. Topics, partitions and consumer groups also stay with the team, and partition counts set parallelism, so a design review should happen before topics reach production.
The number of teams, topics and consumers, the security model and the upgrade cadence set the effort on both services. On Event Hubs, the number of producing and consuming teams determines how many event hubs, consumer groups and access assignments the team maintains, and throughput growth determines how often someone revisits unit sizing. On MSK, the number of topics, partitions and consumers drives broker count, partition planning and rebalancing work, and the authentication and authorization model determines how many identities and ACLs the team operates. Upgrade cadence is a recurring cost on MSK because the team schedules each Kafka version change itself. Ask each vendor in writing which of these tasks it performs and which fall to your staff, then estimate the monthly hours for each.
Where data lives and how you would leave Azure Event Hubs or Amazon MSK
Data location, encryption, access and exit paths decide how hard a move from either service would be. The cards below separate what the vendor fixes from what you choose in your own accounts and contracts. Confirm each point against current vendor terms before you rely on it in a review.
Data location and residency
Azure-only, with no self-hosted edition, Event Hubs means your data can only sit in Azure regions. Microsoft Learn describes an Event Hubs emulator for local development and testing only. Amazon MSK runs in AWS regions that you choose when you create a cluster. Ask each vendor in writing where stored data, backups and logs reside, and which regions its residency terms cover.
Encryption and key control
Event Hubs encrypts data at rest with either Microsoft-managed keys or customer-managed keys, and it uses TLS 1.2 for data in transit. Choosing customer-managed keys moves key ownership and rotation decisions into your own key management setup, which your security team should review. For MSK, confirm with AWS which key options apply to data at rest, whether customer-managed keys are supported for your cluster type, and which TLS versions the brokers accept. Get these answers in writing before the security review.
Identity and private network
Event Hubs supports Microsoft Entra ID role-based access control, Shared Access Signatures, managed identities and Private Link, so access can be tied to your existing directory and private network paths. Shared Access Signatures are bearer-style credentials, so token issuance, lifetime and storage need the same care as any secret. For MSK, confirm which IAM authentication methods, broker-level access controls and private connectivity options apply to your cluster type and network design. Check each service's access model against your identity provider before you plan the migration.
Exiting Azure Event Hubs
Leaving Event Hubs starts with Capture, which writes events to Azure Blob Storage or Azure Data Lake Storage, so you keep a copy of the history in storage you control. Moving producers and consumers to another broker is a separate step that depends on your client code and protocols. Confirm whether MirrorMaker 2 can read from an Event Hubs Kafka endpoint before you rely on it for a cutover. Plan a test migration with one topic first.
Event Hubs overviewExiting Amazon MSK
The exit path from MSK runs through MirrorMaker 2. It replicates topics, configurations, consumer groups with their offsets and ACLs to a self-managed Kafka cluster, so consumers can resume from replicated offsets. The target needs network reachability from the source and a Kafka version compatible with it. AWS lists end-of-support dates for Kafka 3.6.0 and 3.7.x on MSK, and both have passed, so confirm your current version before planning.
MirrorMaker 2 docsFeature lock-in by platform
Capture, Schema Registry and Entra ID integration are Azure-specific, so code built on them needs replacement on exit. On the AWS side, MSK Connect and the Express and Serverless modes are AWS-specific. The Apache Kafka core protocol and data model are the portable part, so keep producers and consumers on standard Kafka clients and keep schemas and connector configurations in version control. Inventory which features each workload uses before you choose a target.
When self-hosted Apache Kafka fits better than either service
Self-hosted Apache Kafka fits best in three cases: when event data must stay in your own data center or air-gapped network, when one Kafka deployment must run across clouds, or when cloud lock-in and exit terms weigh more heavily than managed operations. Apache Kafka is licensed under the Apache License 2.0, and the Apache Software Foundation project publishes no paid edition, so the license terms of the core broker do not depend on a vendor's pricing. Event Hubs also exposes the Kafka protocol, so the first check is client compatibility: confirm the Kafka client versions, transactions and consumer group features your applications use. Apache Pulsar, also under the Apache License 2.0, is the other named option and deserves the same protocol comparison before you choose.
If you add Confluent Schema Registry, REST Proxy, ksqlDB or certain connectors, treat each one as a separate license decision. Confluent's Community License FAQ states that these components fall under the Confluent Community License, which forbids offering them as a hosted service that competes with Confluent. Apache Kafka itself stays under Apache 2.0, so a deployment limited to the core brokers avoids that restriction. Running Kafka yourself also means owning what Event Hubs handles for you today: sizing brokers and controllers for partition counts and throughput, deploying KRaft, planning storage against retention, replacing Entra ID RBAC and shared access signatures with Kafka authentication and ACLs, setting TLS, monitoring, upgrades, backups, and a second cluster for disaster recovery built with MirrorMaker 2. Each item needs a named owner and an on-call runbook.
Costs divide into one-time setup and recurring spend. One-time work covers architecture and broker sizing, KRaft and TLS configuration, client cutover from Event Hubs, load testing, the MirrorMaker 2 disaster recovery build and the runbooks on-call engineers will use. Recurring costs include compute and disk for brokers and controllers, storage for retained data, cross-region network traffic, backup storage, monitoring, and staff time for on-call rotations and upgrades. The Apache Kafka community supports each release for about 12 months, so plan upgrade work on that cycle, and confirm current release lines on the Apache Kafka downloads page. Retention, replication factor and cluster count drive the largest recurring lines. Self-hosting does not automatically lower total cost, because service fees become infrastructure and staff lines. Ask any implementation partner for a quote that lists each component, its owner and the on-call coverage assumed.
What a move between Azure Event Hubs and Amazon MSK involves
The sequence moves producers, consumers, schemas and access from Event Hubs to an Amazon MSK cluster, with a rollback point at each stage. It produces a sized target, a topic map checked against the Kafka features you use, verified replication and a documented cutover. The work is complete when the old namespace can be decommissioned without losing data or access.
Inventory producers, consumers and protocols
Your platform team and each application owner list every producer and consumer on the Event Hubs namespace. For each one, record the protocol used (Kafka, AMQP 1.0 or HTTPS), the retention the consumer depends on, any Capture pipeline to Blob Storage or Data Lake Storage, the schemas registered for Avro or JSON, and the identity it uses (Entra ID RBAC, Shared Access Signature or managed identity). The step is done when every application owner signs off on their entries and no producer or consumer is missing from the list.
Choose the target and size it
Decide between provisioned MSK brokers, Express brokers, MSK Serverless or self-managed Kafka, based on who will operate the cluster and which Kafka features your applications need. Size from metrics measured on the current namespace over a representative period, including peak ingress, egress, partition counts and retention. Check the Kafka version against the Amazon MSK supported list: AWS recommends 3.9.x, lists 4.2 on Express brokers only, and lists end of support for 3.6.0 on June 1, 2026, so that version should be excluded. The step is done when a sizing sheet is approved in writing.
Map entities to topics and partitions
Map each Event Hubs namespace to a Kafka cluster and each event hub to a topic, carrying over the partition count and the partition key logic producers use to keep ordering. Compare the Kafka features your applications use, such as consumer groups, transactions, idempotent producers, compacted topics and ACLs, against the target and the Event Hubs Kafka endpoint, and confirm each one in writing. Update client settings for bootstrap servers, TLS and SASL authentication, then test them in staging with a copy of production traffic. The step is done when every topic has a mapping entry and every client passes the staging test.
Replicate or run producers in parallel
Choose how data reaches the target before any consumer moves. Use MirrorMaker 2 only where both ends are confirmed Kafka clusters. For a later move from MSK to self-managed Kafka, the MirrorMaker 2 path is documented and carries consumer group offsets along with topic data. For Event Hubs, confirm for each setup whether its Kafka endpoint works with MirrorMaker 2 before relying on it; if it does not, dual-produce from the application to both systems during the overlap. The step is done when message counts and consumer lag reconcile for every topic over a sustained period.
Cut over consumers, then producers
Move consumers first in a planned window so each one reads from the target starting at its recorded offset, then move producers once consumers are stable. Keep the old Event Hubs connection settings and client configuration in version control so a documented rollback can revert each application during the window. Record consumer offsets at the cutover point and check lag after each move. The step is done when the rollback has been tested in staging and every application has moved with no open lag or failed sends.
Rebuild capture, schemas, access and monitoring
Rebuild what Event Hubs handled for you: Capture to Blob Storage or Data Lake Storage becomes a Kafka Connect or MSK Connect sink you configure and monitor, and Event Hubs Schema Registry is replaced by a registry you choose after confirming its license, since some Confluent Schema Registry components fall under the Confluent Community License. Map Entra ID RBAC, Shared Access Signatures and managed identities to the MSK authentication and authorization options you select, and rebuild alerts and dashboards. The step is done when audit logs show each identity's access on the target and the old namespace is decommissioned after its retention window has passed with no consumers left.
Questions buyers ask about Azure Event Hubs vs Amazon MSK cost and migration
Does Azure Event Hubs or Amazon MSK cost less for Kafka workloads?
Neither service is cheaper in every case, because the answer depends on your throughput, retention period, unit or broker size, ingress volume and connectors. Event Hubs bills per hour by Throughput Unit on Basic and Standard, Processing Unit on Premium and Capacity Unit on Dedicated, and charges ingress events per million on Basic and Standard. MSK bills broker-hours for provisioned clusters, storage per GB-month, and MSK Connect per MCU-hour, with separate pricing for Express and Serverless clusters. Price both options from the same written workload profile, covering peak and average throughput, event size, retention, replication, partition count and connector use. Ask for storage, data transfer and replication lines too, since they can move the total more than the unit rate. Confirm current rates on the Amazon MSK pricing page and Azure's Event Hubs pricing page before you compare.
Does existing Kafka code run on Azure Event Hubs without changes?
Microsoft states that existing Kafka workloads can run on Event Hubs without code changes or cluster management. Event Hubs also supports AMQP 1.0 and HTTPS, which matters if some producers or consumers do not use Kafka. The part to confirm is the Kafka client features your applications use, such as transactions, compacted topics, consumer group behavior, Kafka Connect, Kafka Streams and admin APIs. Run each client against a test namespace and check what it produces, consumes and commits under production-like load. Also confirm how credentials are issued, since Event Hubs supports Microsoft Entra ID RBAC, Shared Access Signatures and managed identities. Ask Microsoft to confirm any feature you depend on before you design around it.
How hard is it to move from Amazon MSK to self-managed Kafka?
Both platforms run Apache Kafka, so the move is mostly about replication, configuration and cutover planning. Apache Kafka's MirrorMaker 2, built on Kafka Connect, replicates topic data and configurations, consumer groups with their offsets, and ACLs between clusters. Effort depends on how many clusters, topics, consumer groups and ACL rules you run, and how many applications must cut over together. Plan the cutover order by dependency, rehearse it in a non-production environment, and confirm the Kafka version on both sides. Also list any MSK features in use, such as Express brokers, Serverless or MSK Connect, because each needs its own replacement plan. Confirm the self-managed platform and its operating model before you set any timeline.
What does a Kafka migration require from our internal team?
The work needs a complete workload inventory, named owners for each topic, application and consumer group, and access to both clusters. It also needs agreed change windows and security sign-off before any production traffic moves. The inventory should cover producers and consumers, topic and partition counts, retention settings, peak and average throughput, schemas, connectors, and the ACLs and credentials each client uses. Owners should confirm dependencies and rollback steps, while the security team reviews network paths, encryption, identity and data location. DeployOpen plans and implements self-hosted Kafka platforms in your own infrastructure, and most engagements are fixed-scope, so these inputs are agreed in writing before work starts.
Can our team migrate Kafka workloads without outside help?
Yes, if your team already runs Kafka in production, has the on-call coverage to operate it, and can own the cutover. A team new to Kafka should expect more effort on broker operations, upgrades and monitoring, since those become your ongoing costs once you self-manage. Start testing with the features your applications depend on, including consumer offsets after cutover, ACL replication, producer and consumer settings, and failover and failback under load. Test the restore path too, because you will own retention, backup and recovery. Teams without that experience can bring in outside help under a fixed-scope plan, or a retainer for ongoing upgrades and continuous testing.
Do Azure Event Hubs or Amazon MSK contracts lock us in?
Commitment terms vary by contract and account, so ask for them in writing before you sign. On the Azure side, ask about minimum commitments, term length, early termination charges and what happens to stored events at exit. On the AWS side, ask the same questions about MSK commitments and any agreement that covers it. For exit, confirm that Event Hubs Capture to Azure Blob Storage or Azure Data Lake Storage would give you a copy of stream data in storage you control, and that MirrorMaker 2 can move topics, offsets and ACLs to another Kafka cluster. Ask for written exit clauses covering notice periods, export formats, data deletion timing and support during transition, then have legal and procurement review them.
How DeployOpen helps you choose and run the streaming platform
Azure Event Hubs and Amazon MSK are managed streaming services, and the right choice depends on where your data must live, which Kafka features your applications use, and how you want to pay for capacity. DeployOpen plans, implements, hardens, documents and supports self-hosted Apache Kafka inside your own cloud accounts, data centers or air-gapped networks, so your team can compare the options against written requirements. Scope, deliverables and timelines are agreed in writing before work starts.
How we scope
- Scope starts with an inventory of the Kafka clients, retention needs and authentication methods your applications use today.
- The written scope names where topics, consumer offsets and archived events must reside, including regions and accounts.
- Fixed-scope engagements list deliverables and timelines in writing, and a quote follows from that scope.
How we build
- We deploy self-hosted Apache Kafka in your own infrastructure, with brokers, storage and network paths you control.
- We map Event Hubs consumer groups, partitions and capture settings to Kafka Connect sinks, and test each mapping.
- Authentication, private networking and encryption keys are configured to match your identity provider and key management policy.
How we hand over
- Documented deliverables can include architecture notes, runbooks for broker and topic operations, and configuration files.
- Cutover is planned with you, including a rollback path, and each step is agreed in the written scope.
- Training on monitoring, consumer lag checks and topic administration can be added to the written scope.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Each Kafka release has limited community support, so upgrade planning belongs in the support schedule.
- Retests after changes confirm that access controls, encryption settings and network rules still match the written requirements.

