fivenines

Practice / target 80%

Core Data Types Practice

01

Choose a Redis type for each workload: session token with TTL, profile fields, online users, leaderboard, delayed jobs, replayable audit log. Justify each by dominant operation.

intro

Scenario

You are designing the storage layout for a web application with six distinct workloads.

02

When does a hash reduce keyspace overhead compared with many string keys, and when might separate keys still be useful?

intro

Scenario

A teammate proposes folding fifty `user:42:*` string keys into a single `user:42` hash to save memory.

03

Why does a sorted set need both uniqueness and ordering by score?

applied

Scenario

You are explaining the design of the leaderboard type to someone who has only used lists and sets.

04

Compare list, stream, and Pub/Sub for a worker system where consumers may disconnect.

applied

Scenario

You are picking the backbone for a job system whose worker processes crash and reconnect regularly.

05

Which type choice would you use for a replayable audit log, and why would Pub/Sub be the wrong fit?

advanced

Scenario

An auditor requires that every recorded event can be re-read later, in order, by any number of independent readers.

Ready to build

Design the system.

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