Spring Cloud Microservices in Action cover

Spring Cloud Microservices in Action

Rating 3.3
Word count
64K words
Chapters
61
ISBN
9787894466044

Tags

Summary

This book covers an introduction to microservices, service governance with Eureka, load balancing and service interface invocation, service fault tolerance with Hystrix, the service gateway Gateway, configuration center and message bus, service registration and discovery with Nacos, Nacos configuration management, microservice rate limiting and circuit breaking with Sentinel, distributed solutions with Alibaba Seata, and request link tracing with SpringCloud Sleuth.

Through studying this book, students can master the knowledge and practical application of SpringCloud microservices.

Editor's review

As a beginner-to-advanced guide focused on the practice of Spring Cloud microservices architecture, this book's value lies in its close integration of theoretical knowledge with common scenarios in production environments. The author, Chen Hui, has extensive experience in technical training and projects, which enables the book not only to systematically organize the core components of Spring Cloud—such as service registration and discovery (Eureka), the configuration center (Config), the service gateway (Zuul/Gateway), and the circuit breaker (Hystrix)—but also to emphasize hands-on cases that demonstrate how these components work together to build robust distributed systems. Compared with some materials on the market that are either overly theoretical or based on outdated versions, a notable feature of this book is that its content is based on a relatively recent version of Spring Cloud and provides clear solutions and code examples for difficult issues in microservice governance, such as service traceability and distributed transactions. This has direct reference value for development teams transitioning from monolithic applications to microservices. Of course, technology iterates rapidly, and readers need to consult the latest official documentation to fill in gaps. Overall, this is a solid, practice-oriented handbook suitable as a desk reference during project development, helping readers bridge the gap from "knowing" to "being able to use."

Who it's for

A good fit for

  • Java developers with a Spring Boot background who want to systematically learn the Spring Cloud microservices architecture
  • Core members of technical teams currently undertaking or about to begin a microservices transformation project
  • Developers who need a clearly structured, practical reference book to help solve real development problems
  • Computer science students with a basic understanding of distributed system principles who want to consolidate it through hands-on work with mainstream frameworks

Not a good fit for

  • Complete beginners with no Java or Spring framework background
  • Senior architects seeking in-depth source code analysis or detailed coverage of cutting-edge technologies in the latest versions (such as the Spring Cloud Alibaba ecosystem)

Reading tips

  1. Read the chapters in order and complete the examples in the book by hand, focusing on understanding each component's role and interactions within the overall architecture
  2. While reading, compare the book with the official Spring Cloud documentation and pay attention to the latest developments and configuration differences of the components
  3. For complex chapters such as 'service governance' and 'distributed transactions,' supplement with other specialized materials or online courses to build a more well-rounded knowledge system

About the publisher

Chongqing University Electronic Audio-Visual Publishing House focuses on electronic and audio-visual publications in the social sciences, science and technology, and education, and is involved in developing and operating digital teaching platforms and professional teaching-resource databases. Its 169 titles in the catalog cover social sciences, popular science, medicine, management, examinations, and programming design. They include social-science and popular-science works such as Review of Social Research Methods (Vol. 1) and An Illustrated Guide to the Wildlife of Guangdong Grand Canyon (2 vols.), medical humanities titles such as The Cell Renegade and Fatal Redemption, and management and technical textbooks such as Brand Operations and Planning, Digital Electronic Technology (2nd ed.), C# Programming and WinForms Basics, and Data Cleaning Techniques and Applications. Contributors include Zhao Lianfei, Zhao Feng, Hou Yu, Chen Zhe, Peng Meiqian, and Wang Jingping, as well as institutions such as the Guangdong Ruyuan Grand Canyon Provincial Nature Reserve Management Office and Guangzhou Caomufan Environmental Technology Co., Ltd. Owing to limited public information, its publishing profile is best seen as running across academic reviews, nature guides, medical popularization, and information-technology textbooks.

