Communication / 3 / 5
Pub/sub and event logs
One event, many teams that need it. How a topic decouples them, and what offsets, consumer groups, keys and schemas add.
- 13 min
- Intermediate
- 12 steps
- Checkout p95
- 900 ms
- Failed orders
- 0 %
- Lag (events)
- 0
- Out of order
- 0 /min
- request
- reply
- redelivery
- duplicate
- lost
Numbers are a model scenario, not measurements
The real request
Orders → EmailRequest
POST /send-receipt HTTP/1.1
Host: email.internal
{
"order_id": 1"ord_9051",
"user_id": "u_42"
}
Response
HTTP/1.1 200 OK
X-Response-Time2: 410 ms
order_id— The same few fields are sent to every service in a different request.X-Response-Time— The receipt alone takes 410 ms. Three calls in a row add up to almost a second.
Course: 42 lessons
01 Foundations
02 Scaling
03 Data & storage
04 Communication
05 Reliability
06 Architecture
07 Security
08 Shipping
09 Whole systems
10 Business processes