fivenines

Practice / target 80%

Transactions Practice

01

Predict the lifecycle of this sequence: `MULTI`, valid `SET`, wrong-arity `GET`, `EXEC`. Which phase detects the problem?

intro

Scenario

A client walks through a transaction that contains one well-formed command and one with the wrong number of arguments.

02

Predict the reply shape when `EXEC` runs three queued commands and the middle command hits a wrong-type error.

intro

Scenario

Three commands were queued and EXEC runs them, but the second targets a key of the wrong type.

03

Why does `WATCH balance` not lock `balance` against other clients?

applied

Scenario

A client WATCHes a balance key, reads it, and prepares a MULTI block while other clients stay active.

04

What state belongs on the client while a transaction is being built?

applied

Scenario

A connection is halfway through building a transaction, and you are auditing what the server holds for it.

05

Compare pipelining, `MULTI/EXEC`, and scripts for round trips, interleaving, and branching.

advanced

Scenario

You must pick a mechanism for a multi-step operation and are weighing the three batching tools the server offers.

Ready to build

Design the system.

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