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

AWS vs GCP 今から作る ならどっちがいいの!?

Show Murai
October 23, 2017

AWS vs GCP 今から作る ならどっちがいいの!?

Show Murai

October 23, 2017
Tweet

More Decks by Show Murai

Other Decks in Technology

Transcript

  1. AWS vs GCP ࠓ͔Β࡞Δ ͳΒͲ͕͍͍ͬͪͷʂʁ αϙʔλʔζCoLabษڧձ Oct 19 2017 αΠόʔΤʔδΣϯτ

    ΞυςΫελδΦ ଜҪ ᠳଠ࿕ https://supporterzcolab.com/event/182/
  2. ࣗݾ঺հ • ଜҪᠳଠ࿕ • גࣜձࣾαΠόʔΤʔδΣϯτ • ΞυςΫελδΦ ΠϯϑϥνʔϜ • Πϯϑϥ

    ϦʔυΤϯδχΞ ※ຊ೔ͷൃද͸ݸਓͷݟղͰ͋Γɺॴଐ͢Δ૊৫ͷެࣜݟղͰ͸͋Γ·ͤΜ
  3. ࣗݾ঺հ • ژ౎ग़਎ ౦ژࡏॅ • ࣾձਓ 6೥໨ • ֶੜͷࠒ͸ը૾ೝࣝɺ
 ίϯϐϡʔλϏδϣϯΛݚڀͯ͠·ͨ͠

    • લ৬͸ωοτϫʔΫػثͷ
 αʔόʔαΠυΤϯδχΞ΍ͬͯ·ͨ͠ • झຯ͸ཱྀߦɺϑοταϧ • ग़·͢
  4. AWSͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 16ͷϦʔδϣϯ • ౦ژɺόʔδχΞɺϩϯυϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ EC2 ϦʔδϣϯͱΞϕΠϥϏϦςΟʔκʔϯ http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
  5. GCPͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 12ͷϦʔδϣϯ • ౦ژɺϩϯυϯɺΦϨΰϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ
  6. υΩϡϝϯτ΍৘ใऩू • AWS • ެࣜυΩϡϝϯτ ͸͔ͳΓॆ࣮͍ͯ͠Δ • AWS Ϋϥ΢υαʔϏε׆༻ࢿྉू ΋๛෋ͰࢀߟʹͳΔ

    • DevelopersIO ΋ΊͪΌͪ͘Όݕࡧʹώοτ͢Δ • GCP • ެࣜυΩϡϝϯτͷ೔ຊޠ͸Ξοϓσʔτ͕஗͍
 ӳޠͷ΄͏͕࣮֬ • ٕज़తͳهࣄ͕AWSͱൺֱͯ͠গͳ͍
  7. DevOps • AWS CloudFormation • JsonͰߏ੒؅ཧ͸೉қ౓ߴΊ • ೉қ౓ߴ͍͕ނʹ৘ใ΋΍΍ଟΊ • Google

    Cloud Deployment Manager • yamlͰॻ͚Δͷ͸ྑ͛͞ • ݸਓతʹ࢖ͬͯΔͷ͸ • Terraform&AnsibleͰߏ੒؅ཧͱϓϩϏδϣχϯά
  8. CLI tool • aws-cli • Homebrew ͰΠϯετʔϧՄೳ • Credential͕҉߸Խͳ͠Ͱอଘ͞ΕΔ •

    ࠔͬͨΒhelpΛແ৺Ͱଧ͚ͭͩ • gcloud • ॳظηοτΞοϓͰίέΔͱͭΒ͍ • ࠔͬͨΒ΍ͬͺΓhelpଧͯ͹Α͍
  9. ωοτϫʔΫ • AWS • VPCΛϦʔδϣϯຖʹ࡞੒ • ϨΨγʔωοτϫʔΫނʹཧղ͠΍͍͢ • ΦϯϓϨͱͭͳ͗΍͍͢ •

    GCP • άϩʔόϧͰ1ͭͷVPC࡞Δ͚ͩ • GCPͷωοτϫʔΫ͸΄Μͱੌ͍ • Firewall΋ϧʔτϨʔϒϧ΋λάͰ؅ཧͰ͖Δ
  10. ϩʔυόϥϯα • AWS • ELBɺALBɺNLBछྨ͸ଟ͍͔ΒͰ͖Δ͜ͱ͸ଟ͍ • εέʔϧΞοϓ࣌ͷ஗Ԇ͕ଟ͍ • GCP •

    ࡞੒͔ΒαʔϏε։࢝·Ͱҟৗʹ଎͍(2,3sec) • IP anycastͱ͍͏ٕज़Λ஍ٿن໛Ͱόϥϯγϯά • ಉ͡IPΞυϨεΛ࢖ͬͯશੈք͔ΒΞΫηε͢Δ͜ͱ͕Մೳ
  11. IP Anycast Introducing the new Google Cloud Load Balancing UI

    https://cloudplatform.googleblog.com/2016/04/introducing-the-new-Google-Cloud-Load-Balancing-UI.html
  12. Managed RDB • AWS RDS • MySQLޓ׵ͷAWSಠࣗΤϯδϯAurora͕࠷ڧ • ओཁͳσʔλʔϕʔεΤϯδϯἧͬͯΔ •

    ఆظϝϯςφϯεʹ͸උ͓͑ͯ͘ • Cloud SQL • CloudSQL͸ࣗ෼Ͱνϡʔχϯάඞཁ • PostgreSQL͸·ͩBETA • ఆظϝϯςφϯεʹ
  13. NoSQLɺKVS • AWS • DynamoDB͸௿ϨΠςϯγͷNoSQLσʔλʔϕʔε • ElasticCache͸ΦϯϝϞϦKVS • GCP •

    BigtableɺDatastoreͳͲͷGoogleͷόοΫΤϯυͰ
 ར༻͍ͯ͠ΔαʔϏεΛ࢖͑Δ • ManagedΩϟογϡαʔϏε͕ݱঢ়ແ͍
  14. Storage • AWS S3 • ඇৗʹߴ͍଱ٱੑ • ࡉ͔ͳݖݶઃఆ͕Մೳ • ੩తίϯςϯπͷϗεςΟϯά

    • Cloud Storage • Multi-RegionalͰ͸౦ژʹ഑ஔ͞Εͳ͍ • IAMݖݶͰ͸Read/Write/Admin͔͠ݖݶ͕෼͚Εͳ͍
  15. Container Management • AWS ECS • ecs-cli Λ૊Έ߹Θͤͯ࢖͏ͱศར • εέʔϧ/σϓϩΠपΓ͸ΩϟονΞοϓ͕ඞཁ

    • EC2΋ؚΊͯ؅ཧ͢ΔͳΒCloudFormationͱ૊Έ߹Θͤ • Google Container Engine(GKE) • kubernetesΛ࢖͑Δ • kubernetes͕ίϯςφϚωδϝϯτͩͱϝΠϯετϦʔϜ(ଟ෼)
  16. ϞχλϦϯάαʔϏε • AWS CloudWatch • μογϡϘʔυΛ࡞Δͷ͕େม • Ξϥʔτͷઃఆ΋̍ͭͣͭߦ͏ඞཁ͋Γ • Google

    Stackdriver • ϝτϦοΫͷऩू͕ఆৗతʹέʔε͕͋Δ • AWS΍ΦϯϓϨ΋agentΛར༻ͯ͠؂ࢹՄೳ • Ξϥʔτͷઃఆ͸άϧʔϓͰग़དྷΔ • μογϡϘʔυ͕ݟ΍͍͢ • αʔυύʔςΟπʔϧͷ΄͏͕༏ल(༗ྉ) • DatadogɺNew RelicɺMackarelͳͲ
  17. ίετ • AWS • EC2Πϯελϯε͸ίεύ͕௿Ί • GCP • GCEΠϯελϯε͸ίεύྑ͍ •

    ௕ׂ࣌ؒҾ΋ࣗಈదԠ • ϓϦΤϯϓςΟϒϧΠϯελϯε΋؆୯ʹ࢖͑Δ • BigQueryͷैྔ՝ۚʹ஫ҙ