---
title: "How We Built a Zero-Downtime Database Migration Service at Wix"
url: https://daily.dev/posts/how-we-built-a-zero-downtime-database-migration-service-at-wix-kjqj5ouwe
source_url: https://www.wix.engineering/post/how-we-built-a-zero-downtime-database-migration-service-at-wix
type: article
source: "Wix Engineering"
published: 2026-05-14T07:26:25.000Z
updated: 2026-05-14T07:26:47.139Z
tags: ["database", "mysql", "apache-kafka", "debezium", "change-data-capture"]
reading_time: 9
upvotes: 19
comments: 0
language: 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.

# How We Built a Zero-Downtime Database Migration Service at Wix

**[Wix Engineering](https://daily.dev/sources/wix_eng)** · 9 min read · 19 upvotes · 0 comments

## Summary

Wix Engineering describes how they built DB Mover, an internal Python microservice for zero-downtime database migrations between MySQL clusters at scale. The system uses Debezium for CDC streaming, Amazon MSK (Kafka) for event transport with Avro serialization, and a staged cutover process (read-only first, then writes) to eliminate downtime. Key design decisions include always reading from replica nodes, fixing Kafka partition counts before migration starts, using Avro over JSON for binary efficiency, and keeping the entire process transparent to application teams with no code changes required. The post also covers why alternatives like MySQL Dump, Amazon DMS, and multi-source replication were rejected, and outlines future improvements including multi-region MSK and parallel Debezium snapshots.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.wix.engineering/post/how-we-built-a-zero-downtime-database-migration-service-at-wix>

## Similar posts on daily.dev

- [Building Kafka-Less Data Integration Pipelines with Debezium](https://daily.dev/posts/building-kafka-less-data-integration-pipelines-with-debezium-5yi0fimdi) · Debezium · 1 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#mysql](https://daily.dev/tags/mysql), [#apache-kafka](https://daily.dev/tags/apache-kafka), [#debezium](https://daily.dev/tags/debezium), [#change-data-capture](https://daily.dev/tags/change-data-capture)

[View this post on daily.dev](https://daily.dev/posts/how-we-built-a-zero-downtime-database-migration-service-at-wix-kjqj5ouwe)
