Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

在 AWS 上建構基於事件驅動的應用

464 Aufrufe

Veröffentlicht am

在無伺服器運算可讓您建立和執行應用程式與服務,而無須擔心伺服器的問題。無伺服器應用程式不需要佈建、擴展和管理任何伺服器。您可以為幾乎任何應用程式類型或後端服務建立無伺服器應用程式,它可為您包辦執行和擴展高可用性應用程式所需的一切工作。

在這場線上研討中,我們將介紹如何從捕捉領域事件開始,通過AWS 無伺服器運算和應用程式相關的服務來建構基於事件驅動的應用,有關的服務包括: Amazon API Gateway、 AWS Lambda, Amazon DynamoDB, Amazon CloudWatch,以及一些領域驅動設計的概念。

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

在 AWS 上建構基於事件驅動的應用

  1. 1. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Kim Kao, Solutions Architect 23 Aug, 2018 AWS Serverless Event Driven Design
  2. 2. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Sponsor
  3. 3. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Agenda 1. 2. AWS 3. Lambda 4. 5. SAM CLI 6. Demo
  4. 4. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  5. 5. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, …
  6. 6. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  7. 7. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Eric Evans “Ubiquitous Language ” “Bounded Context ”
  8. 8. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Eric Evans
  9. 9. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved. ©2018, AmazonWebServices, Inc. or Its Affiliates. All rights reserved. ( )
  10. 10. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved. ©2018, AmazonWebServices, Inc. or Its Affiliates. All rights reserved. vs webserver .package Order UI Order service Inventory service Shipping service O rder UI Inventory service O rder service Shipping service
  11. 11. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved. ©2018, AmazonWebServices, Inc. or Its Affiliates. All rights reserved.
  12. 12. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS Lambda AWS Lambda + Amazon API Gateway • • •
  13. 13. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, …
  14. 14. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS Lambda ? • Linux • Process/Networking • • • •
  15. 15. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Node.js Python Java C# Go
  16. 16. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Handler() Context ID, ID public String handleRequest(Book book, Context context) { saveBook(book); return book.getName() + " saved!"; } Lambda
  17. 17. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS Lambda
  18. 18. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Lambda (push) (event) (Poll) Amazon API Gateway AWSLambda function Amazon DynamoDBAmazon SNS /order AWSLambda function Amazon S3 reqs Amazon Kinesis changes AWSLambda service function
  19. 19. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS Lambda • Static websites • Complex web apps • Packages for Flask and Express • Real time • MapReduce • Batch • Powering chatbot logic • Apps & services • Mobile • IoT </></> Amazon Alexa • Powering voice-enabled apps • Alexa Skills Kit IT • Policy engines • Extending AWS services • Infrastructure management
  20. 20. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, * API API ?
  21. 21. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, • API • API Key • SigV4 API • API • Lambda Amazon API Gateway
  22. 22. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, API Gateway • API • Amazon CloudFront DDoS • iOS, Android, and JavaScript SDK • Swagger API •
  23. 23. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, API Gateway Internet Mobile Apps Websites Services AWS Lambda functions AWS API Gateway Cache Endpoints on Amazon EC2 Amazon CloudWatch Monitoring Amazon CloudFront YOUR VPC Endpoints in Your VPC Regional API Endpoints All publicly accessible endpoints AWS Lambda functions
  24. 24. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Lambda AWS Lambda Amazon DynamoDB Amazon SNS Amazon API Gateway Amazon SQS Amazon Kinesis THE COMPLETE PLATFORM Amazon S3 AWS Step Functions
  25. 25. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  26. 26. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Seat occupied Menu offered Ordered 2 cups of Americano Paid Order received Coffee made up Customers Left Table Cleaned
  27. 27. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, • • • • ACTORS
  28. 28. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, /
  29. 29. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  30. 30. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved. ©2018, AmazonWebServices, Inc. or Its Affiliates. All rights reserved. Event Bus (pub/sub) Put event Event Event CloudWatch Event
  31. 31. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, HTTP/HTTPS/TCP traffic Remote Procedure Call Publish Event External System Email Persistence
  32. 32. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AdapterAmazon DynamoDB Adapter Amazon API Gateway Amazon CloudWatch Event Adapter Adapter AWS Lambda
  33. 33. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, • Isolated Domain Model • Domain – Stable • Interface – Hug Changes • Dependency Control • Vendor Lock issue ( J )
  34. 34. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Client Order Handler Order Domain Order API Order Table Order Created Event Barista Handler Make Up Domain Order Created Event Accept Created Order
  35. 35. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, • Cucumber-Java • Junit • AWS-SDK-Java
  36. 36. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, SAM Integrate with API Gateway Exposed Endpoint as Communication Adapter Lambda function as Facade Restricted Policies
  37. 37. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS SAM CLI AWS SAM Local 2018-05-08 Serverless Apps Lambda Proxy API Gateway docker-lambda Lambda https://github.com/awslabs/aws-sam-cli
  38. 38. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, SAM CLI
  39. 39. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, package
  40. 40. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AmazonS3 Amazon DynamoDB Amazon Kinesis AWS CloudFormation AWSCloudTrail Amazon CloudWatch Amazon Cognito AmazonSNSAmazon SES Cronevents DATA STORES ENDPOINTS CONFIGURATION REPOSITORIES EVENT/MESSAGE SERVICES AWS CodeCommit Amazon API Gateway Amazon Alexa AWSIoT AWSStep Functions
  41. 41. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Demo
  42. 42. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Behind the scenes
  43. 43. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  44. 44. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  45. 45. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8,
  46. 46. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Thank you!
  47. 47. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, Interested in Event Storming ? https://bit.ly/2kCZSau AWS: YikaiKao@ Line : YikaiKao WeChat : YikaiKao Twitter : @YikaiKao GitHub Repos
  48. 48. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved.8, AWS Facebook Taiwan Page
  49. 49. ©2017, AmazonWebServices, Inc. or its Affiliates. All rights reserved. Remember to complete your evaluations! 8, Remember to complete your evaluations!

×