Servers & Networks · Systems & Data Engineering

Messaging & Event-Driven Systems

46 short lessons with interactive exercises. You start from zero and move from beginner to advanced.

  • 46 lessons
  • 3 levels
  • Arabic & English
  • Start free

What you will learn

  • Choose between a queue and Pub/Sub, and tell commands from events
  • Design consumers, acknowledgements, retries and a DLQ to match delivery guarantees
  • Manage message ordering, versioning, backpressure and broker monitoring
  • Apply Outbox, Saga, Event Sourcing and CQRS in real distributed systems

About this course

A complete conceptual course on designing asynchronous systems with queues, Pub/Sub and message brokers. It starts with why we need messaging, synchronous vs. asynchronous, the queue, the producer and the consumer, the message broker, background jobs, Pub/Sub, events, commands vs. events, retries, the dead letter queue, ordering, RabbitMQ and Kafka. It moves on to competing consumers, consumer groups, acknowledgements, delivery semantics (At-Most-Once, At-Least-Once and Exactly-Once), idempotent consumers, retry strategies and exponential backoff, poison messages, the dead letter queue in practice, event schemas, message versioning, queue monitoring and scaling consumers. It then reaches event-driven architecture, eventual consistency, the Outbox pattern, the Saga pattern, Event Sourcing, CQRS, Kafka partitions, ordering guarantees, backpressure, broker high availability, disaster recovery, cross-service events, message observability and broker security, and ends with hands-on design studies (a notification system, an order processing system, and choosing RabbitMQ or Kafka). A theory course with no runnable code, full of comparisons, varied analogies and production examples.

Skills

  • Messaging systems
  • Kafka
  • Event-driven architecture
  • Distributed systems

Lessons

Every lesson is short, and the exercises after it lock in what you learned.

Beginner level

14 lessons
  1. Why Do We Need Messaging?
  2. Synchronous vs Asynchronous Communication
  3. Queue
  4. Producer & Consumer
  5. Message Broker
  6. Background Jobs
  7. Publish/Subscribe (Pub/Sub)
  8. Events
  9. Commands vs Events
  10. Retry
  11. Dead Letter Queue
  12. Message Ordering: An Introduction
  13. RabbitMQ - The Concept
  14. Kafka - The Concept

Intermediate level

15 lessons
  1. Competing Consumers
  2. Consumer Groups
  3. Acknowledgements
  4. At-Most-Once
  5. At-Least-Once Delivery
  6. Exactly-Once - The Concept
  7. Idempotent Consumers
  8. Retry Strategies
  9. Exponential Backoff
  10. Poison Messages
  11. DLQ in Practice
  12. Event Schema
  13. Message Versioning
  14. Queue Monitoring
  15. Scaling Consumers

Advanced level

17 lessons
  1. Event-Driven Architecture
  2. Eventual Consistency
  3. Outbox Pattern
  4. Saga Pattern
  5. Event Sourcing - An Introduction
  6. CQRS — An Introduction
  7. Kafka Partitions
  8. Ordering Guarantees
  9. Backpressure
  10. Broker High Availability
  11. Disaster Recovery
  12. Cross-Service Events
  13. Message Observability
  14. Broker Security
  15. Notification System Design
  16. Order Processing System Design
  17. RabbitMQ vs Kafka

Start your first lesson today

Get the Lammah app and pick “Messaging & Event-Driven Systems” from the courses. Each lesson takes a few minutes, and you can start free.

Learn tech skills easily, for freeGet the app