Backend Fundamentals Roadmap: What Stays When You Change Languages
HTTP and API design, SQL and data modeling, indexes and transactions, caching and queues, security, logging, testing and deployment: six stages, one project to grow through them, and the books for each.
Two customers buy the last concert ticket in the same second. Both requests read "1 left", both pass the check, both save an order, and the venue now has one seat and two tickets. The developer knew the framework well: the ORM did exactly what the code asked, read the row and then write it. What was missing was not a framework feature but a fundamental: what a transaction at the database's default isolation level does and doesn't protect, and how to make the check and the update one atomic step.
The common misconception
The belief is that backend development is mostly knowing a framework well, and that HTTP, SQL, transactions and caching are details the framework handles for you. It's a fair belief at first. Modern frameworks do a lot: they parse requests, map URLs to code, turn objects into SQL, open transactions and offer caching in one line. A beginner can ship a working CRUD app without writing a single query.
But a framework implements mechanisms; it doesn't make your decisions. It can't know that a payment endpoint must survive a retried request, that a report needs an index, or that two users can race for the same row. Those decisions look the same in C#, Java, Python, Go and JavaScript, which is why they're the part worth learning first.
What backend work really involves
A backend engineer receives requests, validates them, applies business rules, stores and reads data, calls other services, and keeps all of it secure, observable and running. In practice most days go to data modeling, reading existing code, and finding out why something is slow or wrong in production.
The stages from zero to senior
Durations assume about 10 hours a week; at 20 hours, expect roughly half. Pick any one language and framework you like for the projects, and keep one project growing through all six stages. The examples follow HTTP as RFC 9110 defines it and PostgreSQL 19.
Stage 1: HTTP and API designAbout 1–2 months at 10 hours a week. Learn methods, status codes, headers and JSON, and what safe and idempotent mean: RFC 9110 defines GET, HEAD, OPTIONS and TRACE as safe, and PUT, DELETE and the safe methods as idempotent, so a repeated POST can do the work twice. Design resources and error responses on purpose. Postpone GraphQL, gRPC and API gateways. Build a small REST API, such as a library that lends books, and call every endpoint with curl. You're ready when you can choose the method and status code for each endpoint and explain what a retried POST would do.
Stage 2: SQL and data modelingAbout 2–4 months at 10 hours a week. Learn SQL by hand first: SELECT, JOIN, GROUP BY, keys, constraints, normalization and migrations. Then use an ORM and read the SQL it generates. Postpone NoSQL deep dives and advanced ORM features. Build your API's tables with foreign keys and unique constraints, and write its reports as plain queries. You're ready when you can design the tables for a new feature and write its queries without an ORM.
Stage 3: Indexes, transactions and concurrencyAbout 1–3 months at 10 hours a week. Learn how an index works (PostgreSQL creates B-tree indexes by default), how to read an execution plan, and what isolation levels promise. In PostgreSQL 19, Read Committed is the default, and Repeatable Read and Serializable can fail with serialization errors that your code must retry. Postpone sharding and replication internals. Build a slow query on realistic data and fix it with an index, showing the plan before and after; then reproduce the last-ticket race and fix it with a lock or a conditional update. You're ready when you can say why a query uses an index and what your transaction guarantees.
Stage 4: Caching, queues and background workAbout 1–2 months at 10 hours a week. Learn cache-aside, expiry and invalidation, then queues, background jobs and at-least-once delivery, which means consumers must be idempotent. Postpone running Kafka clusters and event sourcing. Build a cache for one slow endpoint and measure it, then move email sending to a queue with a consumer that ignores duplicates. You're ready when you can say how stale your cache may be and what happens when a message arrives twice.
Stage 5: Authentication, security, logging and testingAbout 2–3 months at 10 hours a week. Learn authentication versus authorization, sessions versus tokens, password storage with a slow algorithm such as Argon2id or bcrypt (as the OWASP cheat sheet recommends), parameterized queries, structured logs, and the difference between unit and integration tests. Postpone writing your own crypto or auth server. Build login with hashed passwords, role checks, logs with a request id, unit tests for the business rules and integration tests against a real database. You're ready when a test proves that one user can't read another user's data.
Stage 6: Deployment, production and the road to seniorOngoing. Learn to keep config in the environment and treat logs as event streams (two of the Twelve-Factor rules), to build once and deploy the same artifact everywhere, and to use containers, CI, health checks and monitoring. Then read about replication, partitioning and consistency. Senior work is trade-offs, failure modes and helping others decide. Postpone Kubernetes until you've deployed one simple service yourself. Build a pipeline that tests, migrates and deploys your API, then write a short design document for scaling it. You're ready for senior work when you can explain how your system fails before it does.
For Stages 1 and 2 the free official docs are enough to start: MDN's HTTP guide and the PostgreSQL tutorial. SQL Performance Explained is from 2012, but B-tree indexing hasn't changed, and its free web edition, Use The Index, Luke, is kept up to date. Khorikov's examples are in C#, but the ideas apply in any language. Read the second edition of Designing Data-Intensive Applications, not the 2017 first edition, and save its later chapters for Stage 6.
Common mistakes
Learning only through the ORM: never looking at the SQL it sends, until a page makes a hundred queries.
Ignoring HTTP semantics: POST for everything, or 200 with an error message inside.
Caching before measuring: adding a cache to hide a missing index, with no plan for stale data.
Testing only with mocks: fast tests that never touch a real database, and bugs that only show up in production.
How to show your work
Grow one project through all six stages and show the history: the README explains the design, a short decision log records why you chose each table, index and cache, and the pull requests show the before and after of each fix, such as the execution plan or the race condition. A strong final step is to rewrite a small part in a second language and note what stayed the same. That note is the whole point of this roadmap.
التعليقات (0)