Slide 32
Slide 32 text
@aviranm
Point of
No Return
Warning!
Distributed
Transaction
Fail on write to
old, “ignore"
failure on new
#1
Backward
compatibility
is a must!
Your old DB is
now read-only
and will not
change.
#2
Write to both (first old then
new) / Read from old
#3
Write to both / Read from
New, fallback to old
#6
Write and Read to new -
Remove migration code
#5
Eagerly migrate data in the
background
#4
Write only to New / Read
from new, fallback to old
Write to old / Read from
old
http://www.aviransplace.com/2015/12/15/safe-database-migration-pattern-without-downtime/