Skip to content

Message Brokers: Kafka, RabbitMQ, NATS

How Kafka, RabbitMQ and NATS deliver messages, what each one guarantees, the patterns around them and how to choose — for backend interviews, with Go exercises.

Basic14 modules105 lessons28 exercises≈ 12 h

Tests check every exercise: in your browser and in the cloud

To repeat the lessons' commands at home, run the three brokers in Docker. The exercises run in the browser and need none of this.

  1. Docker Desktop

    Download Docker Desktop for your system. On Linux, Docker Engine is enough.

  2. Kafka

    The official Kafka quickstart shows how to start a broker from the apache/kafka Docker image.

  3. RabbitMQ

    The RabbitMQ download page describes how to start a broker with its management UI from the rabbitmq Docker image.

  4. NATS

    Run the NATS server from the nats Docker image with JetStream switched on: the server needs its -js flag, and the nats image page shows how to pass it. Then install the nats CLI.

Syllabus