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

Kafka Producers & Records

Send records the broker actually confirms, with keys, headers and explicit timestamps. Configure a producer that is shared, safe under concurrency, bounded and closed cleanly.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Fire and Confirm

Sign up to unlock
0%0 of 1 solvedeasy
About this challenge

The ingest service sends and moves on, so when the broker is unreachable records silently vanish. Build a producer that confirms every record through the client's delivery confirmation, fails visibly within the delivery timeout when the broker is gone, and flushes everything still in flight on close.

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

Headers, Keys & Timestamps

Sign up to unlock
—No data yeteasy
About this challenge

Records arrive as anonymous byte blobs: no trace id, no origin, and a meaningless timestamp. Send records with keys, headers and explicit timestamps, and prove each arrives byte-exact and is honoured by the topic's timestamp type.

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

Producer Configuration & Lifecycle

Sign up to unlock
—No data yeteasy
About this challenge

Every service builds its producer differently: one per request, some never closed, settings copied from a blog. Configure the producer to spec and prove the lifecycle rules: one shared instance safe under concurrent sends, a bounded wait when the buffer fills, a timed close, and an invalid setting rejected when the producer is built.

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

Ingest Gateway

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

An ingest gateway must forward events to Kafka and answer callers honestly: acknowledged means written. Build its shared producer to forward events with keys, tracing headers and timestamps, acknowledge a caller only after the broker confirms, and report the defined failure when delivery times out.

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.