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.

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