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

AWSとLINE Bot Server

AWSとLINE Bot Server

AWSとLINE Bot Serverのサービス構成をご紹介します。

Norimitsu Yamashita

February 20, 2019
Tweet

More Decks by Norimitsu Yamashita

Other Decks in Technology

Transcript

  1. - 2 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    +"* , • LINE • GraphQL • PWA %- • AWS • Heroku • JavaScript • Ruby  • /' •  ! $ @nori3tsu (10. &#) )  
  2. - 3 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    AWS  LINE Bot Server 1, LINE Bot  2, LINE Bot Server  3, LINE Bot Server  4, AWS + LINE Bot Server   5, 
  3. - 4 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    1, LINE Bot  • LINE #  • LINE$  % ◦ LINE Messaging API ▪  (*'+ ▪ (*)(+ ◦ LINE Pay ▪ LINE !" • LINE Bot Server &
  4. - 5 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    2, LINE Bot Server  LINE Bot Server ①   ② HTTP  ③ LINEMessaging API ④ ! LINEWebhook  
  5. - 6 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    • HTTPS  POST •   / • 1+,' • !! !! • 1-( $ • (LINE Pay#*))%&IP 3, LINE Bot Server ."
  6. - 7 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    • Pattern1: API Gateway + Lambda + Kinesis • Pattern2: Lightsail (Express + Bull + Redis) • Pattern3: Fargate (Express, Bull) + ElastiCache (Redis) 4, AWS + LINE Bot Server  ! #$: Express: Node.jsWeb   Bull: Node.js  Redis "
  7. - 8 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 1: API Gateway + Lambda + Kinesis AWS Cloud API Gateway Lambda Kinesis Lambda Lambda  HTTPS        Pull
  8. - 9 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 1: API Gateway + Lambda + Kinesis •   • $   •   • #%Kinesis&  : • $  ◦ Lambda  ◦ Kinesis!"%'&  :
  9. - 10 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 2: Lightsail (Express + Bull + Redis) AWS Cloud Lightsail  HTTPS   Worker Client      Pull
  10. - 11 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 2: Lightsail (Express + Bull + Redis) •  • IP  : •   ◦ OS  ,  ,  , ◦ , Ansible , ...   :
  11. - 12 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 3: Fargate (Express, Bull) + ElastiCache (Redis) AWS Cloud Fargate  HTTPS   Worker Client      Pull ElastiCache for Redis
  12. - 13 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    Pattern 3: Fargate (Express, Bull) + ElastiCache (Redis) •    •   : • (  :
  13. - 14 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    •   ◦ Lightsail (Express + Bull + Redis) •   ◦ API Gateway + Lambda + Kinesis (or SQS) •    ◦ Fargate (Express, Bull) + ElastiCache (Redis) 5,