Event
A piece of data announcing that something changed in the system. It doesn't say what to do: it only tells what happened.
Example
«Order 1234 created» and «$50 payment approved» are events.
Test yourself: Event
Event-driven architecture
An event tells the system what to do with the change.
It only notifies: «order 1234 created». What to do is up to each consumer.
0/1
â–¶ PlayLessons that use it
NoSQL databases
Beyond tables
SQL or NoSQL
Picking the right database
Measure and optimize
Measure first
Normalize and denormalize
Each piece of data in one place
Sagas
Steps that can be undone
Message brokers
A middleman for messages
Publish-subscribe
1 message, many listeners
Event-driven architecture
Announcing what happened
Event sourcing
Keep the story, not just the ending
CQRS
Write on one side, read on the other
Real time: long polling, WebSockets and SSE
Letting the server speak first
Service discovery
Where is that service?
Designing WhatsApp
2 billion messages a day
Designing Twitter
1 billion tweets a day
