Upgrade to Pro — share decks privately, control downloads, hide ads and more …

10年続くサービスのデータを1日未満のメンテナンスウィンドウで安全に移管する

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for masawada masawada
October 15, 2024
2.5k

 10年続くサービスのデータを1日未満のメンテナンスウィンドウで安全に移管する

Avatar for masawada

masawada

October 15, 2024
Tweet

Transcript

  1. 2

  2. 分割移行 • Step Functions + AWS Batchを採用 ◦ 「魔法のiらんど」のデータ移行でも実績がある ◦

    詳しくは: Hatena Engineer Seminar #14* • Step Functionsで依存関係を管理しつつ実行 * https://speakerdeck.com/tkzwtks/hatena-engineer-seminer-number-14-data-migration 25
  3. 分割移行 26 { “since”: “2014-01-01T00:00:00+09:00”, “until”: “2024-01-01T00:00:00+09:00” } 引数(時刻範囲) 移行システム

    旧システムDB 新システムDB 変換して挿入・更新 時刻範囲のデータを取得