Spring Microservices in Action, Second Edition teaches you to build microservice-based applications using Java and Spring.
Summary
By dividing large applications into separate self-contained units, Microservices are a great step toward reducing complexity and increasing flexibility. Spring Microservices in Action, Second Edition teaches you how to build microservice-based applications using Java and the Spring platform. This second edition is fully updated for the latest version of Spring, with expanded coverage of API routing with Spring Cloud Gateway, logging with the ELK stack, metrics with Prometheus and Grafana, security with the Hashicorp Vault, and modern deployment practices with Kubernetes and Istio.
about the technology
Building and deploying microservices can be easy in Spring! Libraries like Spring Boot, Spring Cloud, and Spring Cloud Gateway reduce the boilerplate code in REST-based services. They provide an effective toolbox to get your microservices up and running on both public and private clouds.
About the book
Spring Microservices in Action, Second Edition teaches you to build microservice-based applications using Java and Spring. You’ll start by creating basic services, then move to efficient logging and monitoring. Learn to refactor Java applications with Spring’s intuitive tooling, and master API management with Spring Cloud Gateway. You’ll even deploy Spring Cloud applications with AWS and Kubernetes.
What's inside
• Microservice design principles and best practices
• Configuration with Spring Cloud Config and Hashicorp Vault
• Client-side resiliency with Resilience4j, and Spring Cloud Load Balancer
• Metrics monitoring with Prometheus and Grafana
• Distributed tracing with Spring Cloud Sleuth, Zipkin, and ELK Stack
About the reader
For experienced Java and Spring developers.
About the author
John Carnell is a senior cloud engineer with 20 years of Java experience. Illary Huaylupo Sánchez is a software engineer with over 13 years of experience.
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
【One-Line Pitch】
A hands-on field guide for experienced Java and Spring developers who want to build, secure, observe, and deploy a real microservice system end to end. It is less a theory book than a guided build of one running application, so read it if you learn by wiring components together.
【Book Arc】
- **Opening (~0%–22%)**: Frames the move from monoliths and N-tier systems to microservices, explains why distributed systems fail in surprising ways, and introduces the Spring Cloud toolbox and cloud-native principles.
- **Early (~22%–44%)**: Moves from architecture to code: decomposing a business problem, deciding service granularity and interfaces, knowing when *not* to use microservices, then building a Spring Boot service and containerizing it with Docker.
- **Middle (~44%–67%)**: Covers the operational backbone — centralized configuration with Spring Cloud Config and Vault, service discovery with Eureka, client-side resiliency with Resilience4j, and routing through Spring Cloud Gateway.
- **Late (~67%–89%)**: Adds cross-cutting concerns: OAuth2/Keycloak security, event-driven messaging with Spring Cloud Stream, and distributed tracing with Sleuth, Zipkin, and the ELK stack.
- **Ending (~89%–100%)**: Turns to delivery: a build/deployment pipeline, cloud infrastructure on AWS (RDS, Redis, EC2, EKS), Jenkins pipeline scripts, and appendices on best practices, OAuth2 grant types, and monitoring.
【Key Takeaways】
- **Microservices are an architecture decision, not a default** (Early): the book weighs complexity, container sprawl, data consistency, and application type before recommending decomposition, which keeps the enthusiasm honest.
- **Configuration must be externalized and protected** (Middle): Spring Cloud Config centralizes settings, Git backing enables versioning, and Vault plus encryption handles secrets — a practical answer to the "where do credentials live?" problem.
- **Service discovery is the connective tissue** (Middle): Eureka registration and lookup, combined with load-balancer-aware clients and Feign, show how services find each other without hardcoded addresses.
- **Resiliency is client-side and pattern-based** (Middle): circuit breakers, fallbacks, bulkheads, retries, and rate limiters with Resilience4j are presented as complementary defenses, not one silver bullet.
- **A gateway centralizes routing and cross-cutting logic** (Late): Spring Cloud Gateway's predicate and filter factories, plus correlation-ID propagation, demonstrate how to keep tracing and policy out of every service.
- **Security belongs at the edge and in the token** (Late): Keycloak-backed OAuth2, JWT parsing, token propagation, and advice on HTTPS, zoning, and limiting attack surface make security a system concern.
- **Asynchronous messaging changes the coupling model** (Late): Spring Cloud Stream with Kafka and Redis illustrates state-change events and distributed caching, while acknowledging messaging's downsides.
- **Observability requires traces, logs, and metrics together** (Late): Sleuth trace IDs, ELK aggregation, and Zipkin visualization are shown as one workflow for diagnosing distributed transactions.
【Reading Tips】
- Deep-read the early architecture chapters even if you already know Spring Boot; the granularity and "when not to use microservices" discussion is the book's most transferable content.
- Treat the middle chapters as a build-along lab: stand up Config Server, Eureka, and Gateway in order, because later chapters assume they exist.
- Skim the AWS/Kubernetes deployment chapter for pipeline structure and infrastructure choices; adapt the specifics to your own cloud rather than copying them.
- Use the appendices as reference — best practices, OAuth2 grant types, and monitoring — rather than reading them linearly.
- Watch for version drift: the second edition targets a specific Spring generation, so verify library versions against current releases before applying code directly.
【Coverage Limits】
This guide is based on the book's front matter, table of contents, and preface excerpts; it does not cover the detailed code walkthroughs, configuration snippets, or appendix contents, so chapter-level claims are inferred from structure rather than full text.
Excerpt 1
书名: Spring Microservices in Action (John Carnell, Illary Huaylupo Sánchez) (z-library.sk, 1lib.sk, z-lib.sk) 作者: John Carnell, Illary Huaylupo Sánchez Spring...
designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have th...
pplication type 63 ■ Data transactions and consistency 63 3.3 The developer’s tale: Building a microservice with Spring Boot and Java 63 Building the doorway...
t with the Spring Cloud Config service 141 ■ Vault UI 141 5.4 Protecting sensitive configuration information 144 Setting up a symmetric encryption key 144 ■...
rchitecture 281 10.2 Introducing Spring Cloud Stream 282 10.3 Writing a simple message producer and consumer 284 Configuring Apache Kafka and Redis in Docker...
o get involved in the world of microservices some years ago. Since then, it is the architecture I have used the most because of the advan- tages it provides...
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, Illary Huaylupo Sánchez) (z-library.sk, 1lib.sk, z-lib.sk)
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 to WeChat Moments
Spring Microservices in Action (John Carnell, Illary Huaylupo Sánchez) (z-library.sk, 1lib.sk, z-lib.sk)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Spring Microservices in Action (John Carnell, Illary Huaylupo Sánchez) (z-library.sk, 1lib.sk, z-lib.sk)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
这本书围绕如何使用 Java 和 Spring 构建基于微服务的应用展开,核心思路是把大型应用拆分成彼此独立、自成一体的单元,以此降低复杂度、提升灵活性。它面向的是希望在 Java 生态中实践微服务架构的开发者,把 Spring 作为实现这一目标的主要工具。
从简介可以看出,全书的主线是“用 Spring 做微服务”。读者可以抓住的第一条线索是拆分与独立的理念:微服务被视为减少复杂性和增加灵活性的重要一步,应用不再是一个庞大的整体,而是由多个自包含单元组成。第二条线索是技术栈的落点,即 Java 加 Spring,这意味着书中的讲解会围绕 Spring 体系内的开发方式展开,而不是泛泛讨论微服务概念。第三条线索是实践导向,书名中的“in Action”以及简介中“teaches you to build”的表述,都说明它重在教读者动手构建微服务应用,而非仅停留在理论介绍。
由于提供的材料只有书名、作者、分类和简短简介,没有更具体的章节安排、案例情节或技术细节,因此只能勾勒出这本书的基本轮廓:它是一本以 Java 和 Spring 为工具、以构建微服务...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment