# Capstone: Ship a Production-Grade Backend

> Build, deploy and operate one complete backend service that brings together everything on this roadmap. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/backend/capstone-project
Last updated: 2026-11-28

Build, deploy and operate one complete backend service that brings together everything on this roadmap.

Advanced · about 40 hours · difficulty 4/5

Learn first: [Continuous Integration and Delivery](https://www.internhack.in/roadmaps/tracks/backend/ci-cd), [Containers with Docker](https://www.internhack.in/roadmaps/tracks/backend/docker), [Background Jobs and Task Queues](https://www.internhack.in/roadmaps/tracks/backend/background-jobs), [Structured Logging](https://www.internhack.in/roadmaps/tracks/backend/structured-logging), [API and System Design Reviews](https://www.internhack.in/roadmaps/tracks/backend/api-design-review)

Reading about backends is not the same as running one. This capstone is the portfolio piece that shows an interviewer you can design, build, ship and operate a real service. Pick a domain you care about: a booking system, a team task tracker, a mini e-commerce store, a job board.

### Required features

- A documented **REST or GraphQL API** with an OpenAPI or schema file, consistent errors, pagination and validation.
- **Authentication** (sessions or JWT, plus one OAuth login) and **role-based authorization** with object-level checks.
- A **relational database** with migrations, indexes that match your queries and at least one multi-step transaction.
- **Caching** of one hot read path with an invalidation strategy.
- **Background jobs** for email or file processing, with retries and a dead-letter view.
- One **real-time** feature (notifications over SSE or WebSockets) or **file uploads** to object storage.

### Engineering quality

- Unit and integration tests running in **CI**, with the pipeline building a **Docker** image and deploying automatically.
- Configuration through environment variables, secrets never in the repo.
- Structured logs with request ids, RED metrics, and a health endpoint.
- Security basics: hashed passwords, rate-limited login, security headers, dependency scanning.

### Prove it works

- A **load test** report with p95 latency at a target throughput and the bottleneck you fixed.
- A short **README** with an architecture diagram, setup steps and trade-offs you made.
- A **runbook** entry: what you would check if error rates spiked.

### Stretch goals

Split one component into a separate service over a queue, add tracing with OpenTelemetry, or run it on Kubernetes.

You are done when a stranger can clone the repo, run it with one command, read your design decisions and hit a live deployed URL, and you can explain every choice in an interview.

## Key concepts

- **Choose a domain and write a design doc**
- **Documented API with auth and RBAC**
- **Database with migrations and indexes**
- **Caching and background jobs**
- **Tests and CI/CD to a live URL**
- **Logs, metrics and health checks**
- **Load test and performance report**
- **README, diagram and runbook**
- **Stretch: service split, tracing or Kubernetes**

## Mini project

Build and deploy the capstone service described here, publish the repository with its README, design doc and load test report, and share the live URL.

## Check yourself

Could you walk an interviewer through your capstone's request path from DNS lookup to database row, naming every component and why it is there?

## Free resources

- [The Twelve-Factor App](https://12factor.net/) (12factor.net)
- [The System Design Primer](https://github.com/donnemartin/system-design-primer) (GitHub)
- [Build your own X](https://github.com/codecrafters-io/build-your-own-x) (GitHub)

Previous: [API and System Design Reviews](https://www.internhack.in/roadmaps/tracks/backend/api-design-review)

## More in Putting It All Together

- [API and System Design Reviews](https://www.internhack.in/roadmaps/tracks/backend/api-design-review)
- [Capstone: Ship a Production-Grade Backend](https://www.internhack.in/roadmaps/tracks/backend/capstone-project)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Backend Developer Roadmap](https://www.internhack.in/roadmaps/tracks/backend)
