Decoupling
Separating 2 parts of a system so one can change or go down without breaking the other.
Example
With a queue in the middle, if the email service goes down for 10 minutes, orders keep coming in.
Test yourself: Decoupling
Message brokers
With a broker, if the receiving service is down, the message is kept until it returns.
The broker holds the message for the 10 minutes the receiver is down and delivers it when it's back. The sender never blocks.
0/1
â–¶ PlayLessons that use it
Message brokers
A middleman for messages
Message queues
Don't keep them waiting
Publish-subscribe
1 message, many listeners
Microservices done right
Microservices without traps
Event-driven architecture
Announcing what happened
REST APIs
Resources and verbs
Designing WhatsApp
2 billion messages a day
Designing Netflix
1 billion videos watched a day
