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

[福岡]JP_Stripes (Stripe ユーザーグループ)in Fukuoka キ...

[福岡]JP_Stripes (Stripe ユーザーグループ)in Fukuoka キックオフ -- 決済の民主化を福岡から!

DigitalCube Inc.

September 14, 2017
Tweet

More Decks by DigitalCube Inc.

Other Decks in Technology

Transcript

  1. J P _ S T R I P E S

    ( S T R I P E Ϣ ʔ β ʔ άϧ ʔϓ ʣ I N F U K U O K A Ω ο Ϋ Φ ϑ - - ܾ ࡁ ͷ ຽ ओ Խ Λ ෱ Ԭ ͔ Β ʂ S T R I P E ͱ S A A S Ϗ δ ω ε ͷ େ ੾ ͳ ؔ ܎
  2. C E O + H B T D I G

    I TA L C U B E W H O A M I ? H I R O M I C H I K O G A amimoto-ami.com getshifter.io
  3. “ Ϋ ϥ ΢ υ α ʔ Ϗ ε ͷ

    ී ٴ ཰ ͸ ຖ ೥ ૿ Ճ ͯ͠ ͓ Γ ɺ 2 0 1 5 ೥ ຤ ʹ ͸ 4 0 % Λ ௒ ͑Δ ا ۀ ͕ Ϋ ϥ ΢ υ α ʔ Ϗ ε Λ ར ༻ ͯ͠ ͍ Δ ͱ ͍ ͏ ɻ ͳ ͔Ͱ ΋ ɺ S A A S ࢢ ৔ ͸ ೥ ฏ ۉ ੒ ௕ ཰ 1 0 % Λ ௒ ͑Δ ੎ ͍Ͱ ੒ ௕ ɻ 2 0 1 5 ೥ ͸ ͓ Αͦ 1 ஹ ԁ ͩ ͬ ͨ ࢢ ৔ ن ໛ ͕ɺ 2 0 2 0 ೥ ʹ ͸ 1 . 3 ஹ ԁ ʹ ͳΔ ݟ ௨ ͠ ” S A A S ࢢ ৔ ಈ ޲ http://jp.techcrunch.com/2017/06/13/smartcamp-saas-report/
  4. ถ Ψ ʔ τ φ ʔ ɺ ઌ ਐ ς

    Ϋϊ ϩ δ ʔ ʹ ͓ ͚Δ ϋΠ ϓ α ΠΫϧ 2 0 1 7 ೥ ൛ http://www.gartner.com/newsroom/id/3784363 http://www.publickey1.jp/blog/17/2017ai_everywhare.html α ʔό Ϩε ͸ ᴈ ໌ ظ ɺ σΟʔ ϓ ϥ ʔχ ϯ ά ͸ ա ౓ ͳ ظ ଴ ࠓ ೥ ͷ ϋΠ ϓ αΠΫϧ ͔ Β ɺ ؾ ʹ ͳΔ Ω ʔ ϫ ʔ υ Λ ͍ ͭ͘ ͔ औ Γ ্ ͛ ͯ Έ Δ ͱ ɺ ʮ S E R V E R L E S S PA A S ʯ ͕ ᴈ ໌ ظ ʹ
  5. # W H Y 
 S A A S ΍

    M A R K E T P L A C E Ͱ ͷ Ϗ δ ω ε Λ ࢝ Ί ͨ ͷ ͔ʁ
  6. # H O W 
 S A A S ͱ

    ͯ͠ ఏ ڙ ͢ Δ ͨ Ί ʹ ʁ
  7. 1 . P R O D U C T ί

    Ξ 2 . U S E R ೝ ূ / ؅ ཧ 
 3 . PAY M E N T γε ςϜ 4 . S E R V I C E D A S H B O A R D ( U I ) S A A S ͷ ߏ ੒ ཁ ૉ
  8. • γεςϜߏ੒
 - Architecture : Microervices
 - Backend : Serverless


    - Frontend : SPA • ։ൃνʔϜ
 - ϓϩδΣΫτϚωʔδϟʔ 1໊
 - ΠϯϑϥΤϯδχΞ 2໊
 - ϓϩάϥϚʔ 1໊
 - ϑϩϯτΤϯδχΞ 1໊
 - σβΠϯελδΦ 1ࣾʢ3−5໊) [Case] Shifter ͷ৔߹
  9. • Docker • EFS • Amazon Aurora • Lambda •

    API Gateway • Dynamo DB [Case] Shifter ͷ৔߹
 PRODUCT
  10. • Amazon Cognito 
 (User Pool) • Lambda • API

    Gateway • Dynamo DB • Serverless framework [Case] Shifter ͷ৔߹
 User ೝূɾ؅ཧ
  11. # W H AT 
 S A A S ఏ

    ڙ Λ ݕ ౼ ͢ Δ ࡍ ͷ Ω ʔϙΠ ϯ τ
  12. S H I F T E R ͷ ৔ ߹

    ͸ ɺ S E R V E R L E S S , M I C R O S E R V I C E S Ͱ ͷ ։ ൃ Λ ߦ ͬ ͨ ͕ɺ M O N O L I T H I C ͳ F R A M E W O R K Λ ར ༻ ͠ ͨ ։ ൃ ͱ ͷ έ ʔε όΠέ ʔε Ͱ બ ୒ ͢ Δ ඞ ཁ ͕ ͋ Δ ɻ ྫ ͑ ͹ ɺ R U B Y & R A I L S L A R AV E L ͳ Ͳ P R O D U C T / U S E R ؅ ཧ / S E R V I C E D A S H B O A R D
  13. - Ϗ δ ω εϞ σϧ ʹ ॊ ೈ ʹ

    ର Ԡ Ͱ ͖ Δ - η Ω ϡ Ξ - Φʔ τϝʔ γ ϣ ϯ 
 - ά ϩ ʔό ϧ ʹ ର Ԡ ʢ ࠃ / ௨ ՟ ʣ - Ω ϟ ο γ ϡ ϑ ϩ ʔ PAY M E N T γε ςϜ
  14. - ຖ ݄ 1 , 5 0 0 ԁ ͷ

    M i c ro ϓ ϥ ϯ ͔ Β ɺ ຖ ݄ 3 , 0 0 0 ԁ ͷ S m a l l ϓ ϥ ϯ ʹ ܖ ໿ ม ߋ ͠ ͨ ͍ ࣌ ͸ s u b s c r i p t i o n s . u p d a t e ( ) Ͱ ࠩ ֹ ͕ ൃ ੜ ͢ Δ ৔ ߹ ͸ ɺ ࣍ ճ ੥ ٻ ࣌ ʹ ೔ ׂ Γ Ͱ ੥ ٻ ( o r ૬ ࡴ ) Λ উ ख ʹ΍ ͬͯ͘Ε · ͢ɻ - h t t p : / / q i i t a . c o m / w o k a m o t o / i t e m s / b f d 8 5 f b 5 9 0 5 c 2 0 2 7 1 f 8 a ݄ ֹ / ೥ ֹ ՝ ۚ ͷ ઃ ܭ ΍ ͦ ͷ ϓ ϥ ϯ ม ߋ ͷ ର Ԡ
  15. • [nodejs][stripe] stripe Λ node Ͱ࢖͏ (customer ৘ใͷొ࿥) • [AWS][Lambda]

    ϩʔΧϧͰ Lambda ༻ͷ nodejs εΫϦϓτΛ࣮ߦ͢Δ • [nodejs][stripe] stripe Λ node Ͱ࢖͏(୯ൃ ͷࢧ෷͍) • [nodejs][stripe] stripe Λ node Ͱ࢖͏ (subscription ఆظࢧ෷͍ͷ࡞੒) • [stripe][AWS] Stripe ͷ Webhook Λ API Gateway Ͱड͚औͬͯ Lambda Ͱॲཧ͢Δ • Stripeͷnode SDKΛ࢖ͬͯɺςετɾຊ൪ ͦΕͧΕͷAPIʹΞΫηε͢Δ • Node.jsͰStripeͷΧελϚʔΛ௥Ճ͢Δ • StripeͰϓϥϯ৘ใΛ·ͱΊͯ؅ཧ͢Δ
 
 http://qiita.com/wokamoto
 http://qiita.com/motchi0214
 S T R I P E ։ ൃ ͷ T I P S
  16. # W H AT 
 S A A S ఏ

    ڙ ͯ͠Α ͔ ͬ ͨ ͜ ͱ
  17. - ά ϩ ʔό ϧ Ͱ εέ ʔϧ ͞ ͤΔ

    ͜ ͱ ͕ Ͱ ͖ Δ - ཧ ૝ త ͳ Ω ϟ ο γ ϡ ϑ ϩ ʔ - ։ ൃ / α ϙʔ τ ͱ ސ ٬ ͷ ؔ ܎ ੑ ޲ ্ - ࣾ ಺ ͷ ։ ൃ εΩϧ ɾ Ϟ ν ϕʔ γ ϣ ϯ ͷ ޲ ্ S A A S ఏ ڙ Ͱ ಘ ͨ ϝ Ϧ ο τ
  18. - S a a S Ͱ ఏ ڙ ͢ Δ

    ͨ Ί ͷ D a s h b o a rd ։ ൃ ͸ P ro d u c t ෦ ෼ ͷ ։ ൃ ಉ ౳ ɺ ΋ ͠ ͘ ͸ ͦ Ε Ҏ ্ ʹ 
 ։ ൃ εΩϧ ͱ Ϧ ι ʔε ͕ ඞ ཁ S A A S ఏ ڙ Ͱ େ ม ͩ ͬ ͨ ͜ ͱ
  19. # H O W 
 A W S M A

    R K E T P L A C E ͱ ͸ ʁ
  20. - A W S Ϛʔ έ ο τϓ Ϩ Π

    ε ͸ ࡢ ೥ Α Γ ΋ 4 0 ˋ ΋ ଟ ͘ ɺ ඈ ༂ త ͳ ε ϐʔ υ Ͱ ੒ ௕ ͯ͠ ͍ · ͢ɻ - A W S M A R K E T P L A C E Ͱ ར ༻ Մ ೳ ͳ ੡ ඼ ͸ 6 , 0 0 0 Ҏ ্ AW S M A R K E T P L A C E ͷ ࢢ ৔ ಈ ޲
  21. - D a s h b o a rd ͷ

    ։ ൃ ͸ ඞ ཁ ͳ ͠ - ՝ ۚ ϩ δ ο Ϋ ΋ A W S ͕ ఏ ڙ - ୯ ମ ͷ A M I ɺ C l o u d F o r m a t i o n ΋ ର Ԡ - ՝ ۚ ମ ܥ ΋ ࣗ ༝ ౓ ͕ ͋ Δ 
 ʢ ࣌ ؒ / ݄ ɺ ϥ Πη ϯε ՝ ۚ ɺ A P I ՝ ۚ ͳ Ͳ ʣ AW S M A R K E T P L A C E ͷ ϝ Ϧ ο τ
  22. • ఏڙதͷProduct
 - AMI 8छྨ
 - CloudFormation 8छྨ • ར༻ঢ়گ


    - άϩʔόϧͰ͸29ΧࠃͰར༻
 - ւ֎ͰͷΞΫςΟϒϢʔβʔ
 ໿5200ΞΧ΢ϯτ [Case] AMIMOTO AMI ͷ৔߹
  23. # W H AT 
 A W S M A

    R K E T P L A C E ʹ ग़ ళ ͯ͠Α ͔ ͬ ͨ ͜ ͱ
  24. - U S ๏ ਓ ɺ U S ޱ ࠲

    - ϓ ϩ μΫ τ ͸ ӳ ޠ Ͱ ఏ ڙ - α ϙʔ τ ͸ ӳ ޠ Ͱ ఏ ڙ - A W S M a r k e t P l a c e ͷ ٻ Ί Δ η Ω ϡ Ϧ ςΟ ϙ Ϧ γ ʔ ʹ ४ ڌ AW S M A R K E T P L A C E ͷ ஫ ҙ ఺
  25. – T H A N K S ; ) “Think

    Big, Start Small, and Scale Fast”