AWS re:Invent 2022 -- Building next-gen applications with event-driven architectures (API311-R)

2022年12月08日



-
Enterprise integration patterns
Event-driven architecture
Handling event duplication using idempotency


Enterprise integration patterns

The many facets of coupling


Asynchronous point-to-point model (queue)


[17:15 - 19:11]
Asynchronous point-to-point model (router)


[19:11 - :]
Asynchronous message-router model (bus)


https://aws.amazon.com/eventbridge

EventBridge content-based routing rules



Event-driven architecture

[24:29]
Properties of events


[26:21]
Sparse events vs. full state descriptions


[27:18]
Considerations with sparse events


[27:32]
Considerations with full state descriptions


[29:13]
Choreograph events between domains using subscriptions


[30:00]
Orchestrate a business process within a domain, resulting in a published event

[31:20]
Step Functions

[31:47]
Visual workflows

[32:28]
Step Functions integration types
- Optimized integrations
- AWS SDK integrations

[33:44]
Request Response

[34:36]
Wait for a Callback (.waitForTaskToken)

[36:26]
Run a Job (.sync)

[37:12]
Better together: Orchestration + Choreography



[37:53]
Handling event duplication using idempotency

[43:42]
Idempotency tokens

[]
Successful idempotent request sequence
https://awslabs.github.io/aws-lambda-powertools-python/2.4.0/utilities/idempotency/

[44:52]
Retried idempotent request sequence

[45:44]
Idempotency duration

[46:05]
Example: SQS.FIFO SendMessage API

[46:50]
Example: Step Functions StartExecution API
https://man7.org/linux/man-pages/man1/uuidgen.1.html

[46:50]
Example: EventBridge PutEvents API


[47:52]
Example: EventBridge idempotent identifier


[48:15]
Idempotency by any other name would smell as sweet

https://www.enterpriseintegrationpatterns.com/ramblings/09_correlation.html


Resources
https://serverlessland.com/reinvent2022/api311

https://serverlessland.com/?src=reinvent2021
https://serverlessland.com

https://aws.amazon.com/cn/training/learn-about/serverless/

/img/2022/12/AWS_reInvent2022_Building_nextgen_applications_with_event_driven_architectures_API311R_0x.png

-

Category: AWS Tags: public

Upvote


Downvote