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

事例から見るサーバーレスの効果 / Serverless Effectiveness as S...

事例から見るサーバーレスの効果 / Serverless Effectiveness as Seen in Case Studies

Serverless Meetup Osaka #01:begin
https://serverless.connpass.com/event/313724/

shiro seike

May 25, 2024
Tweet

More Decks by shiro seike

Other Decks in Programming

Transcript

  1. ©Fusic Co., Ltd. 2 ਗ਼Ո ࢙࿠ @seike460 AWS Community Builder

    Serverless Serverless Meetup Fukuoka ίϛϡχςΟ Fukuoka.php Fukuoka.go JAWS-UG Fukuoka Cloudflare Meetup Fukuoka JP_Stripes Fukuoka ࣗݾ঺հ ͸͡Ίʹ גࣜձࣾFusic ϓϦϯγύϧΤϯδχΞ/ΤόϯδΣϦετ
  2. ©Fusic Co., Ltd. 3 CONTENTS ໨࣍ 1. αʔόʔϨεΒ͠͞ΛৼΓฦΔ 2. ࣄྫ1ɿΞΫηεͷ෼அ

    3. ࣄྫ2ɿ໾ׂΛ෼͚ͨαΠτ 4. ࣄྫ3ɿSaaSͱͷ࿈ܞ 5. ࣄྫ͔ΒৼΓฦΔαʔόʔϨε 6. ·ͱΊ
  3. ©Fusic Co., Ltd. 5 αʔόʔϨεͱ͸ͳΜͳͷ͔ 言 Cloud Native Computing Foundation

    CNCF Serverless Whitepaper v 1 . 0 行 https://github.com/cncf/wg-serverless/tree/master/whitepapers/serverless-overview
  4. ©Fusic Co., Ltd. 8 αʔόʔϨεΒ͠͞ͷਖ਼ମʁ αʔόʔϨεΩϟογϡͰ༗໊ͳmomentoʹΑΔදݱ 1. ϓϩϏδϣϯෆཁɺ؅ཧෆཁ 2. ࠷௿ྉۚͷͳ͍࢖ͬͨ෼͚ͩͷࢧ෷͍

    3. 1 ͭͷ API ݺͼग़͠Ͱར༻Մೳ 4. ܭըఀࢭ͕ͳ͍ 5. Πϯελϯε͕ແ͍ αʔόʔϨεͷಛ௃ଊ͓͑ͯΓڌΓॴʹͯ͠΋ྑ͍ͱࢥ͏͕ ݸਓతͳҙࣝͱͯ͠͸ʮ౴͑ͩͱߟ͑Δඞཁ͸ͳ͍ʯ αʔόʔϨεΒ͍͠αʔϏε΋Ξοϓσʔτ͞Ε͍ͯ͘͠ɺ ৽͍֓͠೦ͷ௥ՃʹΑΓαʔόϨεΒ͠͞͸มΘ͍ͬͯ͘
  5. ©Fusic Co., Ltd. 17 αʔόʔϨεαΠτͱͯ͠ͷ໾ׂ AWS Amplify 用 GraphQL 用

    大 Amazon S 3 AWS Elemental MediaConvert 用 Web 行
  6. ©Fusic Co., Ltd. 18 ղੳج൫ͱͯ͠ͷ໾ׂ AWS Batch 行 大 工

    行 Amazon ECR AWS Batch AWS Step Functions
  7. ©Fusic Co., Ltd. 19 αʔόʔϨεͳϫʔΫϑϩʔ AWS Lambda AWS Step Functions

    AWS Batch 用 Web 用 示 JSON 用 一 AWS Step Functions
  8. ©Fusic Co., Ltd. 30 νʔϜʹద༻͢Δॏཁੑ ͦͷޙ΋αʔόʔϨεΒ͠͞Λҙࣝͯ͠ ༷ʑͳҊ݅ʹऔΓ૊ΜͰ͍·͢ ࠓճ͸ল͖·͕͢ɺBrefͱ͍͏OSSΛར༻ͯ͠ PHP ͷ

    Laravel ͱ͍͏Web FrameworkΛऔΓೖΕ PHPνʔϜʹαʔόʔϨεΛద༻͢Δ׆ಈ΋͍ͯ͠·͢ αʔόʔϨεͷ੍໿ͱ޲͖߹͍ͳ͕Βɺ ͋ΔҙຯҰ෦ϞϊϦεԽͨ͠LambdaΛऔΓೖΕΔ ΞʔΩςΫνϟ΋࣮ફ ͍͖ͳΓαʔόʔϨεͰϚΠΫϩαʔϏεͰͳͯ͘΋ྑ͍
  9. ©Fusic Co., Ltd. 31 Monolith First Serverless Development ࢀߟURL :

    https://speakerdeck.com/_kensh/monolith-first-serverless-development?slide=55 @_kensh ʮMonolith First Serverless Developmentʯ
  10. ©Fusic Co., Ltd. 32 αʔυύʔςΟΛར༻͢Δ͜ͱͰSQL΋ࣗવʹར༻Մೳ - Supabase - Supabase͸ΦʔϓϯιʔεͷFirebase୅ସͱͯ͠ઃܭ͞Εͨ BaaSϓϥοτϑΥʔϜ

    PostgreSQLΛج൫ͱͨ͠ߴੑೳͳϦϨʔγϣφϧσʔλϕʔεΛఏڙ - TiDB Serverless - TiDB Serverless͸PingCAPʹΑͬͯ։ൃ͞Εͨ Φʔϓϯιʔεͷ෼ࢄܕSQLσʔλϕʔεͰ͋ΔTiDBͷServerlessόʔδϣϯ MySQLͱޓ׵ੑͷ͋ΔϦϨʔγϣφϧσʔλϕʔεΛఏڙ
  11. ©Fusic Co., Ltd. 33 Ϋϥ΢υωΠςΟϒͳࠓɺαʔόʔϨε͸౰ͨΓલʹͦ͜ʹ • ໾ׂͷ෼୲ΛΧδϡΞϧʹߦ͏͜ͱ͕ग़དྷΔ • ໾ׂΛ෼୲ͤ͞Δࣄ͕ग़དྷΔͷͰʮ໨తʹண໨͕ग़དྷΔʯ •

    ໨తʹ߹Θͤͨద੾ͳߏ੒ΛఏڙՄೳͳ࣌୅ʹ αʔόʔϨεͰ͋Δ͜ͱ͕ॏཁͰ͸ͳͯ͘ ໨తʹॊೈʹɺద੾ʹϦιʔεΛ഑ஔग़དྷΔ͜ͱ͕αʔόʔϨεͷྑ͞
  12. ©Fusic Co., Ltd. 35 ·ͱΊ αʔόʔϨε͸αʔό؅ཧΛඞཁͱ͠ͳ͍ΞϓϦέʔγϣϯͷߏஙͱ࣮ߦͷʮ֓೦ʯ Point 01 ໾ׂΛ෼அͤ͞Δࣄ͕ग़དྷΔͨΊɺඞཁͳڧ౓Λεέʔϥϒϧʹఏڙ͢Δ͜ͱ΋ग़དྷΔ Point

    02 ໾ׂΛ෼அͤ͞Δࣄ͕ग़དྷΔͨΊɺʮ໨తʹ·͙ͬ͢ʯΞʔΩςΫνϟΛ૊Ή͜ͱ͕ग़དྷΔ Point 03 αʔόʔϨεʹ͢Δࣄ͕໨తͰ͸ͳ͍ɺ໨తʹண໨͢ΔͨΊʹʮαʔόʔϨεΒ͠͞ʯͷಋೖΛ Point 04