Backend Track · Starter Track

Backend Engineering

Foundational server architecture covering REST/RPC contracts, relational indexing, background workers, caching, and distributed tracing.

API Contracts, Validation & Idempotency

APIs

Validate every incoming payload at the boundary (Zod / Pydantic), return consistent error envelopes, and require idempotency keys on non-idempotent mutations like payments.

Engineering AnalogyStrict type-checking at the network perimeter before business logic runs.
  • Never trust client-supplied user IDs, roles, or prices—derive authority from verified sessions.
  • Version breaking API changes cleanly.

Relational Modeling & Query Indexing

Databases

Design normalized tables with foreign keys, composite B-Tree indexes matching your WHERE/ORDER BY predicates, and explicit transactions for multi-step state transitions.

Engineering AnalogyA sorted book index so queries jump directly to matching pages instead of scanning cover-to-cover.
  • Inspect slow queries with EXPLAIN ANALYZE before adding caches.
  • Use connection pooling in serverless environments.

Background Queues, Retries & Workers

Async

Offload slow work—emails, document chunking, webhook delivery, LLM batch evals—to durable queues with exponential backoff and dead-letter queues.

Engineering AnalogyReturning an order ticket immediately at the counter while the kitchen prepares the meal asynchronously.
  • Keep synchronous HTTP handlers fast (<300ms when possible).
  • Design background jobs to tolerate duplicate delivery safely.

Observability, Rate Limits & Security

Operations

Emit structured JSON logs, distributed traces, and p95 latency/error metrics while protecting endpoints with rate limits, least-privilege secrets, and auth middleware.

Engineering AnalogyFlight recorder + perimeter security gates for production services.
  • Propagate trace IDs across frontend, API routes, and background workers.
  • Redact PII and credentials before logs leave your application.
Want to expand the Backend track?

Add subpages under src/app/backend/<subpage>/page.tsx and register them in src/data/tracks.ts.

Explore AI Track →All Tracks