Request-Reply Messaging Patterns: Real-World Use Cases with AsyncAPI 3.0
summary
AsyncAPI 3.0 introduces a send/receive operation and a reply keyword to model request‑reply patterns directly, replacing awkward pub/sub hacks. Examples show a static order flow (order queue → status queue), a dynamic routing pattern using a reply topic in headers to choose response channels at runtime, a single‑channel WebSocket chat, and a Slack-style single channel carrying two message shapes distinguished by the messages attribute and a reply object. Implementations run to about ten lines, enable parallelism, fault tolerance and decoupling.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:25Messaging patterns examples
- 2:53Request-reply pattern
- 4:38AsyncAPI 3.0 changes
- 5:41Static order service
- 8:31Dynamic response channel
- 11:01WebSocket chat app
- 13:07Slack reaction ack
- 16:37Summary & Q&A
related talks
01h 02mMessaging Patterns for Modern Software Solutions
01h 01mThe Unsung Hero of Modern Software: Asynchronous Messaging
47mEverything Loosely Coupled - Advanced Integration Patterns and Their Trade-Offs
48mIntegration- and conversation-patterns for microservices
56mDistributed Messaging patterns
22mAsync API Specification 2.0
59mSucceeding at Reactive Architecture
01h 03mOpenAPI and AsyncAPI, when to use which and why
