More Related Content Similar to [NEW LAUNCH!] Introducti[NEW LAUNCH!] Introduction to event-driven architectures and Amazon EventBridge - MAD205 - New York AWS Summiton to event-driven architectures and Amazon EventBridge - MAD205 - New York AWS Summit.pdf (20) More from Amazon Web Services (20) [NEW LAUNCH!] Introducti[NEW LAUNCH!] Introduction to event-driven architectures and Amazon EventBridge - MAD205 - New York AWS Summiton to event-driven architectures and Amazon EventBridge - MAD205 - New York AWS Summit.pdf1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Introduction to event-driven architectures and
Amazon EventBridge
Mike Deck
Principal Solutions Architect
Amazon Web Services
M A D 2 0 5
Daniel Langer
Product Manager
Datadog
2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
A serverless event bus service for
SaaS and AWS services
• Fully managed, pay-as-you-go
• Native integration with
SaaS providers
• 15 target services
• Easily build event-driven
architectures
3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
200 OK
4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
504 Timeout
5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
400 Bad Request
{“errMsg”: “don’t want to”}
6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
400 Bad Request
{“errMsg”: “I’m playing”}
7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
400 Bad Request
{“errMsg”: “Noooooooooo”}
8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event-driven kids
429 Too Many Requests
{“status”: “tantrum”}
9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Topics for today
10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Monoliths and microservices
Monolith
Does everything
Microservice
Does one thing
11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
The end goal
And do it faster
12. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
13. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Synchronous APIs
201 201😀😐
15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Architecture v1
16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Architecture v2
17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Long-term architecture
18. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
[i-’vent]
20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Events are observable, not directed
21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
What do we do with these arrows?
22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event routers
23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event routers in AWS
AWS Service Characteristics
24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event routers for fan out
Event router
25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Intra-service events
createOrderApi
function
Amazon API
Gateway
Amazon SNS
topic
26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Intra-service events
createOrderApi
function
Amazon API
Gateway
Amazon SNS
topic
Queue Function
Operator
27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Intra-service events
createOrderApi
function
Amazon API
Gateway
Amazon SNS
topic
Kibana
dashboard
Queue Function Amazon Kinesis Data
Firehose
Amazon Elasticsearch
Service
Queue Function
Operator
28. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Synchronous APIs
201 201😀
30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Downstream failures
503 502😡
31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Events are asynchronous
32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
😐
Asynchronous events
201😀
33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
😐
Asynchronous events
201😀
34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
But wait, now the customer
won’t get their invoice!
35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
🤬
Event-driven resiliency
201
36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Inside the invoice service
Invoice service
37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
38. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
X
X
39. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
Event store
40. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
Event store
41. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
Event store
42. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
Event store
43. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Invoice service
Inside the invoice service
Event store
44. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event stores in AWS
AWS Service Characteristics
45. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Final architecture
46. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Event routing and storing
47. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
48. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Bridging the gap
AWS Cloud
?
49. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Polling
AWS Cloud
50. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
SaaS web hooks
AWS Cloud
51. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
52. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
A serverless event bus service for
SaaS and AWS services
• Fully managed, pay-as-you-go
• Native integration with
SaaS providers
• 15 target services
• Easily build event-driven
architectures
53. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
54. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
Event sources
55. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
56. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
Event
buses
57. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
58. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
"detail-type":
"source": "aws.partner/example.com/123",
"detail":
"ticketId":
"department":
"creator":
59. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
"detail-type":
"source": "aws.partner/example.com/123"
"detail":
"ticketId":
"department":
"creator":
"source":
60. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
"detail-type":
"source": "aws.partner/example.com/123",
"detail":
"ticketId":
"department": "billing"
"creator":
"detail":
"department": ["billing", "fulfillment"]
61. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
"detail-type": "Ticket Created"
"source": "aws.partner/example.com/123",
"detail":
"ticketId":
"department": "billing",
"creator":
"detail-type": ["Ticket Resolved"]
62. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge
AWS services
Custom events
SaaS apps Event source SaaS event bus
Custom event
bus
Default event
bus
Rules
AWS Lambda
Amazon Kinesis
AWS Step Functions
Additional targets
Targets
63. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Amazon EventBridge integration partners
64. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Common use cases
65. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Common use cases
66. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Onboarding a SaaS event source with EventBridge
Your account – 111111111111
SaaS partner account
AWS account ID
111111111111
AWS Region
us-east-1
67. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Onboarding a SaaS event source with EventBridge
Your account – 111111111111
SaaS partner account
68. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Onboarding a SaaS event source with EventBridge
Your account – 111111111111
SaaS partner account
69. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
70. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Datadog overview
SaaS monitoring platform
350+ integrations
Over 8,000 customers
Collects trillions of data points per day
71. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Zendesk powers Datadog’s customer experiences
Zendesk is the support platform behind
Datadog’s support system
Solutions team handles a very high volume
of tickets per day, ranging from feature
requests to troubleshooting
100+ support and solutions engineers using
Zendesk
72. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
24x7 worldwide service that customers
depend on to monitor their business
critical systems
Solutions team is core to ensuring that
customers can successfully use the
Datadog platform
Aim to minimize MTTR and maximize
customer satisfaction
Datadog does more with CX data
73. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Collecting Zendesk data: Original architecture
74. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Architecture with Amazon EventBridge
Zendesk account Datadog account
75. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Real-time routing
Support process requires prioritization and advanced routing based
on case complexity
Engineer capacity fluctuates, smarter routing allows for faster
case resolution
Support team can find all the relevant information in Zendesk
and Datadog
Best resources are identified without customers needing to raise
alarms or wait unnecessarily
76. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Streaming allows for more timely response to
event activity
Seamless integration into Datadog for
advanced analytics
Engineers spend time solving issues as
opposed to managing APIs
Zendesk’s systems are not hit as hard
Advantages of event-driven integration
77. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Related breakouts
MAD308: Scalable serverless architectures using event-driven design
Sam Dengler
3:45 PM – 4:45 PM | 3E – Red (Level 3)
MAD311: Developing serverless applications with .NET using AWS SDK and
tools
Steve Roberts
5:00 PM – 6:00 PM | 3E – Yellow (Level 3)
DEV11: Building event-driven applications with serverless and AWS
Jeremy Daly
4:00 PM – 4:30 PM | Dev Lounge – (Expo, 3B, Level 3)
78. Thank you!
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Mike Deck
@mikedeck