API Route Builder
Design REST-style methods and routes for product requirements such as creating users, updating email, searching products, and nested comments.
- Time
- 6-9 minutes
- Concept
- REST API route design
Pick a concept, play a short scenario, and leave with a sharper backend mental model.
Paths group games into a study order. You can also filter by backend concept below.
Design REST-style methods and routes for product requirements such as creating users, updating email, searching products, and nested comments.
Inspect authentication scenarios and choose safe backend decisions for tokens, scopes, sessions, CSRF, and object-level authorization.
Predict cache hits and misses as requests flow through an LRU cache, then experiment with TTL behavior and stale data tradeoffs.
Diagnose dependency failures and choose circuit breaker, timeout, fallback, retry, half-open, and bulkhead strategies that reduce blast radius.
Guide browser API requests through CORS decisions covering origins, preflight, credentials, exposed headers, and cache safety.
Choose the correct HTTP status code for realistic backend scenarios and learn the response semantics behind each answer.
Diagnose retry scenarios and choose safe idempotency behavior for payments, emails, imports, orders, PUT updates, and scarce inventory.
Route simulated traffic across backend servers using round robin, weighted round robin, least connections, and random strategies.
Tune workers, retries, and dead-letter behavior while jobs move through an async queue with failures and poison messages.
Triage production incidents by choosing useful metrics, logs, traces, queue signals, database evidence, request ids, and alerting strategies.
Choose rate limiting designs for realistic backend traffic patterns, from public APIs and login endpoints to queues, webhooks, and retry storms.
Choose safe zero-downtime database migration steps for expanding schemas, backfilling data, rolling out indexes, enforcing constraints, and recovering from failures.
Choose the best database index for simplified schemas and queries while learning full scans, covering indexes, sort avoidance, and composite order.
Defend database invariants from concurrent requests by choosing transactions, locks, constraints, snapshot reads, and optimistic concurrency.
Investigate webhook requests and choose safe handling for signatures, replay windows, retries, idempotency, and durable acknowledgement.