Contents

  1. 版权信息
  2. 内容提要
  3. 前言
  4. 第1章 微服务介绍
  5. 1.1 微服务概述
  6. 1.2 微服务架构的优缺点
  7. 1.3 SpringCloud是什么
  8. 1.4 SpringCloud和Dubbo的区别
  9. 1.5 SpringCloud和SpringBoot的区别
  10. 第2章 服务治理-Eureka
  11. 2.1 什么是服务治理
  12. 2.2 注册中心
  13. 2.3 服务注册
  14. 2.4 服务发现
  15. 2.5 心跳检测和服务续约
  16. 第3章 负载均衡与服务接口调用
  17. 3.1 负载均衡-Ribbon
  18. 3.2 服务通信与调用-OpenFeign
  19. 第4章 服务容错-Hystrix
  20. 4.1 Hystrix 概述
  21. 4.2 Hystrix的服务降级
  22. 4.3 Hystrix服务降级常用方案
  23. 4.4 Hystrix熔断以及原理
  24. 第5章 服务网关-Gateway
  25. 5.1 Gateway在微服务中应用
  26. 5.2 Gateway架构解析
  27. 5.3 Gateway三大核心概念
  28. 第6章 配置中心与消息总线
  29. 6.1 Config是什么
  30. 6.2 Config配置总控中心搭建
  31. 6.3 Bus是什么
  32. 6.4 Bus实现动态刷新全局广播配置
  33. 第7章 服务注册与发现-Nacos
  34. 7.1 Alibaba Nacos描述
  35. 7.2 Nacos的安装与示例
  36. 7.3 Nacos实现原理与架构图
  37. 第8章 Nacos配置管理
  38. 8.1 配置中心简介
  39. 8.2 Nacos Config的基本应用
  40. 8.3 动态更新配置与切换
  41. 8.4 自定义Namespace和Group
  42. 8.5 Nacos集群架构说明
  43. 第9章 微服务限流及熔断Sentinel
  44. 9.1 Sentinel简介
  45. 9.2 服务限流的作用及算法
  46. 9.3 Spring Cloud集成Sentinel实践
  47. 9.4 Spring Cloud Gateway集成Sentinel网关限流
  48. 9.5 Sentinel服务降级简介
  49. 9.6 Sentinel服务降级实践
  50. 9.7 Sentinel服务熔断简介
  51. 9.8 Sentinel服务熔断实践
  52. 第10章 分布式解决-Alibaba Seata
  53. 10.1 事务的概述
  54. 10.2 什么是分布式事务
  55. 10.3 常见的分布式事务解决方案
  56. 10.4 Seata实战案列
  57. 第11章 请求链路跟踪-SpringCloud Sleuth
  58. 11.1 什么是分布式服务跟踪系统
  59. 11.2 分布式服务跟踪系统的设计
  60. 11.3 快速入门
  61. 11.4 与Zipkin整合

FAQ

Are the code examples in this book complete and runnable?
The book provides fairly complete project examples, but technical frameworks evolve quickly, and some dependency versions may need to be adjusted for the current environment before they run smoothly.
How is this book different from 'Spring Cloud Microservices in Action' by Zhai Yongchao?
The two books share the same core topic. Chen Hui's book places more emphasis on a practice-oriented, project-driven approach; Zhai Yongchao's version is more widely circulated among domestic developers and has a more classic structure. Readers can choose based on their preferred narrative style; the core knowledge is the same.
How long does it take to study this book?
If you have a solid Spring Boot background and invest 2–3 hours per day, it will take roughly 3–4 weeks to read through the book and complete the basic hands-on work. To reach a level of proficient application, you will need longer practice and reflection in real projects or simulated environments.

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

Chen Hui Author · Chinese · 1978

Chen Hui, born in 1978 in Rugao, Jiangsu, now lives in Yuyao, Zhejiang. Known as a "vegetable-market woman writer" because she has long worked as a market vendor while writing, she began writing in 2010 and published her first essay collection in 2018. She has since released several books, including In the Market, in the World and Where There Are Flowers, recording the everyday lives of ordinary urban people in a sincere, understated style drawn from the people and events around her. Eleven of her titles are held in the collection, spanning essays, medicine, foreign literature, biography and management, among them a work on classical pediatric texts, a biography of Churchill's mother, and a study of online brand communities. Public information about her education, awards and personal history is limited, so no further details are given here.

谢道莫 Author

Xie Daomo is an author about whom relatively limited public information is available; only one work by this author is included in the collection, namely SpringCloud Microservices in Practice. Judging from the title and its common classification, the book is aimed at exam preparation and learning scenarios and focuses on the practical application of the SpringCloud microservices architecture, placing it in the category of hands-on technical writing. Because the author's biography, nationality, educational background, and professional experience are not clearly documented, no further introduction to the author's personal history can be provided. Readers can only learn about the author's writing orientation through this work: it takes a specific technical framework as its subject, emphasizes operability and real-world application, and serves the needs of exam candidates and technical beginners. Overall, Xie Daomo's profile as a writer is currently represented mainly by this single work, whose subject matter is closely tied to the practical needs of microservices development and whose style tends toward the pragmatic, making it suitable for readers who wish to use SpringCloud to grasp basic microservices practices.

More by the same author

Top rated in the same category