AWSとLINE Bot Server

AWSとLINE Bot Server

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

08ceda3cf12353200928f267a4e8e110?s=128

Norimitsu Yamashita

February 20, 2019
Tweet

Transcript

  1. Copyright ©2019 Grandream Inc. All Rights Reserved. AWSLINE Bot Server

    [AWS] Meguro.dev  LT @nori3tsu
  2. - 2 - Copyright ©2019 Grandream Inc. All Rights Reserved.

    +"* , • LINE • GraphQL • PWA %- • AWS • Heroku • JavaScript • Ruby  • /' •  ! $ @nori3tsu (10. &#) )  
  3. - 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, 
  4. - 4 - Copyright ©2019 Grandream Inc. All Rights Reserved.

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

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

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

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

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

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

    Pattern 2: Lightsail (Express + Bull + Redis) •  • IP  : •   ◦ OS  ,  ,  , ◦ , Ansible , ...   :
  12. - 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
  13. - 13 - Copyright ©2019 Grandream Inc. All Rights Reserved.

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

    •   ◦ Lightsail (Express + Bull + Redis) •   ◦ API Gateway + Lambda + Kinesis (or SQS) •    ◦ Fargate (Express, Bull) + ElastiCache (Redis) 5, 
  15. Copyright ©2019 Grandream Inc. All Rights Reserved. - 15 -