Camunda 8 Zeebe Broker Explained for Beginners

A Simple Guide to How Camunda 8 Really Works

Introduction

If you are new to Camunda 8, one term appears everywhere:

Zeebe Broker

But what exactly is it?

Is it a database?
Is it a message broker?
Is it the workflow engine?

👉 The short answer:
Zeebe Broker is the heart of Camunda 8.

In this blog, we explain:

  • What Zeebe Broker is

  • Why it exists

  • How it works internally

  • How it executes BPMN

  • How it scales

  • What beginners must know to use it safely


What Is the Zeebe Broker?

The Zeebe Broker is the distributed workflow engine behind Camunda 8.

It is responsible for:

  • Executing BPMN workflows

  • Persisting workflow state

  • Handling messages & jobs

  • Distributing work across nodes

  • Guaranteeing fault tolerance

Unlike Camunda 7, Zeebe is:

  • Event-driven

  • Log-based

  • Clustered by design

👉 Think of Zeebe as a workflow state machine built on a distributed log.


Zeebe Is NOT a Traditional Database or Queue

Many beginners misunderstand Zeebe.

❌ What Zeebe is NOT

  • ❌ Not a relational database

  • ❌ Not Kafka

  • ❌ Not RabbitMQ

  • ❌ Not just a job queue

✅ What Zeebe actually is

  • A distributed workflow engine

  • An append-only log system

  • A stream processor

  • A state machine for BPMN


High-Level Architecture

Core components

BPMN WorkflowZeebe BrokerDistributed LogStream ProcessorState (in-memory + RocksDB)

Other Camunda 8 services:

  • Operate – Monitoring & debugging

  • Tasklist – Human tasks

  • Optimize – Analytics

  • Identity – Auth

  • External Workers – Business logic


How Zeebe Executes a BPMN Workflow

Let’s say you deploy and start a process.

Step-by-step

  1. BPMN is deployed to Zeebe

  2. You start a workflow instance

  3. Zeebe writes an event to the log

  4. Stream processors consume the event

  5. State is updated

  6. Next BPMN step is activated

  7. Jobs are created for workers

  8. Workers complete jobs

  9. New events are written

Event → Log → Processing → State → Next StepEvent

👉 Everything in Zeebe is event-driven.


Why Zeebe Uses an Append-Only Log

This is the most important concept.

Traditional engines (Camunda 7)

BPMN → DB transaction → Commit → Next step

Zeebe (Camunda 8)

BPMNEventAppend to LogProcessUpdate State

Benefits

✔ Horizontal scalability
✔ Fault tolerance
✔ Replayable state
✔ High throughput

Trade-off

❌ No traditional rollback
❌ Eventual consistency
❌ Requires compensation logic


What Is a Zeebe Partition?

A partition is a slice of workflow data.

  • Each partition has:

    • A leader

    • One or more followers

  • Leaders handle:

    • Writes

    • Job creation

  • Followers replicate data

Partition 1Broker A (Leader) Partition 2Broker B (Leader) Partition 3Broker C (Leader)

👉 Partitions are how Zeebe scales horizontally.


What Happens If a Broker Node Fails?

Zeebe is fault-tolerant.

Failure scenario

  1. Broker A crashes

  2. Partition leader disappears

  3. A follower is elected leader

  4. Processing continues

👉 No data loss.
👉 No manual restart required.


How Jobs & Workers Work in Zeebe

Zeebe does not execute your business logic.

Instead:

  1. BPMN reaches a Service Task

  2. Zeebe creates a job

  3. External workers poll for jobs

  4. Worker executes logic

  5. Worker completes job

  6. Zeebe continues workflow

BPMN → Job → Worker → Complete → Next Step

👉 All logic is external.


Why Zeebe Feels “Different” from Camunda 7

ConceptCamunda 7Camunda 8 (Zeebe)
ExecutionDB transactionsEvent-driven
StateRelational DBLog + State store
RollbackYesNo (compensate)
Java delegatesYesNo
External tasksOptionalMandatory
ScalingVerticalHorizontal
ConsistencyStrongEventual

Beginner Mistakes 🚨

❌ Expecting synchronous execution
❌ Expecting rollback
❌ Embedding Java logic
❌ Modifying variables like a DB row
❌ Treating Zeebe like Kafka
❌ Ignoring worker failures


When Zeebe Is the Right Choice

✔ Cloud-native systems
✔ Microservices
✔ High throughput
✔ Event-driven architectures
✔ Distributed orchestration
✔ New greenfield projects


When Zeebe Is NOT the Right Choice

❌ Heavy transactional workflows
❌ Strong ACID requirements
❌ Human-task-heavy systems
❌ On-premise monoliths
❌ Teams new to async systems


Interview Question (Very Common)

Q: What is the Zeebe Broker in Camunda 8?
A: A distributed, log-based workflow engine that executes BPMN using event sourcing.


Final Takeaway

Zeebe is not “Camunda 7 but faster”.
❗ It is a completely different execution model.

If you understand:

  • Event sourcing

  • Append-only logs

  • External workers

  • Eventual consistency

Then Zeebe is incredibly powerful.

If not, Camunda 7 is often the safer choice.


💼 Professional Support Available

If you are facing issues in real projects related to enterprise backend development or workflow automation, I provide paid consulting, production debugging, project support, and focused trainings.

Technologies covered include Java, Spring Boot, PL/SQL, Azure, and workflow automation (jBPM, Camunda BPM, RHPAM).

Comments

Popular posts from this blog

jBPM Installation Guide: Step by Step Setup

Scopes of Signal in jBPM

OOPs Concepts in Java | English | Object Oriented Programming Explained