Web Development
The full server-side path: languages, databases, APIs, security, AI, architecture and running systems at scale.
A complete path to becoming a backend developer: how the web works, a server language, relational and NoSQL databases, API design and authentication, caching and security, AI-assisted development and AI features, testing and CI/CD, then architecture, messaging, real-time data and building for scale. Each subject links the official documentation.
The subjects follow the roadmap.sh Backend Developer roadmap.
A backend developer builds the part of an application users never see: servers, APIs, data storage and the infrastructure that keeps them running. Start with how a request actually travels from a browser to your code and back.
A network of networks moving packets with IP, delivered reliably by TCP (or quickly by UDP), routed between providers with BGP. Knowing the layers helps you read latency, timeouts and connection errors.
The request-response protocol of the web: a method, a URL, headers and an optional body in; a status code, headers and a body out. Learn the semantics of methods and status codes, and how HTTP/2 and HTTP/3 change the transport.
A human-readable name such as api.example.com, read right to left: top-level domain, the registered name, then subdomains. You rent it from a registrar and point it at servers through DNS records.
Somewhere for your code to run with a public address: shared hosting, a VPS, managed platforms such as Vercel or Render, containers on Kubernetes, or serverless functions. You trade control for less operations work.
Resolvers ask root, TLD and authoritative servers to turn a name into records — A/AAAA for addresses, CNAME for aliases, MX for mail, TXT for verification. Answers are cached for their TTL, which is why changes take time to spread.
A browser resolves the URL, opens a connection, sends the request, parses HTML into a DOM, fetches CSS and scripts, then lays out and paints. Backends influence this through headers, caching and response size.
You do not need to be a frontend expert, but you should be able to build a simple page that calls your API and understand what the browser does with your responses. HTML and CSS plus basic JavaScript are enough; JavaScript itself is covered under the language choice.
Choose one language and go deep: its standard library, package manager, a main web framework, testing tools and how it handles concurrency. Fundamentals transfer, so the choice matters less than finishing real projects.
Runs on Node.js, Deno or Bun with an event loop that handles many concurrent connections cheaply. Pair it with TypeScript and a framework such as Express, Fastify or NestJS; it is also the language of the browser.
Readable and productive, with Django for batteries-included apps and FastAPI or Flask for lighter APIs. Strong in data and machine learning, so popular where backends meet AI.
A compiled language with goroutines and channels, a fast standard net/http server and single static binaries. Common in cloud infrastructure, CLIs and high-throughput services.
A mature JVM language dominant in enterprises, mostly used with Spring Boot. Virtual threads in recent versions make blocking code scale far better than classic thread-per-request servers.
Microsoft's statically typed language on cross-platform .NET, with ASP.NET Core for web APIs and Entity Framework Core for data access. Excellent tooling and performance.
Powers a large share of the web, including WordPress. Modern PHP 8 with Composer and Laravel or Symfony is a fast way to ship conventional web apps.
An expressive language best known for Ruby on Rails, whose conventions let small teams build complete products quickly.
Memory safety without a garbage collector, enforced by the borrow checker. Web stacks such as Axum on Tokio deliver very low latency at the cost of a steeper learning curve.
Every line of backend code lives in version control: it records history, enables code review and drives CI/CD. Be comfortable branching, merging, rebasing and resolving conflicts.
The standard distributed VCS. Master the daily commands, understand commits as snapshots and branches as pointers, and learn rebase, revert and reflog for when things go wrong.
Hosted Git platforms add pull requests, code review, issue tracking, CI pipelines and package registries around your repository. Most teams pick one and build their workflow on it.
The biggest host and home of most open source. Learn pull requests and reviews, branch protection, GitHub Actions for CI, and Dependabot for dependency updates.
An all-in-one DevOps platform with merge requests, a built-in CI defined in .gitlab-ci.yml, a container registry, and a self-hostable edition popular with companies that keep code on-premises.
Relational databases store data in tables with typed columns and enforce relationships with keys and constraints, queried through SQL. They remain the default choice for most application data because of transactions and flexible querying.
An open-source, standards-focused database with JSONB, full-text search, rich index types and extensions such as PostGIS and pgvector. A safe default for new projects.
A widely deployed open-source database, owned by Oracle, using the InnoDB engine for transactions. Common in LAMP stacks and large web companies; watch its looser default SQL modes on older setups.
A community fork of MySQL started by its original developers. It stays largely compatible for everyday use but has diverged in features and replication.
Microsoft SQL Server, using the T-SQL dialect, tightly integrated with .NET and Azure SQL. Common in enterprises that run on the Microsoft stack.
A commercial database with PL/SQL, found in banks, telecoms and large enterprises. Powerful and expensive; most developers meet it in existing systems rather than new ones.
A serverless database stored in a single file and linked into your process. Great for tests, embedded and mobile apps, and small sites; writes are serialised, so heavy concurrent writing needs another database.
APIs are how clients and other services use your backend. Learn the main styles, when each fits, and how to describe an API precisely so others can integrate without reading your code.
Resources at URLs manipulated with HTTP methods, stateless requests and meaningful status codes. Design nouns not verbs, version deliberately, and paginate collections.
APIs that exchange JSON bodies. Agree on naming, date formats (ISO 8601), error shapes such as RFC 9457 problem details, and validate every input against a schema.
An XML messaging protocol with WSDL contracts and WS-* extensions for security and transactions. Mostly found integrating with older enterprise, banking and government systems.
RPC over HTTP/2 with Protocol Buffers schemas and generated clients, supporting streaming in both directions. Efficient for service-to-service calls; browsers need gRPC-Web or a gateway.
A typed schema with a single endpoint where clients request exactly the fields they need. Solves over- and under-fetching but needs care with N+1 resolvers (DataLoader), query cost limits and caching.
The OpenAPI Specification describes HTTP APIs in YAML or JSON — paths, parameters, schemas, auth. Generate it from code or write it first, then render docs with Swagger UI and generate typed clients.
Authentication proves who a caller is; authorization decides what they may do. Learn the main mechanisms, where each stores state, and the attacks each must defend against.
The client sends Authorization: Basic with base64 of user:password on every request. Simple and only safe over HTTPS; fine for internal tools, poor for user-facing apps.
After login the server issues a token that the client sends as Authorization: Bearer …. Tokens can be opaque (looked up server-side) or self-contained like JWTs; either way, make them expire and allow revocation.
Signed JSON claims (sub, exp, iat) the server verifies without a lookup. Pin the algorithm, keep access tokens short-lived with refresh tokens for renewal, and remember the payload is readable by anyone.
A session id in a cookie maps to server-side session data. Set HttpOnly, Secure and SameSite, rotate the id on login, and defend state-changing requests against CSRF.
OAuth 2.0 lets a user grant an app limited access to their data on another service without sharing a password. Use the authorization code flow with PKCE; the implicit flow is deprecated.
OpenID Connect adds identity on top of OAuth 2.0: an ID token (a JWT) says who signed in. It powers "Sign in with Google" and most enterprise single sign-on today.
An XML-based single sign-on standard where an identity provider sends signed assertions to your app. Still required by many enterprise customers; use a well-tested library because signature handling is easy to get wrong.
Caching stores computed or fetched results closer to where they are needed — in the client, a CDN, or an in-memory store beside your server. Choose a strategy (cache-aside, write-through), set expiry, and plan how stale data is invalidated.
An in-memory data structure server used as a cache, session store, rate limiter, queue and pub/sub bus. Know expiry and eviction policies, persistence options (RDB, AOF) and the open-source forks such as Valkey.
A simple, multi-threaded in-memory key-value cache with LRU eviction and no persistence. Choose it when you only need a fast cache, not Redis's data types.
Use Cache-Control (max-age, no-store, private, s-maxage) to tell browsers and CDNs what to keep, and ETag or Last-Modified so clients revalidate with a cheap 304.
A web server or reverse proxy sits in front of your application to terminate TLS, serve static files, compress responses, balance load and enforce limits. Your app server then only has to handle application logic.
An event-driven server most often used as a reverse proxy and load balancer. Learn server and location blocks, proxy_pass with the right forwarded headers, and testing config with nginx -t.
The Apache HTTP Server, with loadable modules and per-directory .htaccess overrides. Still common in shared hosting and PHP setups.
A Go web server that obtains and renews TLS certificates automatically. A two-line Caddyfile can reverse-proxy an app over HTTPS.
Internet Information Services, the web server built into Windows Server, used to host ASP.NET and other Windows-based applications.
Every backend is a target. Encrypt traffic, store secrets and passwords correctly, validate all input, apply least privilege, and know the common attack classes well enough to spot them in code review.
A fast 128-bit hash with practical collision attacks. Acceptable for non-security checksums, never for passwords or signatures.
The Secure Hash Algorithm family: SHA-1 is broken for collisions, SHA-256/512 (SHA-2) and SHA-3 are current. Good for integrity and HMACs, but too fast to use alone for passwords.
A password hashing function designed to need a lot of memory as well as CPU, which makes GPU and ASIC cracking expensive. Tune its cost parameters to your hardware.
A slow, salted password hash with an adjustable work factor; widely available in every language. Note it only uses the first 72 bytes of input. Argon2id is the modern recommendation for new systems.
HTTP over TLS, so traffic is encrypted and the server is authenticated by a certificate. Serve everything over it, redirect plain HTTP, and add Strict-Transport-Security.
TLS (SSL is its deprecated predecessor) negotiates keys during a handshake and encrypts the connection. Use TLS 1.2 or 1.3 only, automate certificates with Let's Encrypt, and never disable verification in clients.
The OWASP Top 10 lists the most common web application flaws: broken access control, injection, cryptographic failures, insecure design, misconfiguration and more. Use it as a review checklist.
Browsers block cross-origin reads unless the server opts in with Access-Control-Allow-Origin and related headers, sometimes after a preflight OPTIONS. Allow specific origins; never reflect any origin together with credentials.
A Content-Security-Policy header lists which sources may load scripts, styles and frames, sharply limiting XSS. Start with report-only mode and prefer nonces over unsafe-inline.
Patch the OS, disable password SSH logins, run services as unprivileged users, close unused ports with a firewall, keep secrets out of code, and ship logs somewhere an attacker cannot erase them.
The AI foundations a backend developer now needs: what a large language model is, how text becomes numbers, and how to ground a model in your own data. This underpins both coding with AI and shipping AI features.
A transformer trained to predict the next token, then tuned to follow instructions. It has a fixed context window, no memory between calls, and can state wrong things confidently, so verify what it produces.
Deterministic code always gives the same output; model calls are probabilistic and need evaluation, guardrails and fallbacks. With AI tools, your job shifts toward specifying, reviewing and testing.
A model turns text or images into a vector so that similar meanings land close together. Used for semantic search, clustering, deduplication and recommendations.
Arrays of floats compared with cosine similarity or dot product. Store and search them with pgvector in PostgreSQL or a dedicated vector database using approximate indexes such as HNSW.
Retrieval-augmented generation fetches relevant chunks of your documents (by vector or keyword search) and adds them to the prompt, so answers rest on your data and can cite sources.
AI coding tools now write, explain and refactor code alongside you. Use them to move faster, but keep ownership: give clear context, review every diff, and run the tests yourself.
Anthropic's agentic coding tool that works in your terminal or IDE: it reads the repository, edits files, runs commands and tests, and follows project instructions from a CLAUDE.md file.
GitHub Copilot offers inline completions, chat and an agent mode in VS Code, JetBrains and other editors, plus a cloud agent that works on assigned issues.
A VS Code-based editor built around AI, with multi-file edits, an agent, codebase indexing and project rules files that steer its behaviour.
Google's agent-first development environment, where Gemini-powered agents plan and carry out tasks across the editor, terminal and browser.
State the goal, constraints and acceptance criteria; point to relevant files; give examples; ask for a plan before code; and break big tasks into reviewable steps.
An agent runs a model in a loop with tools — read files, run commands, call APIs — until a goal is met. More autonomy needs clearer goals, sandboxing and checkpoints.
The Model Context Protocol is an open standard for connecting AI applications to tools and data sources through servers that expose tools, resources and prompts. One server works with any MCP-capable client.
Packaged instructions, scripts and resources an agent loads only when a task needs them, such as a team's deploy or review procedure. They keep the base context small while adding expertise.
Concrete places AI pays off in backend work beyond writing new code. Each still needs a human to check the result before it lands.
Use AI as a first-pass reviewer for bugs, missing edge cases and security smells, then let humans focus on design. Treat its comments as suggestions, not verdicts.
Models handle mechanical refactors well — renaming, extracting functions, migrating APIs. Make sure tests cover the code first and review the diff in small steps.
Generate docstrings, READMEs, API descriptions and changelogs from code and commit history, then edit for accuracy — models happily describe behaviour the code does not have.
Building AI-powered features means calling a model provider's API from your backend. A few patterns cover most needs: streaming responses, getting structured data back, letting the model call your functions, and isolating provider differences behind one interface.
Return tokens as they are generated, usually via server-sent events, so users see output immediately. Your backend forwards the stream and must handle disconnects and partial output.
Constrain the model to a JSON schema so its reply can be parsed and stored directly. Still validate the result on your side before trusting it.
You describe tools with names and JSON schemas; the model replies with a call, your code executes it and sends the result back. Validate arguments and authorize each call as if it came from the user.
Provider of the GPT models via the Responses and Chat Completions APIs, with official SDKs, embeddings, image and speech models.
Provider of the Claude models through the Messages API, with tool use, prompt caching, batch processing and official SDKs; also available through AWS Bedrock and Google Vertex AI.
Google's model family through the Gemini API or Vertex AI, with long context windows, native multimodal input such as PDFs and video, and a free tier for prototyping.
Continuous integration builds and tests every change automatically; continuous delivery keeps the main branch always deployable, and continuous deployment ships it without manual steps. Pipelines also run linting, security scans and migrations.
Tests let you change code with confidence. Balance fast unit tests, a smaller set of integration tests against real dependencies, and a few high-value end-to-end checks.
Test one unit of logic in isolation with dependencies stubbed. Fast, numerous and precise; aim them at business rules rather than framework glue.
Run your code against real databases, queues and HTTP clients — often in disposable containers — to catch wrong SQL, serialization bugs and configuration mistakes mocks would hide.
Black-box tests that call the running API like a client would and check behaviour against requirements: status codes, bodies and side effects.
Beyond basic queries: how databases keep data correct under concurrency, how schemas evolve safely, and how to find out why something is slow.
Object-relational mappers like Prisma, Hibernate, Entity Framework or SQLAlchemy map rows to objects and build queries. Productive, but log the generated SQL and drop to raw SQL when it matters.
Versioned schema changes committed alongside code and applied in order on every environment. Make them backward compatible (expand, migrate data, then contract) so deploys need no downtime.
Atomicity, consistency, isolation and durability — the guarantees that make a transaction behave like a single, permanent step even with crashes and concurrent users.
Group statements so they commit or roll back together. Pick an isolation level knowingly (read committed vs serializable), keep transactions short, and retry on serialization failures.
One query for a list, then one more per row for related data. Spot it in query logs and fix it with joins, eager loading or batched WHERE id IN (...) lookups.
Organising tables so each fact is stored once (1NF to 3NF/BCNF), avoiding update anomalies. Denormalise deliberately for read performance, knowing you must keep copies in sync.
Plan for deadlocks, lock contention, connection pool exhaustion, replication lag, full disks and corrupted backups. Test restores regularly and set statement and lock timeouts.
Find slow queries with EXPLAIN (ANALYZE, BUFFERS) and statistics such as pg_stat_statements, then fix them with indexes, query rewrites or caching — measure before and after.
When one database server is not enough, you index smarter, add read replicas, and finally split data across machines. Each step adds operational complexity and consistency trade-offs.
B-tree indexes turn full scans into lookups for equality, range and sort; GIN and GiST handle JSON, arrays and full text. Every index slows writes, so add them for real query patterns.
Copy data to other nodes for availability and read scaling. Asynchronous replicas may lag, so read-your-own-writes needs care; synchronous replication trades latency for safety.
Split data across databases by a shard key using ranges, hashes or a lookup directory. A good key spreads load evenly and keeps related rows together; cross-shard queries and rebalancing are the hard parts.
During a network partition a distributed store must choose between consistency and availability. PACELC extends it: even without partitions you trade latency against consistency.
How you split a system into deployable parts shapes team autonomy, scaling and failure behaviour. Start simple and break things apart only when a real constraint demands it.
One deployable application with one codebase and usually one database. Simple to develop, test and deploy; keep it modular internally so it can be split later if needed.
Small, independently deployable services, each owning its data and communicating over the network. Gains team independence and targeted scaling, at the cost of distributed-systems complexity.
Service-oriented architecture: coarse-grained services integrated through shared contracts and often an enterprise service bus. The ancestor of microservices, still common in large organisations.
Functions or containers that the provider runs and scales on demand, billed per use — AWS Lambda, Cloud Run, Vercel Functions. Watch cold starts, execution limits and connection pooling to databases.
A layer of proxies (sidecars or node-level) that handles service-to-service traffic: mutual TLS, retries, timeouts and telemetry, without changing application code. Istio and Linkerd are the main options.
A methodology for cloud-friendly services: config in environment variables, stateless processes, backing services as attached resources, logs as event streams, and dev/prod parity.
Brokers decouple producers from consumers so work can happen asynchronously, absorb traffic spikes and fan events out to many services. Design consumers to be idempotent, because most delivery is at least once.
A distributed, partitioned, replicated log. Consumers track their own offsets, so events can be replayed; ordering holds within a partition. Ideal for event streaming and high-throughput pipelines.
A message broker with exchanges routing messages into queues, acknowledgements and dead-letter queues. Well suited to task queues and flexible routing rather than long-term event storage.
Containers package an application with its runtime and dependencies into an image that runs the same everywhere, isolated with Linux namespaces and cgroups. Docker is the usual tool for building them and Kubernetes for orchestrating them at scale.
Linux Containers run full Linux systems on a shared kernel — closer to lightweight virtual machines than to Docker's one-process application containers. Incus (the LXD fork) manages them at scale.
Dedicated search engines build inverted indexes for fast full-text queries with relevance scoring, typo tolerance, facets and aggregations. Keep them in sync with your primary database rather than treating them as the source of truth.
A distributed search and analytics engine built on Apache Lucene, queried with a JSON DSL. Used for product search, logs and metrics; OpenSearch is its open-source fork.
Apache Solr, another mature Lucene-based search server, with strong faceting and a long history in enterprise and e-commerce search.
Chat, notifications, dashboards and collaboration need the server to push updates as they happen. Pick the simplest transport that works and plan how connections scale across multiple instances.
A persistent two-way connection upgraded from HTTP. Ideal for chat and multiplayer; behind several servers you need sticky sessions or a pub/sub backbone such as Redis to fan out messages.
A one-way stream over plain HTTP using text/event-stream, with automatic reconnection via EventSource. Simpler than WebSockets for feeds, progress updates and streaming AI responses.
Short polling asks on a timer; long polling holds each request open until there is news or a timeout. Both work everywhere with no special infrastructure, at the cost of latency or held connections.
Non-relational stores trade some of SQL's flexibility for a data model that fits a specific workload: documents, wide columns, time series or graphs. Model data around your access patterns, and keep a relational database as the default.
A document database storing BSON documents with flexible schemas, rich queries, an aggregation pipeline and multi-document transactions. Embed data that is read together; reference data that grows unbounded.
A JSON document database with an HTTP API and multi-master replication designed for offline-first apps that sync later, often paired with PouchDB in the browser.
AWS's fully managed key-value and document store with predictable single-digit-millisecond latency. Design keys and indexes around access patterns up front; ad-hoc queries are expensive.
Google's backend-as-a-service with Cloud Firestore, a document database that syncs to clients in real time, plus auth, storage and functions. Security rules replace much of a custom backend.
An open-source document database whose changefeeds push query results to clients as data changes. Community-maintained today, so check activity before adopting it.
A masterless wide-column store that scales writes linearly across data centres with tunable consistency. Tables are designed per query, with the partition key deciding data placement.
A C++ reimplementation compatible with Cassandra's query language and drivers, built to get much lower and steadier latency from the same hardware.
A column-oriented database for analytics that aggregates billions of rows in seconds using SQL. Great for events and logs; not designed for frequent single-row updates.
A time-series database optimised for timestamped measurements such as metrics and sensor data, with retention policies and downsampling built in.
A PostgreSQL extension that turns tables into time-partitioned hypertables with compression and continuous aggregates, so you keep full SQL and joins for time-series data.
A graph database storing nodes and relationships, queried with Cypher. Excels at traversals such as recommendations, fraud rings and access graphs that would need many joins in SQL.
Amazon's managed graph database supporting property graphs (Gremlin, openCypher) and RDF (SPARQL), with replicas and backups handled by AWS.
A distributed, open-source graph database with a GraphQL-like query language (DQL) and native GraphQL support.
At scale, failures are routine: dependencies slow down, traffic spikes, machines disappear. Design services to protect themselves and degrade gracefully, and instrument them so you can see what is happening in production.
When a dependency fails, keep the core working with reduced features: serve cached data, hide recommendations, queue writes for later. Decide in advance which features are expendable.
Limit how many requests a client or the whole system may make, using token bucket or sliding window algorithms, and answer excess with 429 and Retry-After.
Let a slow consumer signal producers to slow down instead of buffering without limit until memory runs out. Bounded queues, stream flow control and rejecting work are all forms of it.
Move work that does not need to happen now — reports, emails, reindexing — into queues and off-peak schedules, smoothing demand so capacity is sized for the average, not the peak.
Wrap calls to a dependency; after repeated failures the breaker opens and fails fast, then lets a trial request through to test recovery. Prevents a sick service from dragging down its callers.
Being able to answer new questions about production from the outside, using logs, metrics and traces correlated by request ids — not only the dashboards you predicted you would need.
Adding the code that emits telemetry: structured logs, counters and histograms, and trace spans around requests and queries. OpenTelemetry SDKs provide automatic instrumentation for common libraries.
Track key signals — latency, traffic, errors, saturation — on dashboards and alert on user-facing symptoms against SLOs, not on every CPU spike. Prometheus and Grafana are a common stack.
The data itself — metrics, logs, traces and profiles — and the pipeline that ships it via collectors to a backend. Control cardinality and sampling, or cost grows faster than traffic.