An open engineering handbook

Java & Software Architecture Knowledge Hub

Understand the concepts. Explore the diagrams. Build better software.

A handbook on Core Java, Spring, Spring Boot, persistence, security, testing, Spring Cloud microservices, design patterns, architecture, DDD and system design — with diagrams, runnable examples, trade-offs and quick checks.

This handbook explains why designs work, not only what they are called. Every article covers the problem, the core idea, diagrams and flows, a practical example, trade-offs, common mistakes, and a quick check (or interview questions) with answers. Key flows are interactive Archify diagrams you can zoom, explore through guided views and export.

What’s covered:

  • Core Java: generics and type erasure, collections internals, exceptions, reflection and proxies, records, sealed types and pattern matching, the concurrency API, virtual threads, the Java Memory Model, garbage collection, lambdas and streams, modules, and concurrency design (safety and liveness, guarded methods, worker threads, futures, cancellation and pipelines).
  • Spring:
    • Core: IoC container, bean lifecycle and scopes, configuration, SpEL, AOP, events.
    • Boot: auto-configuration, externalized configuration, Actuator.
    • Web: MVC, REST and Problem Details, WebFlux.
    • Data: JPA and Hibernate, fetching, JPQL and Criteria, transactions, migrations, caching.
    • Security: the filter chain, OAuth2/OIDC/JWT, method security.
    • Testing: JUnit and Mockito, Testcontainers.
  • Microservices: service discovery, API gateway, centralized configuration, Resilience4j, observability with Micrometer and OpenTelemetry, and event-driven services with Spring Cloud Stream, Kafka and RabbitMQ.
  • Design patterns: all 23 GoF patterns with runnable Java 21 examples, the OO design principles behind them, compound patterns (MVC) and side-by-side comparisons.
  • Data-intensive systems: storage engines, encoding, replication, partitioning, transactions and isolation, distributed-systems faults, consistency and consensus, batch and stream processing.
  • System design: an 18-step framework, building blocks (load balancing, caching, consistent hashing, CAP, databases, IDs, queues, real-time push, deployment, security) and 18 case studies with interactive Archify diagrams (order management, URL shortener, rate limiter, payment system, proximity service, chat, news feed, notifications, video streaming, web crawler, autocomplete, key-value store, collaborative editing, stock exchange, ride sharing, metrics and alerting, flash sale, file sync).
  • Microservices data patterns: sagas, transactional outbox and inbox, CQRS and event sourcing, and idempotency.
  • Software architecture, hexagonal architecture and DDD.
  • Self Review & Quick Check: questions for every area, a service review checklist and a quick reference.

Other details:

  • Versions: Java examples target Java 21 LTS, with Java 25 LTS and 27 features labelled. Spring examples target Spring Boot 4.1 (Spring Framework 7). Code included from source files is compiled and run by CI on every build.
  • Honest trade-offs: no pattern or architecture style is presented as universally best. Each article says when not to use what it describes.
  • Planned topics: the handbook grows in batches, and section pages list the topics that are planned but not written yet.

Start here

Explore by topic

Recently reviewed