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

FirestoreからAlloyDBにサービス無停止で移行した話

 FirestoreからAlloyDBにサービス無停止で移行した話

Google Cloud主催のAlloyDB Case Study Meetupにて発表

More Decks by 株式会社ビットキー / Bitkey Inc.

Other Decks in Technology

Transcript

  1. © 2 0 23 Bitkey Inc. ന໦޹య 5BLBOPSJ4IJSBLJ 2 2018

    8 GCP Firebase Web Firestore AlloyDB
  2. © 2 0 23 Bitkey Inc. 0VUMJOF  Ҡߦͷഎܠ 

    "MMPZ%#Λ࠾༻ͨ͠ཧ༝  ͲͷΑ͏ʹҠߦ͔ͨ͠  ݁Ռ 3
  3. © 2 0 23 Bitkey Inc. 6 ➢ 
 ➢

    ➢ ࣄલʹݤΛ౉͢͜ͱ͕؆୯ʹͰ͖Ε͹ ͜ΕΒΛશͯղܾͰ͖Δɻ
  4. © 2 0 23 Bitkey Inc. AlloyDBΛ࠾༻ͨ͠ཧ༝ 1 1 AlloyDB

    β / Cloud SQL / Cloud Spanner ͜ͷ3ͭΛൺֱ
  5. © 2 0 23 Bitkey Inc. AlloyDBΛ࠾༻ͨ͠ཧ༝ 1 2 ➢

    Cloud SQL PostgreSQL ➢ ➢ ➢ GA Cloud SQL
  6. © 2 0 23 Bitkey Inc. AlloyDBΛ࠾༻ͨ͠ཧ༝ 1 3 ➢

    DB ➢ Cloud SQL ➢ ➢ ➢ Spanner Spannerͱൺ΂ͯ
  7. © 2 0 23 Bitkey Inc. 1 5 ίϨΫγϣϯ୯ҐͷҠߦܭըʹͨ͠ ܭըॳظ

    AlloyDB͕·ͩβͩͬͨͨΊ Firestore͔ΒCloud SQLʹҠߦ AlloyDBͷGAޙ Cloud SQL͸ ͢΂ͯAlloyDBʹҠߦ Ҏ߱… Firestore͔ΒAlloyDB΁ͷҠߦΛܧଓ 1 . Firestore 2 . 3 . 4 .
  8. © 2 0 23 Bitkey Inc. 1 6 Cloud SQL͔ΒAlloyDB

    ؆୯͔ͭɺ៉ྷʹ׬ྃʂ Database Migration Service DB AlloyDB
  9. © 2 0 23 Bitkey Inc. 1 8 ϦΞϧλΠϜಉظʹ͍ͭͯ Firestore

    AlloyDB ➢ ➢ ➢ ➢ 'JSFTUPSF͕มߋ͞ΕΔͱ"MMPZ%#ʹ ಉظ͞ΕΔΑ͏ʹɻ
  10. © 2 0 23 Bitkey Inc. 1 9 طଘσʔλͷϚΠάϨʔγϣϯʹ͍ͭͯ Firestore

    AlloyDB γϯϓϧ͕ͩྔ͕ଟ͍ͷͰɺ ్தͰதஅͯ͠΋࠶։Ͱ͖ΔΑ͏ʹɻ
  11. © 2 0 23 Bitkey Inc. 2 3 ೉͔ͬͨ͜͠ͱ ➢

    ➢ ➢ EFMFUFJOTFSU΍ͦΕΒ൑ఆͷͨΊͷࣄલTFMFDUͱ͍ͬͨແବ͸ڐ༰ ಉظΛܦ༝͠ͳ͘ͳΕ͹ૣ͘ͳΔͨΊɺҠߦظؒதݶఆͷ࿩ͱ͍͏ׂΓ੾Γ
  12. © 2 0 23 Bitkey Inc. 2 4 ➢ ➢

    ➢ ➢ ྑ͔ͬͨ͜ͱ