SRE Capstone Project
Reading about reliability builds knowledge. Building a reliable service builds skill. This capstone project guides you through running a small application the way a real SRE team would, from objectives to postmortem. The finished project makes a strong portfolio piece.
Project Goal
Deploy a simple web application, define targets, monitor it, break it on purpose, recover, and document what you learned. The application can stay small. A to-do list, a URL shortener, or a notes app works well. The practice matters more than the app.
Project Map
[1 Pick App] → [2 Set SLOs] → [3 Build Pipeline] → [4 Add Monitoring]
↓
[8 Write Postmortem] ← [7 Chaos Test] ← [6 Load Test] ← [5 Alerts and Runbooks]
Stage 1: Pick and Deploy the App
- Choose a small web app with a database.
- Host it on a free or low-cost cloud tier, or on a local container setup.
- Run at least two copies behind a load balancer.
- Describe the setup in infrastructure code.
Stage 2: Define Objectives
Write two or three SLIs and matching SLOs. A sample set:
| SLI | SLO |
|---|---|
| Share of requests that succeed | 99.5 percent over 30 days |
| Share of requests faster than 400 ms | 95 percent over 30 days |
Calculate the error budget in minutes and note it in the project notes.
Stage 3: Build a Pipeline
- Run tests on every code change.
- Build a package once and deploy the same package everywhere.
- Add a rollback command and test it.
Stage 4: Add Monitoring
- Collect the four golden signals.
- Build one dashboard with latency, traffic, errors, and saturation.
- Add a synthetic check that visits the home page and one key action every minute.
- Write structured logs with a request identifier.
Stage 5: Alerts and Runbooks
- Create alerts for fast error budget burn and for a failed synthetic check.
- Write a runbook for each alert with checks, fixes, and verification steps.
- Send alerts to a phone or chat app you watch.
Stage 6: Load Test
- Use a free tool to ramp virtual users in steps.
- Record the point where latency climbs.
- Fix the first bottleneck, such as a missing database index.
- Repeat the test and compare charts.
Stage 7: Chaos Experiment
Choose one small failure and predict the result before you run it.
| Experiment | Prediction |
|---|---|
| Stop one app copy | Users see no errors; load balancer routes around it |
| Block database access for 60 seconds | Errors rise; alerts fire; recovery in under two minutes |
Compare the result with the prediction and note any surprise.
Stage 8: Postmortem
Write a blameless postmortem for the experiment. Include a summary, timeline, impact, contributing factors, what went well, what went poorly, and action items with owners.
Suggested Schedule
| Week | Focus |
|---|---|
| 1 | App, hosting, infrastructure code |
| 2 | SLOs, pipeline, rollback |
| 3 | Monitoring, dashboard, logs |
| 4 | Alerts, runbooks, synthetic checks |
| 5 | Load testing and fixes |
| 6 | Chaos experiment and postmortem |
Deliverables
- A repository with application code and infrastructure code
- A one-page SLO document
- Dashboard screenshots
- Two runbooks
- A load test report
- A postmortem document
Self-Assessment Rubric
| Skill | Beginner | Strong |
|---|---|---|
| Objectives | Targets written | Budget calculated and tracked |
| Monitoring | One chart | Golden signals plus synthetic checks |
| Incident skills | Fix found | Clear timeline and lasting actions |
| Automation | Manual deployment | Pipeline with rollback |
Tips
- Keep the app tiny and spend effort on reliability work.
- Write notes as you go, so the final write-up flows quickly.
- Share the project with a friend and ask for feedback.
- Watch cloud costs and delete test resources when finished.
Key Takeaways
The capstone ties every major SRE idea together in one hands-on project. Define goals, measure, alert, test, break, recover, and write down the lessons.
