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

Event-driven serverless applications with Amazo...

Event-driven serverless applications with Amazon EventBridge - AWS Meetup Stockholm October 16 2019

Event-driven serverless applications with Amazon EventBridge. Presented at AWS Meetup Stockholm on October 16, 2019.

@gunnargrosch

Gunnar Grosch

October 16, 2019
Tweet

More Decks by Gunnar Grosch

Other Decks in Technology

Transcript

  1. Opsio internal workshop 2018-11-23 @gunnargrosch Stockholm AWS Meetup 2019-10-16 Gunnar

    Grosch @gunnargrosch Event-driven serverless applications with Amazon EventBridge
  2. GUNNAR GROSCH • Evangelist and Co-founder at Opsio • Almost

    20 years of experience in the industry with a background in development, operations, sales and management • Helping the community as an organizer of AWS User Groups, AWS Community Day Nordics, ServerlessDays Stockholm and Serverless Meetups • Advocate for serverless and chaos engineering @gunnargrosch
  3. “Serverless allows you to build and run applications and services

    without thinking about servers. It eliminates infrastructure management tasks such as server or cluster provisioning, patching, operating system maintenance, and capacity provisioning.” Amazon Web Services @gunnargrosch
  4. WHAT IS SERVERLESS? • No infrastructure provisioning – no management

    • Automatic scaling • Pay for value • Highly available and secure @gunnargrosch
  5. “Serverless technologies have the ability to truly democratize applications. A

    child in their bedroom can build and operate an application that serves millions of users. Serverless distills applications down to pure business value which unlocks unprecedented potential in application developers.” Richard Boyd @gunnargrosch
  6. THE AWS SERVERLESS PLATFORM Compute @gunnargrosch AWS Lambda AWS Fargate

    Amazon Simple Storage Service Amazon Elastic File System Amazon DynamoDB Amazon Aurora Serverless Storage Data stores
  7. Amazon Simple Notification Service THE AWS SERVERLESS PLATFORM Integration @gunnargrosch

    API Proxy Analytics Amazon Simple Queue Service AWS AppSync Amazon EventBridge Amazon Kinesis Amazon Athena Orchestration AWS Step Functions Amazon API Gateway
  8. WHAT IS AN EVENT? Event [ih-vent] (dictionary.com) • something that

    happens or is regarded as happening; an occurrence, especially one of some importance • something that occurs in a certain place during a particular interval of time • the outcome, issue or result of anything @gunnargrosch
  9. WHAT IS AN EVENT? • Events are facts: The image

    was uploaded • Events are temporal: The image was uploaded 2019-10-16 18:34:21 • Events are immutable: The image was uploaded 2019-10-16 18:34:21 – no matter what you do afterwards @gunnargrosch
  10. COMMANDS VS EVENTS Command • Has an intent • Directed

    to a target • One-to-one CreateOrder ProcessOrder InvoiceOrder @gunnargrosch Event • Is a fact • For others to observe • One-to-many OrderCreated OrderProcessed OrderInvoiced
  11. HOW IT USUALLY WORKS Storage Databases Analytics … @gunnargrosch Events

    Functions Event sources File stored Data changed Detection API call Business logic
  12. ARCHITECTURE WITH EVENT ROUTER @gunnargrosch Delivery Service Order Service Client

    Invoicing Service Analytics Service Event Router Asynchronous • Decouples downstream processes • Allows multiple subscribers with filters
  13. ARCHITECTURE WITH EVENT ROUTER @gunnargrosch Delivery Service Order Service Client

    Invoicing Service Analytics Service Event Router Asynchronous • Decouples downstream processes • Allows multiple subscribers with filters
  14. ARCHITECTURE WITH EVENT STORE @gunnargrosch Order Service Client Event Router

    Asynchronous • SNS to SQS is near guaranteed with 100 010 retries Functions Event Store Services Service
  15. AMAZON EVENTBRIDGE • Fully managed, pay-as-you-go • Native integration with

    SaaS providers • Integrated with over 90 event sources and 15 targets • Send events from your own applications • Easily build event-driven application architectures • Now with CloudFormation support! @gunnargrosch
  16. Amazon EventBridge Amazon Simple Storage Service SAMPLE S3 WITH EVENTBRIDGE

    @gunnargrosch AWS Lambda Client AWS Lambda Amazon Simple Queue Service
  17. AWS Step Functions Amazon EventBridge SAMPLE SAAS WITH EVENTBRIDGE @gunnargrosch

    AWS Lambda SaaS Provider Amazon Simple Queue Service AWS Lambda Amazon DynamoDB
  18. Amazon Aurora Serverless Amazon EventBridge SAMPLE CUSTOM EVENTBRIDGE EVENT @gunnargrosch

    AWS Lambda On-premise Monolith Amazon Simple Queue Service
  19. SERVERLESSDAYS STOCKHOLM – OCTOBER 24 • A developer-oriented conference about

    serverless technologies • Several talks with AWS in focus: • What can Clausewitz teach us about serverless? Richard Boyd, AWS • What to do with your data in a serverless world Angela Timofte, Trustpilot • How to build a full-stack serverless airline ticketing web app Heitor Lessa, AWS • CI/CD in the serverless era Efi Merdler-Kravitz, Lumigo • How Amazon EventBridge transforms serverless development James Beswick, AWS • Included in the ticket is a workshop of choice on October 25 • More info and tickets: https://stockholm.serverlessdays.io/ @gunnargrosch Promo code: AWS_UG_STHLM