Shelves / The Backend
Software Engineering · Volume 3
The Backend
Part III of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have never written server code; every later chapter opens with a plain-language Start here section with small programs whose output was actually run, then goes all the way to language and runtime internals, Spring and its peers, data access, security, messaging, resilience, caching and testing, and ends with a lab of real measurements and a revision sheet. Every backend idea is shown in the language that defines it and compared with the others: Java and Kotlin on the JVM, Go, Rust, C and C++, Zig, C# and .NET, Python, TypeScript on Node, and Elixir, Haskell and Scala. A final chapter of eight projects grows one ordering service from plain Java to production.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Java examples target JDK 25 (the current LTS) with notes on JDK 26 and 27 features, and Spring Boot 4 / Spring Framework 7, with Boot 3.x differences noted. Other languages use their current stable releases as of late 2026. Preview and incubating features are labelled as such. Check the release notes for your exact versions before relying on a new feature.
Contents
- BE·00Start Here: What a Backend IsFor readers who have never written server code: what a backend does, what happens to one request from arrival to response, the tools you need, a…11 min
- BE·33Language FoundationsThe building blocks every backend language shares and where they differ: syntax families, primitive and reference types, overflow, operators and…56 min
- BE·34Object-Oriented Programming and Its AlternativesThe four pillars (encapsulation, abstraction, inheritance, polymorphism), the relationships between objects (composition, aggregation, association…38 min
- BE·35CollectionsLists, sets, maps, queues and deques, and how they're built: ArrayList versus LinkedList, HashMap's buckets and treeification, LinkedHashMap…36 min
- BE·36Generics and Type ParametersWriting code once for many types. Covers generic classes and methods, bounds, wildcards and PECS, type erasure and its consequences, reifiable types…35 min
- BE·37Functional ProgrammingFunctions as values: functional interfaces, lambdas and closures, method references, composition, streams with their laziness and pipeline mechanics…37 min
- BE·38ConcurrencyRunning work at the same time, correctly. Covers threads and executors, futures and CompletableFuture, synchronized and volatile, the Java Memory…50 min
- BE·39Modern Java Through JDK 27How Java evolved from Java 8 to JDK 27, and why. Covers the six-month cadence and LTS choices, var, switch expressions, text blocks, records, sealed…36 min
- BE·40JVM Internals and Other RuntimesWhat happens between `java -jar` and your code running fast. Covers bytecode and the stack machine, class loading, class loaders and verification…32 min
- BE·41Memory and PerformanceWhere Java's memory goes and how to make code fast without guessing. Covers stack versus heap, object headers and references, allocation and TLABs…29 min
- BE·42Modules, Packaging and Dependency ConflictsHow Java code is packaged and found at run time: JAR and WAR files, manifests, the class path versus the module path, JPMS in practice, fat and uber…24 min
- BE·43Build SystemsMaven and Gradle from first principles: the build as a graph of tasks, dependency resolution, scopes and configurations, plugins, repositories, BOMs…25 min
- BE·44Backend FundamentalsThe anatomy of every backend service, independent of framework: the request/response cycle, routing, middleware and filters, dependency injection…37 min
- BE·45HTTP API DesignDesigning HTTP APIs that last. Covers REST constraints and resource modelling, method semantics (safe and idempotent), status codes and headers…29 min
- BE·46Spring CoreHow Spring's container works: inversion of control and dependency injection, the ApplicationContext, bean definitions, the full bean lifecycle…26 min
- BE·47Spring BootWhat Spring Boot adds on top of Spring: auto-configuration and how conditions decide what's wired, starters, type-safe configuration properties and…26 min
- BE·48Spring Web — MVC and WebFluxInside Spring MVC: the DispatcherServlet pipeline, controllers and request mapping, argument resolution and validation, exception handling with…29 min
- BE·49Persistence — JDBC, JPA, Hibernate and Spring DataHow Java talks to relational databases, from JDBC and JdbcClient up to JPA and Hibernate. Covers the entity lifecycle, the persistence context and…33 min
- BE·50Spring Security and Modern IdentityAuthentication and authorisation from first principles, then Spring Security's architecture: the SecurityFilterChain, authentication managers and…28 min
- BE·51Asynchronous Work, Jobs and MessagingMoving work out of the request path. Covers synchronous versus asynchronous processing, in-process async (@Async, executors, virtual threads…28 min
- BE·52ResilienceKeeping services up when their dependencies aren't. Covers timeouts and deadline propagation, retries with exponential backoff and jitter, retry…27 min
- BE·53CachingMaking reads cheap without serving wrong data. Covers why caches work (locality and skew), local versus distributed caches, Redis in depth, the…26 min
- BE·54Backend TestingA testing strategy for backend services. Covers what to test at which level, test doubles, unit tests with JUnit, AssertJ and Mockito, property-based…34 min
- BE·55Backend ProjectsEight build-it-yourself projects that grow one backend, the tiffin centre's ordering service, from a plain-Java API to a secure, resilient…11 min