fivenines

Practice / target 80%

Pub/Sub Practice

01

A publisher sends to a channel with zero subscribers. What persists in Redis afterward?

intro

Scenario

A service publishes a status update to a channel at a moment when nobody happens to be subscribed.

02

Why does `SUBSCRIBE` change the command lifecycle of that client?

intro

Scenario

A connection that was issuing normal commands sends SUBSCRIBE and its relationship with the server changes.

03

Compare Pub/Sub and streams for a chat notification that must survive reconnect.

applied

Scenario

A chat application must show notifications even to users whose connections dropped for a minute.

04

A pattern subscriber and channel subscriber both match one publish. What must the server count and deliver?

applied

Scenario

One client subscribed to `news.*` as a pattern and another subscribed to the channel `news.tech`; a message is published to `news.tech`.

05

Why are output buffer limits especially important for Pub/Sub clients?

advanced

Scenario

An operations review is deciding which client classes need strict output-buffer ceilings.