Spring Cloud Microservices in Action cover

Spring Cloud Microservices in Action

Rating 3.8
Word count
149K words
Chapters
70
ISBN
9787121313011

Tags

Summary

Starting from the now-popular microservice architecture concept, this book explains in detail Spring Cloud's solutions and foundational components for several core elements of microservice architecture. For each component, the book mainly combines examples with source code to help readers better understand how these components are used and how they work. The explanations also include some problems the author encountered in practice and his solutions, which readers can use as references in their own work.

Editor's review

Zhai Yongchao's Spring Cloud Microservices in Action was one of the early practical guides in China to systematically explain Spring Cloud, filling a market gap when microservice architecture was first rising. Based on Spring Cloud's Dalston release, the book systematically sorts out the core concepts of microservice architecture, the full set of Spring Cloud components, and their application in production environments. Its value lies in integrating the fragmented knowledge from official documentation into a coherent, hands-on system, with detailed code examples and principle analysis covering service registration and discovery (Eureka), client-side load balancing (Ribbon), declarative service invocation (Feign), circuit breakers (Hystrix), the gateway (Zuul), and the distributed configuration center (Config).

As an editor, I think the book's strength is its "in action" positioning. The author not only shows how to set things up but also explores in depth typical problems and solutions that may arise in development, testing, deployment, and operations, such as service avalanche protection and distributed tracing integration. The sample project "bookstore" runs throughout, helping readers build a complete understanding of microservices. Although the Spring Cloud version used in the book is no longer the latest, its architectural thinking and the design philosophy of its core components remain highly valuable for learning today, making it an excellent textbook for understanding the evolution of microservices. For developers who want to solidify their foundations and understand Spring Cloud's design philosophy, this book provides a solid starting point. Note that readers should consult the latest official documentation alongside the book and pay attention to changes in components and their alternatives.

Who it's for

A good fit for

  • Java developers with a Spring Boot foundation who want to systematically learn microservice architecture
  • Architects or core developers on technical teams transitioning from monolithic to microservice architecture
  • Readers who need a Spring Cloud practical guide they can follow step by step, with complete runnable examples
  • Computer science students or trainees who want to understand core distributed-system concepts through project practice

Not a good fit for

  • Advanced developers who want to learn the features of the latest Spring Cloud versions (such as 202.x and later) and cloud-native practices
  • Complete beginners with no Java or Spring framework background who expect a quick introduction to programming

Reading tips

  1. Read the chapters in order, and run and modify the sample code yourself to understand each component's individual role and how they work together
  2. Consult the official Spring Cloud documentation while reading, compare the versions in the book with current versions, and understand how the technology has evolved
  3. Focus on Chapter 4 (service fault tolerance), Chapter 7 (API gateway service), and Chapter 8 (distributed configuration center), as these are core to building robust microservice systems

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. 版权信息
  2. 推荐序一
  3. 推荐序二
  4. 推荐序三
  5. 推荐语
  6. 前言
  7. 第1章 基础知识
  8. 什么是微服务架构
  9. 为什么选择Spring Cloud
  10. Spring Cloud简介
  11. 版本说明
  12. 第2章 微服务构建:Spring Boot
  13. 框架简介
  14. 快速入门
  15. 配置详解
  16. 监控与管理
  17. 小结
  18. 第3章 服务治理:Spring Cloud Eureka
  19. 服务治理
  20. Eureka详解
  21. 配置详解
  22. 跨平台支持
  23. 第4章 客户端负载均衡:Spring Cloud Ribbon
  24. 客户端负载均衡
  25. RestTemplate详解
  26. 源码分析
  27. 配置详解
  28. 重试机制
  29. 第5章 服务容错保护:Spring Cloud Hystrix
  30. 快速入门
  31. 原理分析
  32. 使用详解
  33. 属性详解
  34. Hystrix仪表盘
  35. Turbine集群监控
  36. 第6章 声明式服务调用:Spring Cloud Feign
  37. 快速入门
  38. 参数绑定
  39. 继承特性
  40. Ribbon配置
  41. Hystrix配置
  42. 其他配置
  43. 第7章 API网关服务:Spring Cloud Zuul
  44. 快速入门
  45. 路由详解
  46. 过滤器详解
  47. 动态加载
  48. 第8章 分布式配置中心:Spring Cloud Config
  49. 快速入门
  50. 服务端详解
  51. 客户端详解
  52. 第9章 消息总线:Spring Cloud Bus
  53. 消息代理
  54. RabbitMQ实现消息总线
  55. Kafka实现消息总线
  56. 深入理解
  57. 第10章 消息驱动的微服务:Spring Cloud Stream
  58. 快速入门
  59. 核心概念
  60. 使用详解
  61. 绑定器详解
  62. 配置详解
  63. 第11章 分布式服务跟踪:Spring Cloud Sleuth
  64. 快速入门
  65. 跟踪原理
  66. 抽样收集
  67. 与Logstash整合
  68. 与Zipkin整合
  69. 附录A Starter POMs
  70. 后记

FAQ

Can the code and examples in this book still be used directly today?
The code is based on Spring Cloud Dalston and Spring Boot 1.x, which differ considerably from current mainstream versions (Spring Cloud 202.x with Spring Boot 2.x or later). Core APIs and configuration approaches have changed, so copying it directly into new projects is not recommended. However, the design thinking behind the examples, the problem-solving methods, and the architectural concepts remain highly valuable for reference and can serve as a learning prototype.
How does this book differ from books such as Spring Cloud Alibaba: Microservice Principles and Practice?
This book focuses on the native Spring Cloud Netflix suite (Eureka, Ribbon, Hystrix, Zuul, etc.) and is an authoritative practical guide to learning the classic Spring Cloud system. Books such as Spring Cloud Alibaba, by contrast, focus on integrating Alibaba's open-source microservice components (Nacos, Sentinel, Seata, etc.) with Spring Cloud and represent another important direction in current microservice practice in China. The two reflect different eras and technology choices and can complement each other.
What background knowledge do beginners need before reading this book?
A solid grasp of core Java language features, basic use of the Spring Framework (especially Spring Boot), familiarity with Maven dependency management, and a basic understanding of HTTP and RESTful APIs. If you also know something about design patterns (such as proxy and template method) and foundational distributed-system concepts (such as the CAP theorem), you will learn even more effectively.

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

翟永超 Author

Zhai Yongchao: publicly available information is limited, and what can be confirmed comes mainly from his signed work Spring Cloud Microservices in Action. Judging from the title and its common classification under programming and design, the book is a practice-oriented technical title for developers, focusing on the implementation of Spring Cloud microservice architecture rather than a theoretical overview. Through this book, the author participates in organizing and spreading knowledge of microservices technology in China, with a writing approach oriented toward engineering practice, emphasizing operability and concrete problems in project scenarios. Only one work by him is held in the collection, and no further biographical, professional, or academic background is available for introduction. For readers interested in microservices development practice, the book can serve as one introductory and reference material; however, more detailed information about the author still needs to be confirmed through further public sources.

Top rated in the same category