Spring Microservices in Action cover

Spring Microservices in Action

Rating 4.0
Chapters
12
Series
Asynchronous Books
ISBN
9787115481184

Tags

Summary

Spring Microservices in Action is a hands-on guide to Java microservice development. The original English edition is titled Spring Microservices in Action; the Chinese edition was translated by Chen Wenhui and published by Posts & Telecom Press. The book is built around a sample project called EagleEye. It begins with a traditional monolithic application and leads readers step by step through refactoring it into a microservices architecture: splitting the business into multiple independently deployable services, running each service in its own Docker container, and, through continuous integration and continuous deployment pipelines, ultimately deploying the system to a cloud environment. Along the way, the book first lays out the evolution from cloud computing to microservices and explains why a move from monolith to microservices is needed, then introduces the roles of the various subprojects in the Spring Boot and Spring Cloud ecosystem, including the config server, service discovery, client-side resiliency patterns, service routing, security, event-driven architecture, distributed tracing, and deployment. For the typical problems that recur in development, testing, and operations during refactoring, the author distills reusable core patterns and explains concretely how to choose the corresponding Spring Cloud components or third-party tools to implement them in practice. The book does not prioritize listing principles; instead, following the evolution path of a real project, it helps readers understand what problem each technology solves in the architecture and in what scenarios it is worth introducing, making it suitable for engineers who already have a Spring foundation and are preparing to move into distributed systems development.

Editor's review

市面上讲微服务的书不少,但多数要么停在概念层面反复描摹架构图,要么一上来就铺开组件清单,让人知道怎么配却不知道为什么要配。《Spring微服务实战》难得的地方在于它选择了一个贯穿全书的主线项目:从单体应用出发,遇到问题,再引入相应的技术。配置为什么需要中心化、服务之间为什么要发现彼此、调用链变长后为什么必须具备弹性与熔断机制,这些问题的答案都是在项目推进到那一步时自然浮现的。书中的技术选型也不算抽象,Spring Cloud 各组件与具体工具之间是什么关系、在不同阶段该用哪一套,作者给出了明确的判断依据。对于已经能写 Spring 应用、却始终被分布式系统的复杂度挡在门口的开发者,这本书提供的是一条可以照着走一遍的路径,而不是一堆需要自己拼装的知识碎片。

Who it's for

A good fit for

  • 已掌握 Java 与 Spring 基础、准备进入微服务开发的工程师
  • 正在把单体应用重构为分布式架构的项目组成员
  • 需要了解 Spring Cloud 各组件的分工与适用场景的技术负责人
  • 希望系统性理解云原生部署流程的后端开发者

Not a good fit for

  • 完全没有 Java 与 Spring 基础的初学者
  • 只想查阅 API 用法、不愿跟做完整项目的读者
  • 专注前端或非 Java 技术栈、短期内不接触 Spring 的开发者

Reading tips

  1. 建议边读边动手,把书中主线项目按章节实际搭建一遍,效果远好于只看代码。
  2. 阅读第1、2章时先建立整体架构地图,不必纠结细节,进入第4章起再逐项深入。
  3. 遇到 Hystrix、Zuul 等旧组件时,可对照新版本 Spring Cloud 的替代方案一并理解其设计意图。
  4. 读完后回看目录,梳理每个组件对应的架构问题,形成自己的模式清单。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Welcome to the Cloud, Spring
  2. Chapter 2 Building Microservices with Spring Boot
  3. Chapter 3 Controlling Configuration with Spring Cloud Config Server
  4. Chapter 4 Service Discovery
  5. Chapter 5 Client Resiliency Patterns with Spring Cloud and Netflix Hystrix
  6. Chapter 6 Service Routing with Spring Cloud and Zuul
  7. Chapter 7 Securing Microservices
  8. Chapter 8 Event-Driven Architecture with Spring Cloud Stream
  9. Chapter 9 Distributed Tracing with Spring Cloud Sleuth and Zipkin
  10. Chapter 10 Deploying Microservices
  11. Appendix A Running Cloud Services on the Desktop
  12. Appendix B OAuth2 Grant Types

FAQ

这本书和《Spring微服务实战(第2版)》是同一本书吗?
不是。本书是2018年出版的第1版,ISBN 9787115481184,主线项目为 EagleEye;第2版于2022年出版,ISBN 9787115587480,主线项目改为 O-stock,并更新了 Resilience4j、Spring Cloud Gateway 等内容。
阅读前需要具备哪些基础知识?
需要熟悉 Java 语言,能够编写基本的 Spring 或 Spring Boot 应用,并了解 REST 接口和一定的数据库使用经验。书中对云平台和 Docker 有专门章节介绍,不要求事先精通。
书中使用的技术栈现在还好用吗?
书中使用的 Hystrix、Zuul 等组件已停止维护,新版 Spring Cloud 提供了 Resilience4j、Spring Cloud Gateway 等替代方案。建议把本书当作理解架构模式与设计意图的读物,动手时参考当前官方文档替换具体实现。
这本书适合作为团队共读材料吗?
比较适合。全书围绕一个完整项目推进,章节顺序即重构顺序,团队可以按章分工搭建不同服务,再集中讨论配置管理、服务发现、安全与部署等共性问题的取舍。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

John Carnell is an author about whom limited public information is available. His representative work, currently confirmed, is Spring Microservices in Action, Second Edition. The book falls under programming and design and focuses on microservice development within the Spring framework, addressing developers who wish to master microservice architecture and implementation techniques. This work suggests that Carnell's writing emphasizes practical application, tending to combine framework usage and architectural thinking with concrete development scenarios to help readers understand how microservice systems are built. Since information about the author's nationality, biography, and educational background remains unclear, no speculation is made here; only the subject matter and writing orientation of his work are briefly introduced. For readers interested in the Java ecosystem and microservices practice, this book can serve as a reference for learning about related technologies.

More by the same author

Top rated in the same category