~/talk

Database migration: Insights on Dual Read Write Strategy

Talkat Distributed SQL Summit Asia 2024 · on Wednesday, 2024-04-24· [databases]
links:none on file
links:none on file
slides:none on file

Migrating from MongoDB to YugabyteDB uses a dual read-write pattern with phased rollout: asynchronous dual writes, backfill of ~2 TB, then switch reads to YugabyteDB, then flip primary. Production recreates failures on a staging cluster by replaying Kafka to spawn parallel writers, revealing ~700 Postgres connections, load spikes and OOM killing tablet servers, so a server-side connection pooler (ODC collocated with nodes) is added and writes become synchronous for correctness. Final approach becomes a trickle migration with iterative milestones enforcing zero mismatches before cutover.

AI-written summary · about

  1. 0:00Database migration journey
  2. 1:54Migration strategy
  3. 4:03Dual read-write framework
  4. 6:11Migration phases
  5. 9:22Production challenges
  6. 12:31Unmanaged connections
  7. 15:23Yugabyte staging cluster
  8. 16:26Data mismatch issues
  9. 17:34Trickle-down migration
  10. 18:43Dual read-write use cases
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.