go-dojo
learn go · earn mastery
phase 3 · 3.4-redis

Redis from Go — rate limit, lock, cache-aside, pub/sub

prereqs 3.3-caching-fundamentals3.2-postgres
review intervals 7d 21d 60d drills redis-setnx-lock

The lesson for this task hasn't been written yet. The mastery criteria below is the shortest description of what you'll own when this task is green.

Mastery criteria

- Rate-limit the shortener via Redis INCR+TTL
- SETNX-based distributed lock (TOCTOU correctness on release accounted for)
- Cache-aside for slug lookups with explicit TTL strategy
- Pub/Sub chat between two processes working end-to-end

Verify

Run from your go-dojo repo root:

go-dojo verify 3.4-redis

This runs the task's go test suite in exercises/phase-3/3.4-redis/, commits the attempt to .go-dojo/attempts/, and updates your mastery.