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

[LINE API × Tech API Vol. 2 Powered by AWS] サーバーレスでの分散トランザクション

Taewoo Kim
February 06, 2020

[LINE API × Tech API Vol. 2 Powered by AWS] サーバーレスでの分散トランザクション

「LINE API × Tech API Vol. 2 Powered by AWS」というイベントでLT登壇した発表資料です。サーバーレスでの分散トランザクション構築パターンについて説明しました。AWS Step Functions 使いましょう!

Taewoo Kim

February 06, 2020
Tweet

More Decks by Taewoo Kim

Other Decks in Programming

Transcript

  1. LINE API × Tech API Vol. 2 Powered by AWS
    Ϋϥεϝιουגࣜձࣾ

    ۚ ହӍ (ΩϜς΢ʣ
    αʔόʔϨεͰͷ
    ෼ࢄτϥϯβΫγϣϯ

    View full-size slide

  2. ࣗݾ঺հ
    • Taewoo KimʢΩϜ ς΢ʣɺؖࠃਓͰ͢

    • Ϋϥεϝιουגࣜձࣾ ίϯαϧςΟϯά෦

    • αʔόʔϨεɺML / DLɺΧΦεΤϯδχΞϦϯά

    • ΞϓϦ։ൃɺ΢Σϒ։ൃɺػցֶश։ൃ౳ͷόοΫάϥ΢ϯυ

    •AWSେ޷͖Ͱ͢ὑ
    2

    View full-size slide

  3. τϥϯβΫγϣϯʁ
    ෼ࢄτϥϯβΫγϣϯʁ

    View full-size slide

  4. ஫จαʔϏε
    • యܕతͳ஫จαʔϏεͷྲྀΕ

    • ঎඼ࡏݿͷ֬ೝ

    • ܾࡁՄೳ͔ͷ֬ೝ

    • ܾࡁॲཧ

    • ஫จϨίʔυͷه࿥

    View full-size slide

  5. ஫จαʔϏε
    • యܕతͳ஫จαʔϏεͷྲྀΕ

    • ঎඼ࡏݿͷ֬ೝ

    • ܾࡁՄೳ͔ͷ֬ೝ

    • ܾࡁॲཧ

    • ஫จϨίʔυͷه࿥
    ࣦഊͨ͠Βʁ

    View full-size slide

  6. ஫จαʔϏε
    • యܕతͳ஫จαʔϏεͷྲྀΕ

    • ঎඼ࡏݿͷ֬ೝ

    • ܾࡁՄೳ͔ͷ֬ೝ

    • ܾࡁॲཧ

    • ஫จϨίʔυͷه࿥
    ࣦഊͨ͠Βʁ

    View full-size slide

  7. ஫จαʔϏε
    • యܕతͳ஫จαʔϏεͷྲྀΕ

    • ঎඼ࡏݿͷ֬ೝ

    • ܾࡁՄೳ͔ͷ֬ೝ

    • ܾࡁॲཧ

    • ஫จϨίʔυͷه࿥
    ࣦഊͨ͠Βʁ

    View full-size slide

  8. ஫จαʔϏε
    • యܕతͳ஫จαʔϏεͷྲྀΕ

    • ঎඼ࡏݿͷ֬ೝ

    • ܾࡁՄೳ͔ͷ֬ೝ

    • ܾࡁॲཧ

    • ஫จϨίʔυͷه࿥ ࣦഊͨ͠Βʁ

    View full-size slide

  9. ͲͪΒͰ΋શ͕ͯݩʹ
    ໭Βͳ͚Ε͹ͳΒͳ͍

    View full-size slide

  10. τϥϯβΫγϣϯ
    શ͕ͯ੒ޭ͢Δ͔શ͕ࣦͯഊ͢Δ͔
    ͜ΕҎ֎͸ڐ͞Εͳ͍

    View full-size slide

  11. ෼ࢄτϥϯβΫγϣϯʁ

    View full-size slide

  12. ϞϊϦγοΫ

    View full-size slide

  13. ঎඼αʔϏε ܾࡁαʔϏε
    ஫จαʔϏε

    View full-size slide

  14. ϚΠΫϩαʔϏε

    View full-size slide

  15. ঎඼αʔϏε ஫จαʔϏε ܾࡁαʔϏε

    View full-size slide

  16. ঎඼αʔϏε ஫จαʔϏε ܾࡁαʔϏε
    σʔλιʔε͕෼ࢄ͞Ε͍ͯͯ
    σʔλͷಉظԽɾ؅ཧ͕೉͍͠

    View full-size slide

  17. Distributed Sagas

    View full-size slide

  18. https://www.youtube.com/watch?v=0UTOLRTwOX0

    View full-size slide

  19. AWS Step Functions

    View full-size slide

  20. Implementing Microservices on AWS
    https://docs.aws.amazon.com/whitepapers/latest/microservices-on-aws/distributed-data-
    management.html

    View full-size slide

  21. Serverless Sagas

    View full-size slide

  22. Serverless Sagas

    View full-size slide

  23. ·ͱΊ
    • AWS Step Functions͸ଞͷαʔϏεͷΦʔέετϨʔγϣϯ
    ͷͨΊͷαʔϏεͬͯྑ͘஌ΒΕ͍ͯΔ

    • ෼ࢄτϥϯβΫγϣϯͷͨΊʹ΋͘͢͝ྑ͍αʔϏε

    View full-size slide