AWS Office Hours
bene@theodo.co.uk
Ben Ellerby
@EllerbyBen
@agwhi_
Ben Ellerby
@EllerbyBen
serverless-transformation
Alex White
Amazon EventBridge
@EllerbyBen
Amazon EventBridge is a serverless event bus that makes it easier to build event-driven applications at scale using events generated from your applications, integrated Software-as-a-Service (SaaS) applications, and AWS services.
@agwhi_
Enter EventBridge
@EllerbyBen
The biggest Serverless announcement since the release of AWS Lambda.
The key component to building state-of-the-art Serverless EDAs.
@agwhi_
@EllerbyBen
EventBridge Storming
@agwhi_
@EllerbyBen
@agwhi_
@EllerbyBen
Partner
@agwhi_
@EllerbyBen
EventBridge Schema Registry
@agwhi_
@EllerbyBen
EventBridge Schema Registry
"Event": {
"type": "object",
"properties": {
"ordinal": {
"type": "number",
"format": "int64"
},
"name": {
"type": "string"
},
"price": {
"type": "number",
"format": "double"
},
"address": {
"type": "string"
},
"comments": {
"type": "array",
"items": {
"type": "string"
}
},
"created_at": {
"type": "string",
"format": "date-time"
}
}
}
@agwhi_
@EllerbyBen
How to trigger an Event?
🤷♂️
Practical...
@agwhi_
@EllerbyBen
@agwhi_
How To Test Serverless
@EllerbyBen
@agwhi_
Isomorphic Ephemeral Testing Environments
@EllerbyBen
- 100% serverless architectures can be deployed to short lived environments.
- In "Serverless Flow" we spin up an environment per PR to run integration testing.
- There is 0 mocking, and the architecture is isomorphic to production
- This same approach can be taken for isolated load testing.
* Non-serverless components and 3rd parties add complexity
@agwhi_
Testing CI/CD
@EllerbyBen
@agwhi_
Traditional Testing Pyramid
@EllerbyBen
@agwhi_
Testing Honeycomb
@EllerbyBen
Unit
Integration
E2E
@agwhi_
Testing a Feature
@EllerbyBen
@agwhi_
How do we test an event was fired?
@EllerbyBen
@agwhi_
How do we test an event was received?
@EllerbyBen
@agwhi_
Or any other Service integration for that matter?
@EllerbyBen
@agwhi_
Maybe another tool...
@EllerbyBen
@agwhi_
How can you help?
@EllerbyBen
@EllerbyBen
@agwhi_
AWS Office Hours - Demo
By Ben Ellerby
AWS Office Hours - Demo
- 876