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

4eaa25f9f4cc599425bd7998ab79917b?s=47 Show Murai
October 23, 2017

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

4eaa25f9f4cc599425bd7998ab79917b?s=128

Show Murai

October 23, 2017
Tweet

Transcript

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

    ΞυςΫελδΦ ଜҪ ᠳଠ࿕ https://supporterzcolab.com/event/182/
  2. ͖ΐ͏͸ͳ͢͜ͱ 1. ࣗݾ঺հ 2. AWSͱ͸ 3. GCPͱ͸ 4. AWS vs

    GCP 5. ޲͍ͯΔγεςϜ
  3. ࣗݾ঺հ • ଜҪᠳଠ࿕ • גࣜձࣾαΠόʔΤʔδΣϯτ • ΞυςΫελδΦ ΠϯϑϥνʔϜ • Πϯϑϥ

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

    • લ৬͸ωοτϫʔΫػثͷ
 αʔόʔαΠυΤϯδχΞ΍ͬͯ·ͨ͠ • झຯ͸ཱྀߦɺϑοταϧ • ग़·͢
  5. ͓·͑AWSৄ͍͠ͷʁ

  6. ਓฒΈʹ͸஌ͬͯΔ(͸ͣ) • AWSྺɿ5೥͘Β͍ • AWSͰ޷͖ͳαʔϏεɿRedshiftɺLambda • AWSೝఆɿAWS SAP • Re:Invent

    2015 ࢀՃ͠·ͨ͠
  7. ͓·͑GCPৄ͍͠ͷʁ

  8. ࠷͕ۙͬͭΓ৮Γ͸͡Ί·ͨ͠ • GCPྺɿ3೥͘Β͍ • GCPͰ޷͖ͳαʔϏεɿPub/Sub • աڈͷൃදࢿྉ • GCPͰ޿ࠂಈըΛࣗಈੜ੒ͨ͠࿩͠

  9. օ༷ʹ࣭໰͍ͤͯͩ͘͞͞

  10. AWSΛ࢖ͬͯΔํ

  11. GCPΛ࢖ͬͯΔํ

  12. ຊ೔ͷର৅ऀ • AWS·ͨ͸GCP͜Ε͔Β࢖͍͍ͨਓ • AWSɺGCPͪΐͬͱ࢖ͬͨਓ • ύϒϦοΫΫϥ΢υͷೖ໳ͱ͔ॳ৺ऀͷਓ

  13. ࠓ೔͓࿩͢Δ͜ͱ • AWSͱ͸ͳʹ • GCPͱ͸ͳʹ • AWS vs GCP •

    ͦΕͧΕ޲͍ͯΔ༻్
  14. AWSͱ͸ʁ

  15. AWS(Amazon Web Service)ͱ͸ Ϋϥ΢υίϯϐϡʔςΟϯάαʔϏε →Ϩϯλϧαʔόʔͷ͍͢͝΍ͭ ʮΠϯϑϥ͕WebαʔϏεʹͳͬͨʯ AWS ʹ͍ͭͯ https://aws.amazon.com/jp/about-aws/

  16. AWSͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 16ͷϦʔδϣϯ • ౦ژɺόʔδχΞɺϩϯυϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ EC2 ϦʔδϣϯͱΞϕΠϥϏϦςΟʔκʔϯ http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
  17. AWSͰग़དྷΔ͜ͱ(΄ΜͷҰ෦) • ΫϦοΫ·ͨ͸APIͰߏஙՄೳͳίϯϐϡʔτ • EC2 • ΫϦοΫ·ͨ͸APIͰߏஙՄೳͳσʔλϕʔε • RDS •

    ੍ݶແ͠ͷσʔλετϨʔδ • S3 • ετϦʔϜॲཧ • Kinesis (Stream)
  18. ࠾༻࣮੷ ಋೖࣄྫ https://aws.amazon.com/jp/solutions/case-studies/all/

  19. GCPͱ͸ʁ

  20. GCP(Google Cloud Platform)ͱ͸ • Google͕ఏڙ͢ΔύϒϦοΫΫϥ΢υ • Google ࣾ಺Ͱ࢖ΘΕ͍ͯΔ΋ͷͱಉ͡
 ςΫϊϩδʔ΍ΠϯϑϥΛఏڙ͍ͯ͠Δ
 Ϋϥ΢υαʔϏε

    • BigQueryɺGoogle MLͳͲଞͷΫϥ΢υΑΓ
 ༏ҐੑΛ΋ͭαʔϏε͕͋Δ
  21. GCPͷੈքల։ • Ϧʔδϣϯ • େ཮ͳͲ஍ཧతʹ཭ΕͨྖҬ • 12ͷϦʔδϣϯ • ౦ژɺϩϯυϯɺΦϨΰϯ •

    ΞϕΠϥϏϦςΟʔκʔϯ • 1 ͭͷϦʔδϣϯʹෳ਺ͷͦΕͧΕಠཱͨ͠ϩέʔγϣϯ • ྫ. ౦ژϦʔδϣϯͷAZɿ඼઒ɺཱ઒
 ※࣮ࡍʹ͸ެ։͞Ε͍ͯ·ͤΜ
  22. ࠾༻࣮੷

  23. AWSͱGCPͲ͕͍͍ͬͪͷ?

  24. ৴པੑͰݎ࿚͕ٻΊΒΕΔͳΒ

  25. None
  26. γϯϓϧͳγεςϜͳΒ

  27. None
  28. AWS vs GCP

  29. None
  30. ͱ͖ͬͭ΍͢͞ ͋Δҙຯݹ͍γεςϜ ࢖ͬͯΔਓଟ͍ ৘ใ͕ଟ͍
 ެࣜɺblogɺqiitaͱ͔ Google App EngineͷΠ ϝʔδڧ͠ʁ ઌਐతͳΞʔΩςΫνϟ

    BigQueryฉ͍ͨ͜ͱ͋Δ
  31. None
  32. υΩϡϝϯτ΍৘ใऩू • AWS • ެࣜυΩϡϝϯτ ͸͔ͳΓॆ࣮͍ͯ͠Δ • AWS Ϋϥ΢υαʔϏε׆༻ࢿྉू ΋๛෋ͰࢀߟʹͳΔ

    • DevelopersIO ΋ΊͪΌͪ͘Όݕࡧʹώοτ͢Δ • GCP • ެࣜυΩϡϝϯτͷ೔ຊޠ͸Ξοϓσʔτ͕஗͍
 ӳޠͷ΄͏͕࣮֬ • ٕज़తͳهࣄ͕AWSͱൺֱͯ͠গͳ͍
  33. None
  34. ςΫχΧϧαϙʔτ • AWSαϙʔτ • ༗ྉϓϥϯ͕ඞਢ • ༗ྉαϙʔτͷ࣭͸͔ͳΓߴ͍ • ݪҼௐ͚ࠪͩͰͳ͘վળҊͳͲ΋ఏࣔͯ͘͠ΕΔ৔߹͋Γ(ݸਓత) •

    GCPαϙʔτ • ༗ྉϓϥϯ͕ඞਢ • ೔ຊޠαϙʔτ͸ΰʔϧυ($400/݄)Ҏ্
  35. None
  36. DevOps • AWS CloudFormation • JsonͰߏ੒؅ཧ͸೉қ౓ߴΊ • ೉қ౓ߴ͍͕ނʹ৘ใ΋΍΍ଟΊ • Google

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

    ࠔͬͨΒhelpΛແ৺Ͱଧ͚ͭͩ • gcloud • ॳظηοτΞοϓͰίέΔͱͭΒ͍ • ࠔͬͨΒ΍ͬͺΓhelpଧͯ͹Α͍
  39. None
  40. Ϣʔβ/ݖݶͷ؅ཧ • AWS • IAMϢʔβɺϩʔϧͰࡉ͔͘ݖݶ͚ͭΒΕΔ • αʔϏεʹϩʔϧͰݖݶΛ͚ͭΒΕΔέʔε΋͋ͬͯྑ͍ • ηΩϡϦςΟݫ͍͠ͱ͜ΖͰ΋େৎ෉ͪΌ͏͔ͳͱ •

    GCP • αʔϏεʹରͯ͠Ӿཡɺ࡞੒ɺ؅ཧऀͱγϯϓϧ • ηΩϡϦςΟཁ݅ݫ͠໨ͷͱ͜Ζ͸NGͩͱࢥ͏
  41. None
  42. ωοτϫʔΫ • AWS • VPCΛϦʔδϣϯຖʹ࡞੒ • ϨΨγʔωοτϫʔΫނʹཧղ͠΍͍͢ • ΦϯϓϨͱͭͳ͗΍͍͢ •

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

    ࡞੒͔ΒαʔϏε։࢝·Ͱҟৗʹ଎͍(2,3sec) • IP anycastͱ͍͏ٕज़Λ஍ٿن໛Ͱόϥϯγϯά • ಉ͡IPΞυϨεΛ࢖ͬͯશੈք͔ΒΞΫηε͢Δ͜ͱ͕Մೳ
  45. 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
  46. None
  47. Managed RDB • AWS RDS • MySQLޓ׵ͷAWSಠࣗΤϯδϯAurora͕࠷ڧ • ओཁͳσʔλʔϕʔεΤϯδϯἧͬͯΔ •

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

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

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

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

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

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

  60. ཧղ͠΍͍͢ υΩϡϝϯτॆ࣮ αϙʔτ΋ྑ͍ IAMݖݶ ϦϨʔγϣφϧσʔλʔϕʔε NoSQLɺKVS ετϨʔδαʔϏε ωοτϫʔΫ ϩʔυόϥϯα ίϯςφϚωδϝϯτ

    ϞχλϦϯά ίετ
  61. None
  62. AWSʹ޲͍ͯΔ༻్ • ΤϯλʔϓϥΠζ޲͚γεςϜ(ߗ͍ͱ͜Ζ)Ͱ࢖͍͍ͨ • ηΩϡϦςΟ΍ݖݶΛݫ֨ʹ؅ཧ͍ͨ͠ • ΦϯϓϨϛεͱϋΠϒϦουΫϥ΢υΛ࣮ݱ͍ͨ͠ • ௿ϨΠςϯγDBΛ࢖༻͢Δඞཁ͕͋Δ •

    AWSͱ࿈ܞ͢ΔαʔυύʔςΟαʔϏεΛ࢖͍͍ͨ
  63. GCPʹ޲͍ͯΔ༻్ • γϯϓϧͳ3૚WebΞϓϦέʔγϣϯ • άϩʔόϧͰαʔϏεΛ͍ͨ͠ • BigQueryΛ࢖ͬͯ෼ੳ͍ͨ͠ • TensorFlowΛ࢖ͬͯػցֶशΛߦ͍͍ͨ •

    ઑٕͬͨज़࢖͍͍ͨ
  64. ݁࿦ɿ࠷దͳπʔϧΛબͿ

  65. ͋Γ͕ͱ͏͍͟͝·ͨ͠

  66. AWS΍GCP ΍Γ͍ͨͻͱ ϚδͰઈࢍืूத ※ΦϑΟεݟֶ͚ͩͰ΋େৎ෉Ͱ͢ αΠόʔΤʔδΣϯτ ΞυςΫελδΦ https://adtech.cyberagent.io/