Microservices with Spring Boot and Spring Cloud: Build resilient and scalable microservices using Spring Cloud, Istio, and Kubernetes
Author:Magnus Larsson (Author)
Publisher finelybook 出版社: Packt Publishing
Publication Date 出版日期: 2025-08-11
Edition 版本: 4th ed.
Language 语言: English
Print Length 页数: 810 pages
ISBN-10: 1805801279
ISBN-13: 9781805801276
Book Description
2025 EDITION: Create and deploy production-grade microservices-based applications with this edition fully updated to the latest versions of Spring Boot, Java, and Spring Cloud
Key Features
- Build cloud-native production-ready microservices and stay ahead of the curve
- Understand the challenges of building large-scale microservice architectures
- Learn how to get the best out of the latest updates, including Java, Spring Boot, Spring Cloud, Kubernetes, and Istio
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
Do you want to build and deploy microservices but are unsure where to begin? Check out the fully updated 2025 edition of Microservices with Spring Boot and Spring Cloud.
Drawing from Magnus’ decades of experience, you’ll start with simple microservices and progress to complex distributed applications, learning essential functionality and deploying microservices using Kubernetes and Istio along the way.
This book covers Java 24, Spring Boot 3.5, and Spring Cloud 2025, featuring updated code examples and replacing deprecated APIs. You’ll get a clear understanding of Spring’s Ahead of Time (AOT) module, observability, distributed tracing, and Helm for Kubernetes packaging. The chapters show you how to use Docker Compose to run microservices with databases and messaging services and deploy microservices on Kubernetes with Istio. You’ll also explore persistence, resilience, reactive microservices, and API documentation with OpenAPI, as well as learn service discovery with Netflix Eureka, edge servers with Spring Cloud Gateway, and monitoring with Prometheus, Grafana, and the EFK stack.
By the end of this book, you’ll be able to confidently build scalable microservices using Spring Boot and Spring Cloud.
What you will learn
- Build reactive microservices using Spring Boot
- Develop resilient and scalable microservices using Spring Cloud
- Use OAuth and Spring Security to protect public APIs
- Implement Docker to bridge the gap between development, testing, and production
- Deploy and manage microservices with Kubernetes
- Apply Istio for improved security, observability, and traffic management
- Write and run automated microservice tests with JUnit, test containers, Gradle, and bash
- Use Spring AOT and GraalVM to compile your microservices into native executables
- Utilize Micrometer for distributed tracing
Who this book is for
If you’re a Java or Spring Boot developer learning how to build microservice landscapes from scratch, then this book is for you. Prior experience in building apps with Java or Spring Boot will help you get started with this book.
Table of Contents
- Introduction to Microservices
- Introduction to Spring Boot
- Creating a Set of Cooperating Microservices
- Deploying Our Microservices Using Docker
- Adding an API Description Using OpenAPI
- Adding Persistence
- Developing Reactive Microservices
- Introduction to Spring Cloud
- Adding Service Discovery Using Netflix Eureka
- Using Spring Cloud Gateway to Hide Microservices behind an Edge Server
- Securing Access to APIs
- Centralized Configuration
- Improving Resilience Using Resilience4j
- Understanding Distributed Tracing
- Introduction to Kubernetes
- Deploying Our Microservices to Kubernetes
- Implementing Kubernetes Features to Simplify the System Landscape
- Using a Service Mesh to Improve Observability and Management
- Centralized Logging with the EFK Stack
- Monitoring Microservices
(N.B. Please use the Read Sample option to see further chapters)
About the Author
Magnus Larsson, an IT industry veteran since 1986, has consulted for major Swedish firms such as Volvo, Ericsson, and AstraZeneca. Despite past struggles with distributed systems, today’s open source tools such as Spring Cloud, Kubernetes, and Istio offer effective solutions. For the past 10 years, Magnus has been helping customers use these tools and has shared his insights through presentations and blog posts.