Messaging — learning path
From "why asynchronous at all" to stream processing with watermarks, through the three brokers this site treats as first-class (RabbitMQ, Kafka, Redis Streams). Every pattern page has a Broker differences section that shows how the same idea is implemented on each broker, in Go and in Laravel. The completeness checklist behind this section is the Enterprise Integration Patterns catalogue (Hohpe & Woolf): every one of its 65 patterns is covered by a chapter below.
How to use
- Chapters 01–08 are the vocabulary; read them first even if you already run a broker.
- The three broker deep dives (RabbitMQ, Kafka, Redis Streams) are references; the comparison chapter is the decision guide.
- Reliability patterns (outbox, saga, DLQ, retry) are where production incidents come from; do their labs.
- Finish with Self-check on every chapter.
Legend
| Badge | Meaning |
|---|---|
| Must-know | asked in almost every interview; you meet it at work constantly |
| Important | frequent; expected at senior level |
| Good to know | extra depth that sets you apart |
| WIP / Todo | shown next to a chapter only while it is still being written |
How to read this page. Groups are in reading order and each one builds on the previous; short on time, take the Must-know chapters of every group first. The last column says in one line what the chapter gives you. Every chapter ends with a Self-check: questions & answers block (open/close all, filter by level); all questions are collected in the Interview Q&A hub.
Chapters
33 chapters · 33 complete
Fundamentals
| Chapter | Level | What you learn |
|---|---|---|
| Messaging Fundamentals | Must-know | Messaging replaces "call and wait" with "hand it to a broker and move on": the sender and the receiver stop needing each other at the same moment, and in exchange you accept duplicates… |
| Integration Styles & Channels | Important | There are four ways to make separate applications share data (files, one database, remote calls, messages), and once you pick messages you still have to design the channels: which kinds exist… |
| Delivery Guarantees | Must-know | A delivery guarantee is a promise about what happens when something fails between two steps; every real system errs towards loss (at-most-once) or towards duplicates (at-least-once)… |
| Message Acknowledgment | Must-know | An acknowledgment is the moment the broker stops being responsible for a message; where you put it decides whether a crash loses the message or repeats it. |
| Ordering & Partitioning | Must-know | Order in messaging exists only inside one lane (a queue, a partition, a stream); you choose a key that sends related messages to the same lane and accept that one slow message blocks the lane behind it. |
| Idempotent Consumers & the Inbox Pattern | Must-know | Every broker that never loses a message is willing to deliver it twice, so the consumer must make the second delivery harmless: a stable key, a unique constraint… |
| Message Design & Schema Evolution | Important | A message is a public API with invisible consumers that deploy on their own schedule; its envelope, its payload shape and its evolution rules decide whether you can change it without a flag day. |
| Message Transformation | Good to know | Systems almost never agree on the shape of a message, so integration needs small, single-purpose steps that change its shape (Translator, Normalizer, Mapper), its content (Enricher… |
Brokers
| Chapter | Level | What you learn |
|---|---|---|
| RabbitMQ in Depth | Must-know | RabbitMQ is an Erlang broker in which producers publish to exchanges, bindings copy messages into queues, and the queue type you pick (classic, quorum or stream) decides how safe… |
| Kafka in Depth | Must-know | Kafka is a replicated, partitioned, append-only log: producers append, consumers keep a bookmark, and nothing is deleted because somebody read it. |
| Redis Streams & Pub/Sub | Important | Redis gives you three messaging primitives with three different contracts: Pub/Sub (broadcast, nothing stored), lists (a queue that forgets on pop) and Streams (a log with consumer groups, acks and claiming). |
| Broker Comparison & Decision Guide | Must-know | one side-by-side matrix of RabbitMQ, Kafka and Redis Streams (plus NATS JetStream, Pulsar, SQS/SNS, Google Pub/Sub and Laravel's database/SQS drivers), and a decision guide built on it. |
| Other Brokers | Good to know | Beyond RabbitMQ, Kafka and Redis Streams there are ten more systems you will meet in real projects, and queue and log are useful starting models… |
Routing & Consumers
| Chapter | Level | What you learn |
|---|---|---|
| Routing Topologies | Important | Routing topology is the map that decides which consumer receives which message: exchanges and bindings on RabbitMQ, topic and key choice on Kafka, stream keys and consumer groups on Redis Streams. |
| Advanced Routing | Good to know | Eleven routing patterns from Enterprise Integration Patterns that decide where a message goes, how one message becomes many, and how many messages become one again. |
| Consumer & Endpoint Patterns | Important | A Message Endpoint is the small piece of code where your application touches a broker; the other eight endpoint patterns are the decisions you make inside it (who asks for messages, who filters them… |
| Competing Consumers & Scaling Consumers | Must-know | adding consumers is how a messaging system scales its work, and each broker has a different unit that limits it: a message in RabbitMQ, a partition in Kafka, an entry in a Redis Streams group… |
| Request-Reply over Messaging & REST vs AMQP | Important | how to get an answer back through a broker (correlation id, return address, reply queue, RabbitMQ Direct Reply-To, Kafka reply topics, Redis reply streams)… |
Reliability Patterns
| Chapter | Level | What you learn |
|---|---|---|
| Transactional Outbox Pattern | Must-know | An outbox commits the business change and the intent to publish in one database transaction, then lets a separate relay deliver that intent. |
| Saga Pattern | Must-know | A saga coordinates committed local transactions and business compensations across boundaries that cannot share one atomic transaction. |
| Dead-Letter Queue (DLQ) | Must-know | A DLQ preserves work that normal processing cannot currently complete, together with evidence and a recovery decision. |
| Retry, Backoff & Delayed Delivery | Must-know | Retry repeats a safe operation after a recoverable failure; backoff controls when, and a budget controls when to stop. |
| Durable Workflows & Jobs | Important | A durable workflow remembers progress, decisions and waits after the process executing it disappears. |
Event-Driven & Streams
| Chapter | Level | What you learn |
|---|---|---|
| Event-Driven Architecture | Must-know | Event-driven architecture lets a service announce facts so that other services react on their own schedule, trading call-time coupling for eventual consistency and new operational work. |
| Event Sourcing & CQRS | Important | Event sourcing stores the facts that changed a system and derives state from them; CQRS separates the model that changes data from the model that answers questions. |
| Change Data Capture (CDC) | Important | CDC turns the committed changes in a database's own log into an ordered stream of row events that other systems can apply. |
| Stream Processing | Good to know | Stream processing runs a query that never finishes over data that never completes, so it must decide which clock to group by, when a group is done, and where its state lives. |
Operations
| Chapter | Level | What you learn |
|---|---|---|
| Backpressure & Flow Control | Important | Backpressure is how a slow part of a pipeline tells faster parts to wait, so queues stay bounded and latency stays honest. |
| Messaging Observability & Tracing | Important | Async systems break the call stack, so observability has to be rebuilt from message headers, broker counters and a few well-chosen metrics. |
| System Management Patterns | Good to know | Eight patterns let you look into, steer, probe and clean a running messaging system without changing the business code that sends and receives the messages. |
| Laravel Queue Internals | Important | How Laravel 13 turns dispatch() into a JSON payload, stores it in a driver, leases it to a worker, and records success, release, or failure, read from the framework source. |
| Testing Messaging Systems | Important | Asynchronous code is tested by removing nondeterminism layer by layer: fakes for logic, contracts for messages, real brokers for wiring, fault injection for failure. |
| Messaging Security | Good to know | A broker concentrates every important business event in one place; securing it means deciding who may connect, publish, consume and administer, and what an attacker learns from bytes on the wire… |