Free through lesson 3

Messaging & Microservices for Beginners

From spotting the real limits of a monolith, to drawing boundaries, to the armor every synchronous call needs (timeouts, retries, circuit breakers), Kafka topics and offsets, sagas and the outbox, and finally the decisions "don't split" and "go back to the monolith." Over 30 lessons, you'll get to the point where you can estimate, in numbers, what gets harder when you split. Every output shown comes from actually running Kafka 4.3.1 and Node.js 26.9 processes and measuring them.

about 1.5 hours in total (estimate)

Slides for this course (for classes and in-house training) →

Curriculum

The 30 lessons are grouped into 6 chapters. Working through them in order from chapter 1 is recommended, but feel free to jump to whatever interests you. * This course has more prerequisites than any other course on this site. Docker for Beginners is required, and it assumes you've finished API Design for Beginners, Redis & NoSQL for Beginners, and Monitoring & Observability for Beginners. * Lessons that run multiple services or a broker can't run in the browser, so try them with Node.js and Kafka on your own machine. Short snippets that only check the decision logic can be run right in the browser.

Chapter 1 — What Happens When You Split (lessons 1–5)

First, we look at all the work that appears the moment you split. By the end, you'll have the evidence to say with confidence, "We're better off not splitting."

Chapter 2 — Connecting Synchronously (lessons 6–10)

We add, one at a time, the armor you always need when calling a service directly: timeouts, retries, and circuit breakers. By the end, you'll have built a setup where a single failure doesn't spread to everything.

Chapter 3 — Connecting Asynchronously (lessons 11–18)

We stop calling and switch to streaming events instead. You'll start Kafka on your machine and see topics, partitions, offsets, and consumer groups in action.

11

Stop Calling: Queues vs. Logs

A queue deletes what you take; a log keeps what you read. Both are "async," but the design differs. We run a consumer added later on Kafka.

about 2 min 🔒 Basic
12

Starting Kafka and Creating a Topic

In KRaft mode there's no ZooKeeper, just one process. Start it locally, create a topic, and inspect what's inside.

about 2 min 🔒 Basic
13

Partitions: The Unit of Parallelism and Ordering

The key decides the destination. The same key goes to the same partition, and order is kept only there. Includes a measurement of that guarantee breaking when you add partitions.

about 2 min 🔒 Basic
14

Offsets and Consumer Groups

How far you've read is a number per group. Add consumers and the partitions are shared out; the extra one sits idle. We measure it.

about 2 min 🔒 Basic
15

Producers: Acks and "I Thought I Sent It"

We measure the 3 acks levels with 50,000 messages each, and honestly note that a single-node local setup shows no difference.

about 2 min 🔒 Basic
16

Consumers: When to Commit

When you record the offset decides whether you lose messages or process them twice. We run a consumer that never commits and see.

about 2 min 🔒 Basic
17

How Far Is Ordering Guaranteed?

You only read in send order within a partition. We send 9 messages to 3 partitions and look at the order they're read.

about 2 min 🔒 Basic
18

Reprocessing and Poison Messages

Rewind the offset and you can reread, but side effects run twice too. We also decide how to route around one broken message that stalls the queue.

about 2 min 🔒 Basic

Chapter 4 — Keeping Data Consistent (lessons 19–24)

Once the databases are split, you lose both transactions and JOINs. We plug those holes one by one with eventual consistency, sagas, idempotency, and the outbox.

Chapter 5 — Operations (lessons 25–28)

You'll learn to isolate failures across split services and ship them in an order that doesn't break anything. Finally, you'll change the shape of messages safely.

Chapter 6 — Making the Call (lessons 29–30)

We put numbers on the cost of splitting and estimate it. Finally, we face the option of "going back to the monolith" head-on and wrap up the course.

Once you've finished all 30 lessons, head to the place where your split services actually run: Kubernetes for Beginners. A membership unlocks every course.