snaq.me / Startup Architecture of the year 2019
by
hayato miyoshi
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Step Functions ʹΑΔ͓͔͠ͷ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹΞαΠϯγεςϜ גࣜձࣾεφοΫϛʔ ࡾ ൏ਓ CTO & co-founder
Slide 2
Slide 2 text
© 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͔Β࡞ͬͨɺඒຯͯ͘͠Χϥμʹ༏͍͓ͭ͠Λ͓ҰਓͻͱΓʹ ΧελϚΠζ͓ͯ͠ಧ͚͢ΔαϒεΫϦϓγϣϯαʔϏε
Slide 3
Slide 3 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. snaq.me(εφοΫϛʔ) ʹ͍ͭͯ ࢦࣔॻ ࡞ ࡏݿొ ΞαΠϯ ϐοΩϯά ൃૹ ͔Βൃૹ४උ·ͰҰ؏
Slide 4
Slide 4 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. snaq.me(εφοΫϛʔ) ʹ͍ͭͯ ੳ TOBDLCPY ͓ͭͷධՁ/ ϦΫΤετ ৽։ൃ ͓ͭͷA/Bςετ ͓ಧ͚͢Δ͓ͭΛܾఆ
Slide 5
Slide 5 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T αϒεΫϦϓγϣϯͰେࣄͳKPIͱʁ
Slide 6
Slide 6 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. αϒεΫϦϓγϣϯͰେࣄͳKPIͱʁ νϟʔϯϨʔτ(ղ)ͷԼ͛Δ͜ͱ
Slide 7
Slide 7 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. νϟʔϯϨʔτ(ղ)ͷԼ͛Δʹ • MAUͷ্ (ຬͷ্) • ϦΫΤετΛͯ͠Β͏ (৯ͯΈ͍ͨ) • ධՁΛͯ͠Β͏ (ύʔιφϥΠζͷ্) • ͖ͳ͕ಧ͘ (ຬͷ্) • ৽ / قઅͷ ͷ (৽͍͠ൃݟ ϫΫϫΫ) ͳͲͳͲ
Slide 8
Slide 8 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. νϟʔϯϨʔτ(ղ)ͷԼ͛Δʹ σʔλੳͷ݁Ռ ϦΫΤετͯ͠Β͏ => ղ͞ΕͣΒ͍ (ຬ͍ͯ͠Δ) ϦΫΤετ͢Δ ϦΫΤετͨ͠ ͕ಧ͘ ຬ͢Δ ϩάΠϯ ϦΫΤετ & MAUͷ্͕Ϗδωε՝ ※ ϦΫΤετͨ͠ͷࡏݿঢ়گ࣍ୈͱͳΔͨΊɺඞͣ࣍͠ճ͓ಧ͚Ͱ͖Δͱ͓ଋͰ͖·ͤΜ
Slide 9
Slide 9 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T ੳ TOBDLCPY ͓ͭͷධՁ/ ϦΫΤετ ৽։ൃ ͓ͭͷA/Bςετ ͓ಧ͚͢Δ͓ͭΛܾఆ 1. ϦΫΤετͨ͠ʹԠ͑Δʹ
Slide 10
Slide 10 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 1. ϦΫΤετͨ͠ʹԠ͑Δʹ ੳ TOBDLCPY ͓ͭͷධՁ ϦΫΤετ ৽։ൃ ͓ͭͷ ͓ಧ͚͢Δ͓ͭΛܾఆ
Slide 11
Slide 11 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T ͓ಧ͚͢Δ͓ͭΛܾఆ 1. ϦΫΤετͨ͠ʹԠ͑Δʹ ΞαΠϯγεςϜͷڧԽ & ޮԽ
Slide 12
Slide 12 text
© 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
Slide 13
Slide 13 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Step Functions ͷ׆༻
Slide 14
Slide 14 text
© 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ͷ࠾༻͢Δέʔεͷଘࡏ ͳͲͳͲ
Slide 15
Slide 15 text
© 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Λ༻͍ͨཧ༝
Slide 16
Slide 16 text
© 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 Λ༻͍ͯ ΞαΠϯύλʔϯ։࢝௨
Slide 17
Slide 17 text
© 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Λ༻͍ͯ ΞαΠϯ
Slide 18
Slide 18 text
© 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Λ༻͍ͯ ΞαΠϯ ؆ܿʹ·ͱΊΔ͜ͱ͕Մೳ
Slide 19
Slide 19 text
© 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 ʹมߋ͢Δ͜ͱ༰қ
Slide 20
Slide 20 text
© 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 ͰϫʔΫϑϩʔͷϞχλϦϯ ά
Slide 21
Slide 21 text
© 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
Slide 22
Slide 22 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T 5. ΞʔΩςΫνϟʹΑΔϏδωεͷߩݙ • ΞαΠϯۀͷखಈ࣌ؒΛ5࣌ؒ/ि ͷݮ • νϟʔϯϨʔτ(ղ) ࠷େ͔Β4%ݮ • MAU/ϦΫΤετ ࡢ͔Β 10% ্ • ৽͍͠ΞϧΰϦζϜΛࢼ༻͕༰қ(ϫʔΫϑϩʔʹΈࠐΈ͍͢)
Slide 23
Slide 23 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Step Functions ͰշదͳϫʔΫϥΠϑΛ
Slide 24
Slide 24 text
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T খෲ͚ͩ͡Όͳ͘ίίϩຬͨ͢ؤுΔࢲʹ͝๙ඒ͓ͭ Real Food͔Β࡞ͬͨɺඒຯͯ͘͠Χϥμʹ༏͍͓ͭ͠Λ͓ҰਓͻͱΓʹΧελϚΠζ͓ͯ͠ಧ͚ ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ͝ڵຯ͋Δํ snaq.me (εφοΫϛʔ)