snaq.me / Startup Architecture of the year 2019

snaq.me / Startup Architecture of the year 2019

2019.06.13
Startup Architecture of the year 2019 ピッチコンテスト F2-08
https://aws.amazon.com/jp/summits/tokyo-2019/aws-expo/
登壇資料

株式会社スナックミー
[スナックミー]
https://snaq.me

Twitter: https://twitter.com/miyoshihayato

Fed9e45a0fa859739e9d862a35b0a4a6?s=128

hayato miyoshi

June 13, 2019
Tweet

Transcript

  1. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T AWS Step Functions ʹΑΔ͓͔͠ͷ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹΞαΠϯγεςϜ גࣜձࣾεφοΫϛʔ ࡾ޷ ൏ਓ CTO & co-founder
  2. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. snaq.me(εφοΫϛʔ) ʹ͍ͭͯ 1,980ԁ (੫ࠐ) 100छҎ্͔Β8छͷ͓΍ͭΛҰਓͻͱΓʹηϨΫτ͓ͯ͠ಧ͚ Real Food͔Β࡞ͬͨɺඒຯͯ͘͠Χϥμʹ༏͍͓͠΍ͭΛ͓ҰਓͻͱΓʹ ΧελϚΠζ͓ͯ͠ಧ͚͢ΔαϒεΫϦϓγϣϯαʔϏε
  3. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. snaq.me(εφοΫϛʔ) ʹ͍ͭͯ ੡଄ࢦࣔॻ ࡞੒ ੡଄ ࡏݿొ࿥ ΞαΠϯ ϐοΩϯά ൃૹ ੡଄͔Βൃૹ४උ·ͰҰ؏
  4. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. snaq.me(εφοΫϛʔ) ʹ͍ͭͯ ෼ੳ TOBDLCPY ͓΍ͭͷධՁ/ ϦΫΤετ ৽঎඼։ൃ ͓΍ͭͷA/Bςετ ͓ಧ͚͢Δ͓΍ͭΛܾఆ
  5. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T αϒεΫϦϓγϣϯͰେࣄͳKPIͱ͸ʁ
  6. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. αϒεΫϦϓγϣϯͰେࣄͳKPIͱ͸ʁ νϟʔϯϨʔτ(ղ໿཰)ͷԼ͛Δ͜ͱ
  7. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. νϟʔϯϨʔτ(ղ໿཰)ͷԼ͛Δʹ͸ • MAUͷ޲্ (ຬ଍౓ͷ޲্) • ϦΫΤετΛͯ͠΋Β͏ (৯΂ͯΈ͍ͨ঎඼) • ධՁΛͯ͠΋Β͏ (ύʔιφϥΠζͷ޲্) • ޷͖ͳ঎඼͕ಧ͘ (ຬ଍౓ͷ޲্) • ৽঎඼ / قઅͷ঎඼ ͷ਺ (৽͍͠ൃݟ ϫΫϫΫ) ͳͲͳͲ
  8. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. νϟʔϯϨʔτ(ղ໿཰)ͷԼ͛Δʹ͸ σʔλ෼ੳͷ݁Ռ ϦΫΤετͯ͠΋Β͏ => ղ໿͞ΕͣΒ͍ (ຬ଍͍ͯ͠Δ) ϦΫΤετ͢Δ ϦΫΤετͨ͠ ঎඼͕ಧ͘ ຬ଍͢Δ ϩάΠϯ ϦΫΤετ཰ & MAUͷ޲্͕Ϗδωε՝୊ ※ ϦΫΤετͨ͠঎඼ͷࡏݿঢ়گ࣍ୈͱͳΔͨΊɺඞͣ͠΋࣍ճ͓ಧ͚Ͱ͖Δͱ͓໿ଋͰ͖·ͤΜ
  9. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T ෼ੳ TOBDLCPY ͓΍ͭͷධՁ/ ϦΫΤετ ৽঎඼։ൃ ͓΍ͭͷA/Bςετ ͓ಧ͚͢Δ͓΍ͭΛܾఆ 1. ϦΫΤετͨ͠঎඼ʹԠ͑Δʹ͸
  10. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 1. ϦΫΤετͨ͠঎඼ʹԠ͑Δʹ͸ ෼ੳ TOBDLCPY ͓΍ͭͷධՁ ϦΫΤετ ৽঎඼։ൃ ͓΍ͭͷ ͓ಧ͚͢Δ͓΍ͭΛܾఆ
  11. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T ͓ಧ͚͢Δ͓΍ͭΛܾఆ 1. ϦΫΤετͨ͠঎඼ʹԠ͑Δʹ͸ ΞαΠϯγεςϜͷڧԽ & ޮ཰Խ
  12. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 2. ΞαΠϯγεςϜ Amazon CloudWatch Events AWS Lambda AWS Batch ෳ਺JobΛࢦఆՄೳ 15෼Ҏ಺Ͱ׬ྃ ௨஌ Amazon S3 AWS Lambda AWS Step Functions AWS Step Functions
  13. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T AWS Step Functions ͷ׆༻
  14. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 3. Step FunctionsΛ༻͍ͨཧ༝ ΞαΠϯύλʔϯͷෳࡶԽ • ϢʔβʔΛΫϥελϦϯάͤͨ͞ΞαΠϯํ๏ • Ϊϑτ༻΍ཌӦۀ೔഑ૹͳͲఆظҎ֎ͷ഑ૹύλʔϯͷ૿Ճ • ༵೔ͰҟͳΔΞαΠϯํ๏ • AWS Batch ͷjob͕ෳ਺ଘࡏ • Lambda ͷ࠷େ࣮ߦ͕࣌ؒ15෼ʹͳΓɺLambdaͷ࠾༻͢Δέʔεͷଘࡏ ͳͲͳͲ
  15. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T ࡢ೥(2018೥)ͷre:InventͰAWS Step FunctionsͱAWS Batch + 7ͭͷϚωʔδυαʔϏεͱ࿈ܞՄೳ 3. Step FunctionsΛ༻͍ͨཧ༝
  16. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T Notify Start End Submit 1st Job 3. ࿈ܞલͷϫʔΫϑϩʔ 2ͭͷAWS BatchΛ༻͍ͨ৔߹ Wait 60 Seconds Get 1st Job Status 1st Job Complete? Get 1st First Job Status 1st Job Failed Notify Submit 2nd Job Wait 60 Seconds Get 2nd Job Status 2nd Job Complete? Get 2nd First Job Status 2nd Job Failed AWS BatchΛ༻͍ͯ ΞαΠϯ AWS Lambda Λ༻͍ͯ ΞαΠϯύλʔϯ։࢝௨஌
  17. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 3. ࿈ܞޙͷϫʔΫϑϩʔ 2ͭͷAWS BatchΛ༻͍ͨ৔߹ Notify Start End Submit 1st Job Notify Submit 2nd Job AWS Lambda Λ༻͍ͯ ΞαΠϯύλʔϯ։࢝௨஌ AWS BatchΛ༻͍ͯ ΞαΠϯ
  18. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 3. ࿈ܞޙͷϫʔΫϑϩʔ 2ͭͷAWS BatchΛ༻͍ͨ৔߹ Notify Start End Submit 1st Job Notify Submit 2nd Job AWS Lambda Λ༻͍ͯ ΞαΠϯύλʔϯ։࢝௨஌ AWS BatchΛ༻͍ͯ ΞαΠϯ ؆ܿʹ·ͱΊΔ͜ͱ͕Մೳ
  19. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 3. ࿈ܞޙͷϫʔΫϑϩʔ 2ͭͷAWS BatchΛ༻͍ͨ৔߹ Notify Start End Submit 1st Job Notify Submit 2nd Job ༷ʑͳΞϧΰϦζϜΛjob͝ͱʹ ૊ΈࠐΉ͜ͱՄೳʹͳΓ ࢼ༻ͷ༰қ Ұ෦Λ AWS Batch ͔Β AWS Lambda ʹมߋ͢Δ͜ͱ΋༰қ
  20. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 4. Well Architected ͳ 5 ͭͷϙΠϯτ • ίετͷ࠷దԽɿ AWS Batch / AWS LambdaͰ࣮ߦ࣌ؒʹΑΔ࢖͍෼͚ • ӡ༻্ͷ༏लੑɿAWS Step Functionsʹ·ͱΊΔ͜ͱͰҰݩ؅ཧ • ηΩϡϦςΟɿAWS Step Functions IAM / GuardDutyʹΑΔɺAWSͷଞͷ αʔϏεͱϦιʔε΁ͷΞΫηεΛ੍ޚ / ෆਖ਼τϥϑΟοΫͷϞχλϦϯά • ৴པੑɿjobؒΛૄ݁߹ʹ͠ɺো֐ΛۃখԽ • ύϑΥʔϚϯεͷޮ཰ɿAmazon CloudWatch ͰϫʔΫϑϩʔͷϞχλϦϯ ά
  21. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T ΞαΠϯγεςϜ Amazon CloudWatch Events AWS Lambda AWS Batch ෳ਺JobΛࢦఆՄೳ 15෼Ҏ಺Ͱ׬ྃ ௨஌ Amazon S3 AWS Lambda AWS Step Functions AWS Step Functions AWS Lambda
  22. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T 5. ΞʔΩςΫνϟʹΑΔϏδωε΁ͷߩݙ • ΞαΠϯۀ຿ͷखಈ࣌ؒΛ5࣌ؒ/ि ͷ࡟ݮ • νϟʔϯϨʔτ(ղ໿཰) ࠷େ஋͔Β4%ݮ • MAU/ϦΫΤετ཰ ࡢ೥͔Β 10% ޲্ • ৽͍͠ΞϧΰϦζϜΛࢼ༻͕༰қ(ϫʔΫϑϩʔʹ૊ΈࠐΈ΍͍͢)
  23. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T AWS Step Functions ͰշదͳϫʔΫϥΠϑΛ
  24. © 2019, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. S U M M I T খෲ͚ͩ͡Όͳ͘ίίϩ΋ຬͨ͢ؤுΔࢲʹ͝๙ඒ͓΍ͭ Real Food͔Β࡞ͬͨɺඒຯͯ͘͠Χϥμʹ༏͍͓͠΍ͭΛ͓ҰਓͻͱΓʹΧελϚΠζ͓ͯ͠ಧ͚ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ͝ڵຯ͋Δํ͸ snaq.me (εφοΫϛʔ) ΁