Summary
Spring Microservices in Action teaches you how to build microservice-based applications using Java and the Spring platform.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the technology
Microservices break up your code into small, distributed, and independent services that require careful forethought and design. Fortunately, Spring Boot and Spring Cloud simplify your microservice applications, just as the Spring Framework simplifies enterprise Java development. Spring Boot removes the boilerplate code involved with writing a REST-based service. Spring Cloud provides a suite of tools for the discovery, routing, and deployment of microservices to the enterprise and the cloud.
About the Book
Spring Microservices in Action teaches you how to build microservice-based applications using Java and the Spring platform. You'll learn to do microservice design as you build and deploy your first Spring Cloud application. Throughout the book, carefully selected real-life examples expose microservice-based patterns for configuring, routing, scaling, and deploying your services. You'll see how Spring's intuitive tooling can help augment and refactor existing applications with micro services.
What's Inside
Core microservice design principles
Managing configuration with Spring Cloud Config
Client-side resiliency with Spring, Hystrix, and Ribbon
Intelligent routing using Netflix Zuul
Deploying Spring Cloud applications
About the Reader
This book is written for developers with Java and Spring experience.
About the Author
John Carnell is a senior cloud engineer with twenty years of experience in Java.
Table of contents
Welcome to the cloud, Spring
Building microservices with Spring Boot
Controlling your configuration with Spring Cloud configuration server
On service discovery
When bad things happen: client resiliency patterns with Spring Cloud and Netflix Hystrix
Service routing with Spring Cloud an
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Spring Microservices in Action — Reading Guide
## 【One-Line Pitch】
A hands-on, pattern-driven guide for Java developers who want to build production-grade microservices with Spring Boot and Spring Cloud, covering everything from service design to deployment on AWS. If you already know Spring and want to move from monolithic thinking to distributed systems, this book gives you the architectural mindset and the concrete code to get there.
## 【Book Arc】
- **Opening (~0%–9%)**: Introduces why microservices emerged as a response to monolithic scaling problems, and maps out the full journey—from Spring Boot basics through configuration, discovery, resiliency, routing, security, messaging, tracing, and cloud deployment.
- **Early (~9%–28%)**: Establishes the core architectural principles—service granularity, data ownership, and the four client resiliency patterns (load balancing, circuit breaker, fallback, bulkhead)—plus the operational lifecycle every microservice must support.
- **Early–Middle (~28%–38%)**: Walks through building your first REST microservice with Spring Boot, showing how annotations like `@SpringBootApplication` simplify bootstrapping, and how to decompose a monolith by chunking both code and database tables by domain.
- **Middle (~38%–47%)**: Covers the DevOps view—service assembly, bootstrapping, registration/discovery, and monitoring—with Spring Actuator providing health check endpoints out of the box.
- **Middle–Late (~47%–end)**: Moves into advanced Spring Cloud patterns: centralized configuration with Spring Cloud Config, service discovery with Eureka, client-side resiliency with Hystrix and Ribbon, intelligent routing with Zuul, OAuth2 security, asynchronous messaging with Spring Cloud Stream and Kafka, distributed tracing with Sleuth and Zipkin, and finally deployment to Amazon ECS with CI/CD automation.
## 【Key Takeaways】
- **Microservices are about decomposition, not just size** (Early): Break a monolith into small, loosely coupled services with narrowly defined responsibilities, and let each service own its domain's data tables—not necessarily its own database, but exclusive access rights.
- **Client resiliency is a four-pattern problem** (Early): Client-side load balancing caches service locations, circuit breakers fail fast on slow services, fallbacks provide alternative paths, and bulkheads compartmentalize calls so one misbehaving service doesn't consume all client resources.
- **Spring Boot removes REST boilerplate** (Early): The framework handles HTTP verb-to-URL mapping, JSON-to-Java serialization, and exception-to-HTTP-error mapping, letting you focus on business logic—the `@SpringBootApplication` annotation alone handles bean scanning and container startup.
- **Configuration must be centralized and versioned** (Early): Spring Cloud Config separates environment-specific configuration from deployed code, backed by Git or Consul, ensuring every instance of a service starts with identical settings regardless of environment.
- **Operational lifecycle is a first-class design concern** (Middle): Every microservice needs repeatable assembly, environment-agnostic bootstrapping, service registration/discovery, and health monitoring—Spring Actuator provides health endpoints with just a Maven dependency.
- **Service discovery abstracts away location** (Middle): Using Eureka, clients no longer hardcode service addresses; a discovery agent monitors health check URLs and removes ailing instances from the pool, enabling dynamic scaling and fault tolerance.
- **The service gateway is your policy enforcement point** (Late): Netflix Zuul provides a single entry point for all microservices, with a filter API to enforce cross-cutting policies like authentication, logging, and routing rules uniformly.
## 【Reading Tips】
- **Skim Chapter 1's cloud platform taxonomy** (~15%): The IaaS/PaaS/SaaS/FaaS/CaaS discussion is useful context but not essential for the hands-on work—move quickly to the Spring Boot example.
- **Deep-read the client resiliency section** (~25%): The four patterns (load balancing, circuit breaker, fallback, bulkhead) are the conceptual heart of the book and will reappear throughout later chapters.
- **Pay close attention to the data decomposition example** (~34%): The EagleEye application walkthrough shows exactly how to translate a data model into service boundaries—this is the most transferable skill in the book.
- **Treat the DevOps lifecycle as a checklist** (~44%): The four operational steps (assembly, bootstrapping, discovery, monitoring) are worth memorizing as a mental template for any microservice you build.
- **The excerpts don't cover the later chapters in depth**—if you need OAuth2, Kafka messaging, or ECS deployment details, you'll need to read those chapters directly.
## 【Coverage Limits】
This guide synthesizes the book's opening through the middle sections (~47% of the book). The later chapters on Spring Cloud Stream, Sleuth/Zipkin tracing, OAuth2 security, and AWS deployment are mentioned but not analyzed in detail.
##
Excerpt 1
with Spring Cloud configuration server On service discovery When bad things happen: client resiliency patterns with Spring Cloud and Netflix Hystrix Service...
object mapping to JSON. Flow of Spring Boot microservice Figure 1.3 Spring Boot abstracts away the common REST microservice task (routing to business logic,...
https://www.consul.io/) is an open source service discovery tool that allows service instances to register themselves with the service. Service clients can t...
t uses the exposes health URL to check microservice health. After a microservice has come up, the service discovery agent will continue to monitor and ping t...
ofile, the licensing service will use the default profile. The third and last property, the spring.cloud.config.uri, is the location where the licensing serv...
scovery Client @SpringBootApplication Activates the Spring @EnableDiscoveryClient D i s co v e ryClient for use @EnableFeignClients Ignore this for now as we...
by having them intervene directly (restarting a failed ser- vice) in the restoration of the service. 5.3 Enter Hystrix Building implementations of the circui...
tern segregates remote resource calls away from each other, isolating calls to a remote service into their own thread pool. If one set of ser- vice calls is...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Spring Microservices in Action (John Carnell)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Spring Microservices in Action (John Carnell)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment