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

TANPのインフラ構成の変化の話 / History Of TANP Infrastructure

5c3556b7c8c0ab6bc90a62161a8315f8?s=47 Gracia
March 29, 2021

TANPのインフラ構成の変化の話 / History Of TANP Infrastructure

AWS Startup Tech Meetup Online #3 の登壇資料です。 ※映像はこちら

5c3556b7c8c0ab6bc90a62161a8315f8?s=128

Gracia

March 29, 2021
Tweet

Transcript

  1. TANPͷΠϯϑϥߏ੒ͷมԽͷ࿩

  2. ࣗݾ঺հ 1995೥ੜ·Εɺ౦ژେֶ޻ֶ෦γεςϜ૑੒ֶՊ2019೥ଔۀɻ ࡏֶத͔ΒϓϩάϥϛϯάΛ࢝ΊɺਓࡐɾڭҭɾϝσΟΞاۀͰͷ։ ൃܦݧΛܦͯɺࡈ౻ɾத಺ͱ2017೥ʹגࣜձࣾGraciaΛ૑ۀɻ ݱࡏ͸CTOͱͯ͠TANPͷϓϩμΫτ։ൃʹܞΘΔɻ גࣜձࣾGracia औక໾/CTO ྛ ୓ւ 

  3. None
  4. Ϊϑτબͼ΍ɺ࣮ళฮʹ͓͚ΔϢʔβʔϖΠϯΛٕज़ʹΑΓղফ  ΪϑτʹಛԽͨ͠ ঎඼܈ γʔϯ΍ؔ܎ੑͳͲͷ ΪϑτʹಛԽͨ͠ݕࡧ Ϩίϝϯυ͞Εͨ݁Ռ ͔ΒΪϑτΛબ୒ ΪϑτΦϓγϣϯΛ ෇͚͓ͯಧ͚

  5. ۀք࠷ଟͷΪϑτΦϓγϣϯ  ΦϦδφϧΪϑτ#09 ͓ಧ͚μϯϘʔϧ૷০ υϥΠϑϥϫʔͷಉࠝ ϝοηʔδΧʔυ ໊ೖΕ ࢴା ࢗव ϛχϒʔέͷಉࠝ

    ͓٬༷͔Βͷ͝ཁ๬͕ಛʹଟ͍ɺΪϑτΦϓγϣϯΛଟ਺͝༻ҙɻ
  6. ౷߹తͳγεςϜ։ൃʹΑΓɺෳࡶͳΪϑτϩδεςΟΫεΛ࣮ݱ  ൥ࡶͳΪϑτΦϓγϣϯͷఏڙΛޮ཰తʹ࣮ݱ͢ΔͨΊʹɺϑϧεΫϥονͰ։ൃɻϢʔβʔΠ ϯλʔϑΣʔε͔Βجװۀ຿γεςϜ·ͰΛ౷߹͍ͯ͠·͢ɻ جװۀ຿γεςϜ ϢʔβʔΠϯλʔϑΣʔε ঎඼Ϩίϝϯυ ΪϑτΦϓ γϣϯબ୒ ܾࡁػೳ

    ग़ՙ৘ใ੔ཧ ϐοΩϯά ΪϑτՃ޻ ग़ՙ ঎඼ͷछྨ΍ΪϑτγʔϯʹΑΓɺ ΪϑτΦϓγϣϯͷύλʔϯ͕༷ʑ ঎඼ͱ୨ΛόʔίʔυͰ؅ཧ͢Δ͜ͱͰɺ ޮ཰ͷ޲্ɺޡૹ཰ͷ௿ԼΛ࣮ݱ ௨ৗͷϥοϐϯά͚ͩͰͳ͘ɺػցΛ༻͍ ໊ͨલͷூࠁ΍ࢗवͳͲͷରԠ΋ߦ͏
  7. TANPͷΠϯϑϥߏ੒มԽ

  8. ElasticBeanstalk(EC2 + RDS)  ɾ૑ۀظ ɾElasticBeanstalkͰશͯΛ؅ཧ ɾϗϫΠτσʔ DBύϯΫࣄ݅

  9. ElasticBeanstalk(EC2) + RDS(MySQL)  ɾRDSΛ࡞Γ௚͠ɺElasticBeanstalkͷ؅ཧԼ͔Β֎͢ ɾBlue/GreenσϓϩΠ͕༰қʹ

  10. ElasticBeanstalk(EC2) + RDS(MySQL)  ɾϢʔβʔ਺͕ॱௐʹ৳ͼ࢝ΊɺEC2ෳ਺୆Ͱෛՙ෼ࢄ ɾηογϣϯ͕੾ΕΔ໰୊͕ͨͼͨͼൃੜ͢Δ

  11. ElasticBeanstalk(EC2) + RDS(MySQL) + Redis  ɾηογϣϯ؅ཧΛRedisͰߦ͏Α͏ʹ ɾηογϣϯ͕αʔόʔʹґଘ͠ͳ͍ͨΊɺ ɹؾ݉Ͷͳ͘σϓϩΠɺAutoScalingՄೳʹ

  12. ElasticBeanstalk(EC2) + RDS(Aurora) + Redis  ɾMySQL1୆Ͱͷӡ༻͔ΒAurora΁Ҡߦ ɾॻ͖ࠐΈͱಡΈࠐΈΛ෼཭ͯ͠ӡ༻ ɾΞϓϦέʔγϣϯଆͰϦʔυʹ޲͚Δॲཧ ɾ෼ੳ༻Πϯελϯεͷ࡞੒

    ΦϨϯδ: ॻ͖ࠐΈɺ྘: ಡΈࠐΈ
  13. σϓϩΠϑϩʔͷมߋ  ebίϚϯυ css/jsͷϏϧυΛखݩͰߦ͍ɺʮeb deployʯͰσϓϩΠ CodePipeline GitHubʹϓογϡͨ͠Β ϏϧυͱσϓϩΠ͕ࣗಈͰ૸ΔΑ͏ʹ

  14. ElasticBeanstalk(EC2) + RDS(MySQL) + Redis + S3 + CloudFront 

    ɾࠓ·Ͱ͸css/jsΛ֤EC2͔Β഑৴͍ͯͨ͠ ɾσϓϩΠதɺ৽چͷcss/js͕ଘࡏͯ͠͠·͏ ɾEC2ʹґଘ͠ͳ͍Α͏S3 + CloudFrontͰ഑৴ ɾCodePipelineͷϏϧυ࣌ʹS3΁Ξοϓϩʔυ
  15. ಘΒΕͨ஌ݟ  ɾϏδωεཁ݅ʹԊͬͯΞʔΩςΫνϟ͸มԽ͍ͯ͘͠ ɾ͸͡Ί͔ΒՄೳͳݶΓϕετϓϥΫςΟεʹ৐Δͷ͕େࣄ ɾυΩϡϝϯτɺαϙʔτɺAWS Loft etc… ɾࣗಈԽͷ҆৺ײ

  16. ࠓޙͷ՝୊  ɾ୤ElasticBeanstalk ɾebextensionsͷෳࡶԽɺGUI͔ΒมߋͰ͖ͳ͍ઃఆ etc… ɾDBϚΠάϨʔγϣϯͷࣗಈԽ

  17. ࠓޙͷ՝୊