[日本語] AMIMOTO Design Pattern + Server-less Architecture

Bdaf0b291f02fe64a02cdf592a8a0c8f?s=47 AMIMOTO
April 24, 2016

[日本語] AMIMOTO Design Pattern + Server-less Architecture

AMIMOTOのサービスデザインとその手法について

Bdaf0b291f02fe64a02cdf592a8a0c8f?s=128

AMIMOTO

April 24, 2016
Tweet

Transcript

  1. AMIMOTO Design Pattern + Server-less Architecture @Amimoto_Ami ja.amimoto-ami.com AMIMOTOͷαʔϏεσβΠϯͱͦͷख๏ʹ͍ͭͯ

  2. Summary 1. Automation పఈతʹࣗಈԽ 2. CloudNative ϚωʔδυαʔϏεΛ׆༻ 3. MicroServices ૄ݁߹ͳػೳ࣮૷

    AMIMOTOͷαʔϏεσβΠϯͰ͸ɺ3఺Λҙࣝͨ͠ΞϓϩʔνΛߦ͍ͬͯ·͢ɻ ͜ΕΒʹΑͬͯɺ୭΋͕؆୯ʹಉ͡඼࣭ͷ؀ڥ΍αʔϏεΛ։ൃɺӡ༻؅ཧΛՄೳʹͯ͠ ͍·͢ɻ
  3. Problem 1. ख࡞ۀ 2. ૿͑ଓ͚Δϝϯςφϯείετ 3. ࠶ར༻ෆՄೳ

  4. Solution 1. CloudFormationʹΑΔ؀ڥߏஙͷࣗಈԽ 2. RDS,S3,CloudFrontͳͲϚωʔδυαʔϏεͷར༻ʹΑΔϝϯςφϯείετͷܰݮ 3. ֦ுػೳΛMicroServiceͱͯ͠ఏڙɺRESTFulͳAPIͰ௨৴ɺServer-lessͳArchitecture

  5. Solution 1. CloudFormationʹΑΔ؀ڥߏஙͷࣗಈԽ 2. RDS,S3,CloudFrontͳͲϚωʔδυαʔϏεͷར༻ʹΑΔϝϯςφϯείετͷܰݮ 3. ֦ுػೳΛMicroServiceͱͯ͠ఏڙɺRESTFulͳAPIͰ௨৴ɺServer-lessͳArchitecture

  6. AMAZON CloudFormation •ੌ͍JSON

  7. JIN-KEI Simple Stack

  8. https://github.com/megumiteam/amimoto-enterprise-cfn/blob/master/json/001-mod.json

  9. Solution 1. CloudFormationʹΑΔ؀ڥߏஙͷࣗಈԽ 2. RDS,S3,CloudFrontͳͲϚωʔδυαʔϏεͷར༻ʹΑΔϝϯςφϯείετͷܰݮ 3. ֦ுػೳΛMicroServiceͱͯ͠ఏڙɺRESTFulͳAPIͰ௨৴ɺServer-lessͳArchitecture

  10. AMAZON RDS •ੌ͍σʔλϕʔε

  11. AMAZON S3 •ੌ͍ετϨʔδ

  12. AMAZON CloudFront •ੌ͍Ωϟογϡ

  13. Solution 1. CloudFormationʹΑΔ؀ڥߏஙͷࣗಈԽ 2. RDS,S3,CloudFrontͳͲϚωʔδυαʔϏεͷར༻ʹΑΔϝϯςφϯείετͷܰݮ 3. ֦ுػೳΛMicroServiceͱͯ͠ఏڙɺRESTFulͳAPIͰ௨৴ɺServer-lessͳArchitecture

  14. ௨ৗͷWordPressͷػೳ։ൃ 8PSE1SFTT$PSF  1MVHJO  1MVHJO  1MVHJO  1MVHJO

     1MVHJO
  15. ൃੜ͢Δ໰୊఺ ɾιʔείʔυͷංେԽ ɾDBͷංେԽ ɾDB͕୯Ұো֐఺ʹͳΓ ɹAuto Scaling͕ແҙຯʹ ɾػೳͱίΞɺςʔϚ͕
 ɹີ݁߹ 8PSE1SFTT$PSF 1MVHJO

    1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO 1MVHJO
  16. Solution MicroServiceͱ͍͏ൃ૝

  17. ɾγεςϜΛෳ਺ͷίϯϙʔωϯτͰߏங ɾίϯϙʔωϯτ͸ͦΕͧΕಠཱͨ͠
 ɹγεςϜͱͯ͠΋ػೳ͢Δ ɾ3FTUGVMͳ"1*ͰγεςϜΛ࿈݁ ɾૄ݁߹ Microservices

  18. 8PSE1SFTT$PSF $POOFDUPS1MVHJO "1* "1* "1* .JDSP4FSWJDF .JDSP4FSWJDF .JDSP4FSWJDF ͜Ε͔ΒͷWordPressͷػೳ։ൃ

  19. ࣮૷ࣄྫ1

  20. None
  21. AMAZON 
 Elasticsearch •ੌ͍ݕࡧ

  22. Elasticsearch Service ΛΫϦοΫ͠·͢

  23. Amazon Elasticsearch Service Λ࢝Ί·͠ΐ͏

  24. Elasticsearch υϝΠϯΛ࡞੒͠·͢

  25. ΫϥελΛઃఆ͍͖ͯ͠·͢

  26. ΫϥελΛઃఆ͍͖ͯ͠·͢

  27. ઃఆΛ֬ೝ͠ɼΞΫηεϙϦγʔΛઃఆ͍ͯͩ͘͠͞

  28. ΞΫηεϙϦγʔςϯϓϨʔτΛબ୒͍ͯͩ͘͠͞

  29. Allow open access to the domain Λબ୒͍ͯͩ͘͠͞

  30. ׂΓ౰ͯͨΞΫηεϙϦγʔΛอଘ͠·͢

  31. Elasticsearch υϝΠϯͷઃఆ಺༰Ͱ͢
 Endpoint ͸͋ͱͰ࢖͏ͷͰ߇͓͍͍͑ͯͯͩ͘͞

  32. ΞʔΩςΫνϟ 8PSE1SFTT$PSF $POOFDUPS1MVHJO "1* ".";0/&MBTUJDTFBSDI

  33. None
  34. https://wordpress.org/plugins/elasticommerce-search-form/

  35. Elasticommerce Search Form ϓϥάΠϯΛ༗ޮԽ͍ͯͩ͘͠͞

  36. Elasticommerce Services ͷઃఆΛ͠·͢

  37. ઌ΄Ͳ߇͓͍͑ͯͨ Endpoint Λઃఆͯ͠อଘ͍ͯͩ͘͠͞

  38. https://wordpress.org/plugins/elasticommerce-related-items/

  39. Elasticommerce Related Item ϓϥάΠϯΛ༗ޮԽ͍ͯͩ͘͠͞

  40. Elasticommerce Services ΁Ҡಈ͠·͢

  41. Elasticommerce Related Item ͷઃఆΛ͠·͢

  42. DEMO http://ecdemo.amimoto-ami.com/product-category/sample?orderby=popularity

  43. Solution 1. CloudFormationʹΑΔ؀ڥߏஙͷࣗಈԽ 2. RDS,S3,CloudFrontͳͲϚωʔδυαʔϏεͷར༻ʹΑΔϝϯςφϯείετͷܰݮ 3. ֦ுػೳΛMicroServiceͱͯ͠ఏڙɺRESTFulͳAPIͰ௨৴ɺServer-lessͳArchitecture

  44. Solution MicroService͔ͩΒͰ͖Δ

  45. AMAZON 
 lambda AMAZON 
 DynamoDB AMAZON 
 API Gateway

    Server-less Architecture ͰՄࢹԽػೳΛ௥Ճ
  46. ΞʔΩςΫνϟ 8PSE1SFTT$PSF $POOFDUPS1MVHJO "1* "1* "1* શจݕࡧ ߪങσʔλऩू ߪങσʔλՄࢹԽ

  47. None
  48. શจݕࡧ ߪങσʔλՄࢹԽ ߪങσʔλऩू

  49. None
  50. ࣮૷ࣄྫ2

  51. Mautic ͋Β͔͡Ίεέδϡʔϧઃఆ͞Εͨɺ ϚʔέςΟϯά΍Ӧۀͷ܁Γฦ͠λε ΫΛࣗಈతʹ࣮ߦͯ࣌ؒ͠Λઅ໿͠ɺ ͔ͭӦۀνʔϜΛਖ਼͍͠λΠϛϯάͰ ਖ਼͍͠ݟࠐΈ٬ʹूதͤ͞ΔͨΊʹɺ ॏཁͰ༗༻ͳ৘ใΛҰՕॴʹूΊΔ΋ ͷɻ

  52. None
  53. None
  54. None
  55. None
  56. https://megumiteam.gitbooks.io/mautic-documentation-japanese/content/ja/index.html

  57. ΞʔΩςΫνϟ 8PSE1SFTT$PSF $POOFDUPS1MVHJO "1* .BVUJD

  58. None
  59. WP Mautic MauticͰੜ੒ͨ͠ϑΥʔϜΛ γϣʔτίʔυͰຒΊࠐΈ τϥοΩϯάλάΛࣗಈͰૠೖ https://wordpress.org/plugins/wp-mautic/

  60. None
  61. None
  62. None
  63. Mauticommerce WooCommerceͰ঎඼Λߪೖͨ͠ ސ٬ͷ৘ใΛMauticʹૹ৴Ͱ͖Δ https://wordpress.org/plugins/mauticommerce/

  64. None
  65. https://github.com/megumiteam/mauticommerce/wiki/How-To-Create-Form

  66. CF7 Mautic Extention Contact Form 7ͷೖྗ৘ใΛ MauticͷʹϦʔυʹ֨ೲ https://wordpress.org/plugins/cf7-mautic-extention/

  67. None
  68. https://megumi.mautic.com/s/dashboard http://ecdemo.amimoto-ami.com/ %&.0

  69. http://ja.amimoto-ami.com/slack/ ࣭͝໰͸͓ؾܰʹ:

  70. @Amimoto_Ami ja.amimoto-ami.com THANK YOU! AMIMOTO Design Pattern + Server-less Architecture

    AMIMOTOͷαʔϏεσβΠϯͱͦͷख๏ʹ͍ͭͯ