<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys" -->

---
title: Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach
description: Halodoc shares their end-to-end experience migrating Amazon MSK from ZooKeeper to KRaft (Kafka 4.0.x) with zero customer impact. Since AWS removed ZooKeeper...
canonical: https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach | daily.dev
og:description: Halodoc shares their end-to-end experience migrating Amazon MSK from ZooKeeper to KRaft (Kafka 4.0.x) with zero customer impact. Since AWS removed ZooKeeper...
og:url: https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys
og:image: https://api.daily.dev/og/posts/dZQ9BW0Ys.png
og:image:alt: Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach

**[Halodoc](https://daily.dev/sources/halodoc)** · 10 min read · 14 upvotes · 0 comments

## Summary

Halodoc shares their end-to-end experience migrating Amazon MSK from ZooKeeper to KRaft (Kafka 4.0.x) with zero customer impact. Since AWS removed ZooKeeper support from MSK 4.x onward, the team ran a POC validating performance parity and client compatibility (including a required confluent-kafka-go upgrade from v1.8.2 to v2.6.1 for Go services), then executed a canary deployment strategy — progressively shifting traffic from 20% to 100% on the new KRaft cluster. The post covers the full migration runbook: environment setup, Schema Registry migration, phased traffic cutover steps, monitoring across four dimensions, and three pre-defined rollback scenarios. Key learnings include treating Schema Registry migration as a first-class concern, auditing Kafka client library versions early, and building observability dashboards before migration day.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blogs.halodoc.io/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach>

## Similar posts on daily.dev

- [How Reddit Migrated Petabyte-Scale Kafka from EC2 to Kubernetes](https://daily.dev/posts/how-reddit-migrated-petabyte-scale-kafka-from-ec2-to-kubernetes-wizskjogz) · ByteByteGo · 10 upvotes · 0 comments
- [Migrate From Hosted Kafka to Confluent Cloud in the KRaft Era](https://daily.dev/posts/migrate-from-hosted-kafka-to-confluent-cloud-in-the-kraft-era-fovqvobt4) · Confluent Blog · 0 upvotes · 0 comments
- [Migrate to Amazon Keyspaces with zero downtime using ZDM Proxy](https://daily.dev/posts/migrate-to-amazon-keyspaces-with-zero-downtime-using-zdm-proxy-gjsyzdxcw) · AWS Database Blog · 0 upvotes · 0 comments
- [Scaling StreamHub: Transitioning from Kinesis to Kafka for 145 Billion Daily Events](https://daily.dev/posts/scaling-streamhub-transitioning-from-kinesis-to-kafka-for-145-billion-daily-events-mjsieq3rp) · Atlassian · 1 upvotes · 0 comments
- [Zero-Downtime Cassandra Migration Between EKS Clusters](https://daily.dev/posts/zero-downtime-cassandra-migration-between-eks-clusters-vbhsjlmha) · monday Engineering · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#infrastructure](https://daily.dev/tags/infrastructure), [#apache-kafka](https://daily.dev/tags/apache-kafka)

[View this post on daily.dev](https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach","url":"https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys"},"datePublished":"2026-04-27T04:57:52.951Z","dateModified":"2026-04-27T04:58:26.567Z","description":"Halodoc shares their end-to-end experience migrating Amazon MSK from ZooKeeper to KRaft (Kafka 4.0.x) with zero customer impact. Since AWS removed ZooKeeper...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4875b52914ce71fcff14ffe731feea8b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4875b52914ce71fcff14ffe731feea8b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Halodoc","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Halodoc","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/b3d554a1a7b44df48789c7ca6e50c4c2","url":"https://daily.dev/sources/halodoc"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/migrating-aws-msk-from-zookeeper-to-kraft-a-canary-approach-dzq9bw0ys","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"aws,infrastructure,apache-kafka","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Halodoc","item":"https://daily.dev/sources/halodoc"},{"@type":"ListItem","position":3,"name":"Migrating AWS MSK from ZooKeeper to KRaft: A Canary Approach"}]}
```

