fivenines

Practice / target 80%

Streams Practice

01

A stream receives two entries in the same millisecond. What part of the ID preserves ordering?

intro

Scenario

A burst of producer traffic lands two XADD calls on the same stream within a single millisecond.

02

Why does `XACK` affect consumer group state but not necessarily remove the stream entry?

intro

Scenario

A worker finishes processing an entry and acknowledges it, then someone checks the stream's length.

03

Compare `XREAD` from an ID with Pub/Sub subscription after reconnect.

applied

Scenario

A consumer crashed, restarted, and needs to continue from where it stopped receiving messages.

04

What can go wrong if a stream is never trimmed?

applied

Scenario

A stream has been collecting entries for months with no XTRIM and no MAXLEN on any XADD.

05

Why does a pending entries list matter before a consumer acknowledges work?

advanced

Scenario

A worker took an entry from its group and crashed before acknowledging that the work was done.

Ready to build

Design the system.

Put the learned theory into real-life practice and get architectural feedback.