Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Magnus Larsson

Rating 4.0 AI initial rating

This fully updated third edition takes you through tried-and-tested approaches to build distributed systems and implementing microservices architecture, following a single real-world project from start to finish. You’ll learn how to make the most of Spring Boot, Spring Cloud, and a full suite of related tools and frameworks for development, security, testing, and deployment.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on, project-driven guide that takes one microservice landscape from local Docker Compose all the way to Kubernetes, Istio, and full observability, for Java developers who want to see how Spring Boot 3 and Spring Cloud tools actually fit together in production. 【Book Arc】 - **Opening (~0%–12%)**: Frames the "why" of microservices through the author's own experience with autonomous components, then catalogs the recurring design patterns (service discovery, edge server, config, logging, tracing, circuit breaker, control loop, monitoring) that the rest of the book implements one by one. - **Early (~12%–35%)**: Grounds you in Spring Boot 3 fundamentals—convention over configuration, fat JARs, `@SpringBootApplication`, component scanning, Java-based config—and what changed in the 3.x line, so the later chapters aren't a syntax surprise. - **Middle (~35%–60%)**: Builds the working landscape: composite and core services, synchronous and event-driven (RabbitMQ/Kafka) APIs, then layers on Spring Cloud—Eureka discovery, Gateway edge server, OAuth 2.0/OIDC security with Spring Authorization Server and Auth0, centralized config, and Resilience4j circuit breakers, time limiters, and retries. - **Late (~60%–80%)**: Moves to deployment and operations—Docker, Helm charts, Kubernetes ConfigMaps/Secrets/Ingress/cert-manager, then an Istio service mesh for mTLS, fault injection, canary and blue-green releases, plus EFK centralized logging and Prometheus/Grafana monitoring with alerts. - **Ending (~80%–100%)**: Closes with platform-specific installation appendices (macOS Intel/ARM, Windows via WSL 2 + Ubuntu) so you can reproduce the environment; excerpts do not cover the final summary material in detail. 【Book Arc note】The progression is deliberate: fundamentals → distributed building blocks → deployment → operations. Each stage assumes the previous one is running. 【Key Takeaways】 - **One project, end to end** (Opening): The book's spine is a single sample landscape you build, secure, deploy, and monitor incrementally—so concepts arrive attached to working code rather than as isolated theory. - **Patterns before tools** (Early): Each pattern (discovery, edge server, config, tracing, circuit breaker, control loop, monitoring) is presented as problem → solution → requirements, which helps you choose between overlapping tools later. - **Spring Boot 3 specifics matter** (Early): Convention over configuration, fat JARs, and the `@SpringBootApplication` mechanics are explained explicitly, along with what's new in 3.x—skim if you're already fluent, deep-read if you're migrating. - **Sync and async APIs coexist** (Middle): The composite service calls core services synchronously, then event-driven services are added with consumer groups, retries, dead-letter queues, partitions, and guaranteed ordering across RabbitMQ and Kafka. - **Security is layered, not bolted on** (Middle): OAuth 2.0/OIDC via Spring Authorization Server, HTTPS at the edge, and swapping in an external provider (Auth0) teach the difference between internal and external trust boundaries. - **Resilience is configurable behavior** (Middle): Resilience4j's circuit breaker, time limiter, and retry are added with programmable delays and random errors so you can observe fail-fast fallbacks rather than trust them blindly. - **Kubernetes can replace Spring Cloud pieces** (Late): Config Server gives way to ConfigMaps/Secrets, Gateway to Ingress with cert-manager—an honest look at where the platform and the framework overlap. - **A service mesh changes the operational model** (Late): Istio adds mTLS, fault and delay injection, and zero-downtime canary/blue-green routing, while EFK and Prometheus/Grafana close the loop on logs, metrics, and alerts. 【Reading Tips】 - **Skim the pattern catalog, deep-read the implementations.** The opening pattern survey is a map; its value compounds only when you return to it after building each piece. - **Keep the environment running.** This is a step-by-step book—install via the macOS or WSL 2 appendix early, and treat each chapter's test script as the acceptance criterion before moving on. - **Expect the hardest stretches around security and the mesh.** OAuth 2.0/OIDC flows and Istio's API objects (virtual services, destination rules, mTLS) are where most readers slow down; budget extra time and re-run the provided tests. - **Read the Kubernetes chapters as a decision guide.** When Config Server or Gateway is replaced, note *why*—that trade-off reasoning is the transferable takeaway, not the YAML. - **Take away the test scripts.** The automated and manual test patterns for scaling, disruptive failures, and fault injection are reusable templates for your own services. 【Coverage Limits】 This guide is synthesized from stratified excerpts (28 of 62 chunks), so chapter-level detail is uneven—particularly the Spring Boot 3 fundamentals and the closing appendices. Specific code, configuration values, and any chapters beyond the table of contents and previewed summaries are not covered here.
Excerpt 1
ublishing cannot guarantee the accuracy of this information. Senior Publishing Product Manager: Suman Sen Acquisition Editor – Peer Reviews: Gaurav Gavas Pro...
View in text
Excerpt 2
ct us at copyright@packtpub.com with a link to the material. If you are interested in becoming an author : If there is a topic that you have expertise in and...
View in text
Excerpt 3
Java-based configuration What’s new in Spring Boot 3.
View in text
Excerpt 4
APIs using access tokens Testing Swagger UI with OAuth 2.
View in text
Excerpt 5
ducing Helm   Running Helm commands Looking into a Helm chart Helm templates and values The common library chart   The ConfigMap template The Secrets templat...
View in text
Excerpt 6
cates Authenticating external requests using OAuth 2.
View in text
Excerpt 7
issues were acceptable, even though they were not desirable. Enter microservices Learning about microservice-based architectures in 2014 made me realize that...
View in text
Excerpt 8
dscape that all incoming requests will go through: Figure 1.10: The edge server design pattern Implementation notes : An edge server typically behaves like a...
View in text
Tags
AI categories
JavaSpringMicroservices
Publisher: Packt Publishing
Publish Year: 2023
Language: English
File Format: EPUB
File Size: 11.7 MB