All learning paths · 5 concepts · 74 min
📨 Event-driven systems
A coat-check pile and guestbook, a shared notebook, a bank passbook, a holiday booking and numbered pen-pal letters.
- 📬Apache KafkaA giant shared notebook. Some apps write notes in it, and others read them, each at their own speed.
- 🧥Message queues vs event streamsA coat-check pile, where each ticket is handled once, versus a guestbook anyone can reread from any page.
- 📒Event sourcing and CQRSA bank passbook where every deposit is a new line never rubbed out, plus a balance board in the window.
- 🧳Sagas and distributed transactionsBooking a flight, hotel and car with three companies, and cancelling the earlier bookings if a later one falls through.
- 💌Vector clocks and ordering eventsPen pals who number their letters and note the latest number seen from every friend.