Skip to main content
All of the catalog
Scenario

Event-Driven Architecture

An 'orders' topic on Kafka (Strimzi) with a producer/consumer flow already running, and producers ramped to five times what the consumer group can process. Orders are piling up. Diagnose the backlog from Kafka's own tooling and from the lag dashboard, then restore throughput by scaling the group up to the topic's partition count, and no further, because a fourth consumer gets no partition and adds nothing.

DataVerifiedk3dkind
Definition on GitHub

What you'll do

  • Diagnose a lagging consumer group: name the topic, the group and the per-partition backlog from kafka-consumer-groups.sh and from the lag dashboard
  • Restore throughput by scaling the consumer group, and prove from Kafka's own lag telemetry that the backlog actually drained while producers stayed ramped
  • Respect the partition ceiling: three partitions means at most three useful consumers, so scale to the ceiling rather than past it

Stages

  1. 1event-flow

    The topic, a balanced producer/consumer pair, and the metrics that make lag visible

    consumer-group-resetorders-topicproducer-consumerkafka-metricskafka-lag-dashboard
  2. 2build-lag

    Ramp producers to 3x rate so the single consumer falls permanently behind

    ramp-producers

Prerequisites

--deploy-prereqs installs these into the lab for you. They are listed so you know what the scenario depends on.

ingressdata/kafkamonitoring/metricsmonitoring/grafana

Get updates

New scenarios and faults, release notes, and news about hosted labs if and when there is some. A few emails a month at most.

We'll email you about new releases, new lab content and paid offerings such as hosted labs, courses and workshops. Unsubscribe any time.