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

ferretOneのAWS活用事例_SpeeeCafeMeetup_20170217

Dd480bdb51e04003f1612ec890647782?s=47 Islands5
February 17, 2017

 ferretOneのAWS活用事例_SpeeeCafeMeetup_20170217

株式会社ベーシックで運営しているサービス(ferretone)でのAWSフルマネージドサービスの活用事例についての資料です。
どのような経緯を経てawsのサービスを利用するようになったかまとめています。

Dd480bdb51e04003f1612ec890647782?s=128

Islands5

February 17, 2017
Tweet

Transcript

  1. AWSϑϧϚωʔδυαʔϏε Ͳ͜·Ͱ׆༻Ͱ͖Δͷ? ~ ferretOneͰͷར༻γʔϯΛ·ͱΊͯΈͨ~ Speee Cafe Meetup / 2017೥2݄17೔

  2. 722

  3. Ҿ༻ݩ>https://aws.amazon.com/jp/aws_history/ AWSͷػೳվળɺ৽ػೳ௥Ճ

  4. None
  5. ࡾඛ̛̪̟ γεςϜΛΫϥ΢υԽɹେखۜߦͰॳ Ҿ༻ݩ>http://www.nikkei.com/article/DGXLZO11980880R20C17A1NN7000/ 2017/1/22

  6. None
  7. ͍͢͝!! Amazon Web Service

  8. ޒౡ ྅ଠ࿠(ͬͪ͝Μ) 2015೥ɹϕʔγοΫ৽ଔೖࣾ AWS/Rails/(࣌ʑϑϩϯτ) ΠϯϑϥΤϯδχΞݟश͍ CI(wercker, jenkins) Docker

  9. ຊ೔͓࿩͢Δ͜ͱ AWSϑϧϚωʔδυαʔϏε׆༻ࣄྫ

  10. None
  11. WebϚʔέςΟϯάΛ ʮ୭Ͱ΋ɺҰਓͰ΋ʯ࣮ફ͠ ੒Ռ͕ग़ͤΔΑ͏ʹͳΔαʔϏε

  12. αΠτฤू(CMS) ߦಈղੳ ໰͍߹Θͤ؅ཧ etc. ferret Oneͷػೳ঺հ

  13. Client EndUser WebSite

  14. ຊ೔͓࿩͢Δ͜ͱ AWSϑϧϚωʔδυαʔϏε׆༻ࣄྫ

  15. AWSϑϧϚωʔδυαʔϏε??

  16. AWSϑϧϚωʔδυαʔϏε ɾ؅ཧ͢ΔαʔόʔΛ࣋ͨͳ͍ ɾউखʹεέʔϦϯάͯ͘͠ΕΔ ɾར༻ྔʹΑ͓ͬͯࢧ෷ ࢀߟ>https://aws.amazon.com/serverless/

  17. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ࢀߟ>https://aws.amazon.com/serverless/
  18. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ίϯϐϡʔςΟϯά
  19. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ετϨʔδ
  20. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray σʔλϕʔε
  21. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ϓϩΩγʔ
  22. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray σʔλετϦʔϜ
  23. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ϝοηʔδϯά&Ωϡʔ
  24. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray εςʔτϚγϯ
  25. Lambda S3 DynamoDB API Gateway Kinesis SNS SQS Step Functions

    X-Ray ௐࠪ
  26. ࣄྫ঺հ

  27. ΞΫηεղੳ

  28. αϚϦ άϥϑԽ ߦಈཤྺ ferret OneͷΞΫηεղੳ

  29. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 ΞΫηεղੳͷΞʔΩςΫνϟ Nginx fluentd kinesis lambda Databases EndUser Client

    WebSite
  30. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 چΞΫηεղੳͷΞʔΩςΫνϟ Databases EndUser Client WebSite Nginx fluentd

  31. ͋Δ೔…

  32. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 چΞΫηεղੳͷΞʔΩςΫνϟ Databases EndUser Client WebSite Nginx fluentd

  33. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 چΞΫηεղੳͷΞʔΩςΫνϟ Databases EndUser Client WebSite Nginx fluentd

  34. None
  35. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 چΞΫηεղੳͷΞʔΩςΫνϟ Databases EndUser Client WebSite Nginx fluentd

  36. τϥοΩϯάͷ࢓૊Έ*> http://qiita.com/kojii/items/0ecece2c1b30b4f3f6e4 ΞΫηεղੳͷΞʔΩςΫνϟ Nginx fluentd kinesis lambda Databases EndUser Client

    WebSite
  37. ϝʔϧ τϥοΩϯά

  38. ϝʔϧτϥοΩϯά Ҿ༻ݩ> http://www.benchmarkemail.com/jp/resources/email-glossary-detail/tracking ϝʔϧΩϟϯϖʔϯͷ഑৴ঢ়گ΍ޮՌΛଌ ఆ͢ΔͨΊʹ৘ใΛूΊͨΓධՁ͢Δ

  39. OneMail ϝʔϧ഑৴ͷͨΊͷ؅ཧը໘΍ WebAPIΛఏڙ

  40. ϝʔϧτϥοΩϯά User Developer OneMailServers receive server SQS1 DynamoDB Lambda SQS2

    API
  41. None
  42. OneMail ϝʔϧτϥοΩϯάΠϕϯτͷऔಘ APIGateway Client lambda SQS Batch Console

  43. چϝʔϧτϥοΩϯάΠϕϯτͷऔಘ1 Client Console ղੳ΋ OneMail

  44. ͋Δ೔…

  45. ͳΜ͔؅ཧը໘ॏ͍…

  46. 1ສ݅ͷϝϧϚΨ഑৴ͨ͠Αʙ

  47. چϝʔϧτϥοΩϯάΠϕϯτͷऔಘ1 Client Console ղੳ΋ OneMail

  48. چϝʔϧτϥοΩϯάΠϕϯτͷऔಘ2 Client SQS Batch Console Console OneMail

  49. چϝʔϧτϥοΩϯάΠϕϯτͷऔಘ2 Client SQS Batch Console Console OneMail

  50. ϝʔϧτϥοΩϯάΠϕϯτͷऔಘ APIGateway Client lambda SQS Batch Console OneMail

  51. ଞʹ΋

  52. ར༻γʔϯ • ը૾ͷϦαΠζ(S3 -> lambda) • Τϥʔൃੜ࣌ͷҰ࣌ରԠ(Cloudwatch -> lambda) •

    githubͷಛఆͷϥϕϧΛ௨஌(SNS -> lambda) etc.
  53. ·ͱΊ • ӡ༻ΛҙࣝͤͣʹɺίʔυʹϑΥʔΧε • εέʔϦϯάੑೳΛ׆͔ͯ͠ɺҰ୴ϦΫΤετΛड͚ͯ؇ ি • ඇಉظܥॲཧ͸શ෦ஔ͖׵͑ΒΕΔ

  54. ࠷ޙ·Ͱ͝ਗ਼ௌ͍͖ͨͩ ͋Γ͕ͱ͏͍͟͝·ͨ͠!

  55. None
  56. ิ଍ࢿྉ

  57. lambdaͷίʔυ؅ཧ aws cli AWS EC2 Container Registry

  58. ίετ 1γϟʔυ: 0.0195$ / h 100ສPUTϖΠϩʔυ: 0.0215$ *) I: 1MB/s,

    O: 2MB/s, 1000r/s EC2: m3.medium kinesis 0.096$ / h 70$ 15$ https://aws.amazon.com/jp/ec2/pricing/on-demand/ https://aws.amazon.com/jp/kinesis/streams/pricing/ 1ԯPV 2KB / 1ϦΫΤετ => 190GB