A 24-week, assessment-gated curriculum that takes you from "writes Rails features" to "designs, operates, and defends backend systems at senior level — and passes big-tech loops."
This is not a tutorial collection. Every module has learning objectives, hands-on labs with acceptance criteria, an interview Q&A bank with answers, and a gated assessment you must pass before moving on. One production-grade capstone runs through all 24 weeks.
Free to use, fork, and adapt. See Using this repo at the bottom.
You'll get the most out of this if you:
- Can build a Rails CRUD app without a tutorial — models, associations, controllers, migrations, RSpec.
- Have shipped something to production, even small, and have some sense of what went wrong.
- Are aiming at a senior backend role and want depth, not a certificate.
It is probably wrong for you if:
- You're new to Rails or to programming. Build two or three apps first — The Odin Project or the official Rails Guides are better starting points, and this will still be here.
- You want interview prep only. Phase 6 alone won't work without the depth underneath it, and you'd be better served by NeetCode plus a system-design book.
- You want a passive course. Roughly 60% of the value here is in the labs, and they take real hours.
Not sure? Do Module 00 — a 90-minute closed-book diagnostic that tells you where you actually stand and what to skip. It's designed to be the first thing you do.
Language note: Rails is the spine, but the material is deliberately not Rails-only. Modules 05, 06, 09, and 12–19 are framework-agnostic and transfer directly to Django, Laravel, Spring, or Node. If you work in another stack, the labs still apply — swap ActiveRecord for your ORM.
Interview skill decays if you cram it. So two tracks run in parallel from week 1:
| Track | Modules | When | Purpose |
|---|---|---|---|
| Depth Track | 01–16 | Mon–Fri | Become the engineer. Real systems knowledge. |
| Interview Track | 17–19 | Sat (+ 20 min daily drills) | Become the candidate. DSA, system design, behavioral. |
Phase 6 (weeks 19–24) is where the Interview Track goes full-time and the Depth Track becomes review. If you skip the Saturday track for the first 18 weeks, this program will fail you.
| Phase | Weeks | Modules | Gate |
|---|---|---|---|
| 0. Placement | 0 | 00 — Baseline Assessment | Sets your track & skip-list |
| 1. The Ruby You Don't Know | 1–3 | 01 Object model & metaprogramming · 02 Memory, GC, concurrency | Gate 1 |
| 2. Rails, Deeply | 4–7 | 03 Rack & Rails internals · 04 ActiveRecord · 05 PostgreSQL | Gate 2 |
| 3. APIs & Security | 8–10 | 06 API design & protocols · 07 AuthN/AuthZ & AppSec | Gate 3 |
| 4. Scale & Async | 11–14 | 08 Caching · 09 Jobs, queues, events · 10 Testing & quality | Gate 4 |
| 5. Systems Beneath Rails | 15–18 | 11 Architecture · 12 Networking & app servers · 13 Linux, containers, deploy · 14 Observability & reliability · 15 Performance · 16 Distributed systems | Gate 5 |
| 6. Interview Machine | 19–24 | 17 DSA · 18 System design · 19 Behavioral & senior signals | Final Loop |
Full week-by-week map: CURRICULUM.md Track your progress: PROGRESS.md
A multi-tenant event ticketing & payments platform, built incrementally across all 24 weeks.
It was chosen because it is the smallest system that legitimately forces every senior topic: high-contention inventory (seat holds → locking, isolation levels), money (double-entry ledger, idempotency, exactly-once effects), third-party integration (webhooks, retries, signing), multi-tenancy (isolation, authorization, noisy neighbors), spiky traffic (caching, rate limiting, queueing, load shedding), and operations (SLOs, tracing, zero-downtime deploys, incident drills).
It is also a genuinely good interview story. Spec: capstone/README.md
Everything is scored on one 4-point rubric. Level 3 is the hiring bar for senior.
| Level | Name | Descriptor |
|---|---|---|
| 1 | Novice | Can follow a recipe. Needs the answer given. |
| 2 | Working | Solves the stated problem correctly. Doesn't see the failure modes. |
| 3 | Proficient (senior bar) | Solves it, names the tradeoffs, anticipates failure modes, explains why not the alternatives. |
| 4 | Expert | Reasons from first principles, quantifies with real numbers, designs for the org and for change over time. |
- Module checks — short, self-scored, at the end of each module file.
- Phase gates — 5 graded gates in
assessments/. You need ≥3.0 average with no dimension below 2 to advance. - Final mock loop — a full 6-interview big-tech simulation.
Rubric details and how to self-grade honestly: assessments/README.md
qa/ holds ~350 rapid-fire interview questions with answers, tagged by difficulty.
Module Q&A is deep and discussion-style; these are recall drills.
| Bank | Questions |
|---|---|
| qa/ruby.md | Language, object model, runtime, concurrency |
| qa/rails.md | Rails internals, ActiveRecord, Rack |
| qa/postgres.md | Indexes, planner, MVCC, transactions, ops |
| qa/api-design.md | HTTP, REST, GraphQL, gRPC, versioning, webhooks |
| qa/security.md | AuthN/AuthZ, OWASP, crypto, secrets |
| qa/distributed-systems.md | Consistency, replication, consensus, queues |
| qa/infra-networking.md | TCP/TLS/HTTP, Linux, containers, k8s, observability |
| qa/behavioral.md | Senior signals, LP-mapped stories |
Drill protocol: 20 min/day. Answer out loud before revealing. Anything you get wrong goes
into a personal qa/miss-list.md and gets re-drilled at 1 day, 3 days, 1 week, 1 month.
Recognition is not recall — if you can't say it aloud, you don't know it.
Pick one at placement. The 24-week map assumes Standard.
| Track | Hours/week | Duration | Fits |
|---|---|---|---|
| Intensive | 30–35 | 16 weeks | Between jobs, full-time prep |
| Standard (default) | 15–20 | 24 weeks | Employed, serious about switching |
| Sustainable | 8–10 | 40 weeks | Employed, no hard deadline |
Standard weekly shape:
Mon–Thu 90 min concept block + 60 min lab (Depth Track)
Fri 120 min capstone integration
Sat 180 min Interview Track (DSA + system design mock)
Daily 20 min Q&A spaced-repetition drill
Sun off — or Q&A miss-list only
Non-negotiable: write something every week. A design doc, an ADR, a postmortem, a benchmark writeup. Senior is a communication level as much as a technical one, and interviews test it directly.
Two paths. Docker is recommended, and not only for convenience — several labs need Linux
kernel interfaces (/proc/<pid>/smaps_rollup, strace, dmesg, cgroups) that macOS and Windows
simply do not have. On those hosts the native path leaves parts of modules 02 and 13 unrunnable.
Requires only Docker Desktop or Docker Engine with Compose v2.
git clone https://github.com/<your-username>/ror-training.git
cd ror-training
docker compose up -d
docker compose exec app bash
# inside the container:
ruby -v && ruby -e 'p RubyVM::YJIT.enabled?'
psql "$DATABASE_URL" -c 'select version()'
redis-cli -u "$REDIS_CACHE_URL" pingEnable the Postgres extensions once, from your host:
docker compose exec db psql -U postgres -c 'CREATE EXTENSION IF NOT EXISTS pg_stat_statements'The environment is configured for the labs rather than for comfort, and a few choices are themselves part of the material:
| Service | Notes |
|---|---|
app |
Ruby with YJIT on, plus strace, lsof, tcpdump, jemalloc, and the profiling gems. Runs with SYS_PTRACE so tracing other processes works. |
db |
PostgreSQL 17 with pg_stat_statements and auto_explain preloaded, lock waits logged, and a deliberately small shared_buffers so you can observe real buffer pressure in EXPLAIN (ANALYZE, BUFFERS). |
redis-cache |
allkeys-lru, no persistence — on localhost:6379 |
redis-queue |
noeviction, AOF on — on localhost:6380 |
k6 |
Load testing. docker compose run --rm k6 run /scripts/your-test.js |
Two Redis instances is deliberate. It's module 08's lesson made concrete: a cache wants LRU eviction and no persistence; a queue must never evict, because an evicted job is a silently lost job. Sharing one instance between them is a real and common production bug, so the environment doesn't let you form the habit.
jemalloc is installed but not preloaded, because lab 2.3 asks
you to measure the difference yourself. Inside the container, jemalloc-on and jemalloc-off
toggle it.
Verified on: Docker 29.4 / OrbStack, arm64 (Apple Silicon) — Ruby 3.4.10 +YJIT,
PostgreSQL 17.9, both Redis instances, strace/perf/ltrace/gdb/lsof/tcpdump,
/proc/self/smaps_rollup, jemalloc, and rails new → db:create → query end to end.
Known gap: rbspy has no prebuilt gem for arm64 Linux, so it is absent on Apple Silicon.
Nothing is blocked by this — every lab that names rbspy offers rbtrace, vernier, or perf
alongside it, and all three are installed. If you specifically want rbspy, grab the
aarch64-unknown-linux-gnu binary from its
GitHub releases. Optional tooling is installed on a
best-effort basis so a single unavailable package never fails the build. Please open an issue if
you hit a different gap on your platform — x86 and other hosts are untested.
Fine on Linux. On macOS or Windows, expect to fall back to a container for parts of modules 02 and 13.
You need: Ruby 3.3+ (3.3 is the minimum for the YJIT labs — install the latest stable via
rbenv, asdf, mise, or your package
manager), PostgreSQL 16+, and Redis 7+.
ruby -v && ruby -e 'p RubyVM::YJIT.enabled?' # => true
gem install rails bundler
gem install memory_profiler stackprof vernier benchmark-ips derailed_benchmarks rbtrace
gem install rubocop brakeman bundler-audit
# rbspy is optional and has no arm64 Linux gem — install from its GitHub releases if you want it
# Load testing and HTTP tooling — install via your package manager
k6 version && jq --versionConfigure Postgres with shared_preload_libraries = 'pg_stat_statements,auto_explain' in
postgresql.conf and restart, or module 05 won't work as written.
The labs, and the gates. Roughly half the labs are standalone — write a thread pool, hunt a
memory leak, reproduce a deadlock in two psql sessions, implement a consistent hashing ring.
Those run directly in /workspace. The gates use it too: gate 2 has you run migrations under live
load, gate 5 is a blind incident simulation.
Your capstone is a separate repo and does not live here. Two ways to connect it:
| How | When | |
|---|---|---|
| From your host | Point the capstone at localhost:5432 (Postgres), localhost:6379 (cache), localhost:6380 (queue) — all published by this stack. |
Default. Simplest, and fine for most of the program. |
| Inside the container | Keep the capstone as a sibling directory and uncomment the ../gatekeeper:/gatekeeper volume in docker-compose.yml. |
From module 12 onward, where the Puma tuning, OOM, and probe labs need Linux. |
Note redis-queue is on 6380 from the host, because both instances listen on 6379 internally.
kind (or minikube), kubectl, and helm, for module 13.
These run on your host, not in the container.
Run the environment check at the top of Module 00 before week 1. Every line must pass.
Buy these three now; they carry the whole program:
- Designing Data-Intensive Applications — Kleppmann. The single highest-ROI book for senior backend interviews.
- The Complete Guide to Rails Performance — Nate Berkopec (speedshop.co). Rails-specific and unmatched.
- Release It! (2nd ed.) — Nygard. Where the reliability patterns you'll be asked about come from.
Per-module reading is listed inside each module file. All free resources are marked (free).
- Do module 00 honestly. It will tell you what to skip.
- Work modules in order. Do the labs. Reading about MVCC and reproducing a deadlock are different skills, and only one of them survives an interview follow-up question.
- Do not advance past a gate you failed. Re-do the weak dimension's labs and retake.
- Keep the capstone deployable at all times. A broken capstone means a broken story.
- Log everything in PROGRESS.md — including the things that took three attempts. That log becomes your behavioral story bank in module 19.
Fork it. PROGRESS.md and qa/miss-list.md are blank templates meant to be filled in — they're your working copies, and they only do their job if they're yours. Build the capstone in a separate repository of its own.
No reminders, no automation, no accounts. This is a directory of Markdown files plus a Compose file. Nothing tracks you, nothing expires, and it works offline. The Friday log entry and the daily Q&A drill are habits you keep yourself.
Adapting it:
- Not on Rails? Modules 05, 06, 09, and 12–19 are framework-agnostic as written. Swap ActiveRecord specifics in 03–04 for your ORM; the concepts and most labs survive.
- Less time? Use the Sustainable track (40 weeks) rather than cutting labs. Cutting labs cuts most of the value.
- Already senior, prepping for interviews? Module 00 → gates 4 and 5 to find the gaps → Phase 6.
- Teaching a team? The gates work as pairing exercises, and the game day in module 14 is better with more than one person.
Corrections and contributions are welcome. Technical accuracy matters more here than anywhere else — this material is used to prepare for interviews, and a confidently wrong answer is worse than no answer. If something is out of date, imprecise, or just wrong, please open an issue or a PR with a source. Same for broken links, version drift in the Docker setup, and interview formats that have changed.
What's most useful to add: more Q&A entries with correct answers, labs that make an abstract concept concrete, and corrections from people who've recently sat these interviews.
Sources. Everything here is synthesized from the resources cited in each module's Resources section — Kleppmann, Berkopec, Nygard, the Google SRE books, the PostgreSQL and Rails documentation, and the RFCs. Read the primary sources; this is a map, not a replacement.
License: MIT. Use it, fork it, teach with it, no attribution required — though a link back is appreciated if it helps you.