StaffCoder
Kafka
KafkaJava 25Node.js 24Python 3.13
3 modules · 12 challengesSign up
Module 3 of 3 · 4 challenges

Kafka Consumers & Polling

Build consumer loops, read chosen partitions without a consumer group, seek by offset and by time, and size polls. Survive malformed records without losing the consumer.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

First Consumer Loop

Sign up to unlock
—No data yeteasy
About this challenge

The notification service reads the topic once at startup and exits, and every restart re-sends everything. Build a consumer loop that subscribes under a group with a defined starting position, polls with a timeout, exposes full record metadata, and stops cleanly when woken.

Solved in a browser IDE and graded by tests. Sign up to solve

Assign, Seek & Position

Sign up to unlock
—No data yeteasy
About this challenge

A backfill job needs one partition from a specific offset, and all anyone has is subscribe and hope. Read chosen partitions without joining a consumer group, seek to offsets, beginnings, ends and timestamps, report positions and end offsets, and refuse mixing subscribe with assign.

Solved in a browser IDE and graded by tests. Sign up to solve

Deserialization & Poll Sizing

Sign up to unlock
—No data yeteasy
About this challenge

One poll returns thousands of records and a single malformed value kills the consumer. Cap every poll, deserialize values into typed records, report a malformed record with its partition and offset and move past it, survive exceeding the poll interval, and make sparse polls wait for data.

Solved in a browser IDE and graded by tests. Sign up to solve

Replay Console

STAR
Solving it completes the module
—No data yeteasy
About this challenge

Support needs a replay tool: replay a topic from an offset, a time or the beginning, over chosen partitions and for a set count per partition, printing full metadata. Report and skip malformed records, stop at end-of-partition with the shortfall, and never touch a live consumer group.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.