Jump to ratings and reviews
Rate this book

Microservices with Spring Boot and Spring Cloud: Build resilient and scalable microservices using Spring Cloud, Istio, and Kubernetes, 2nd Edition

Rate this book
Create and deploy production-quality microservices-based applications — New edition updated for the smooth running of Spring, Java, Kubernetes, and Istio, with an introduction to Helm 3 and support for Mac and Windows with WSL2

Key FeaturesBuild cloud-native production-ready microservices with this comprehensively updated guideUnderstand the challenges of building large-scale microservice architecturesLearn how to get the best out of Spring Cloud, Kubernetes, and Istio in combinationBook DescriptionWant to build and deploy microservices, but don’t know where to start? Welcome to Microservices with Spring Boot and Spring Cloud.

This edition features the most recent versions of Spring, Java, Kubernetes, and Istio, demonstrating faster and simpler handling of Spring Boot, local Kubernetes clusters, and Istio installation. The expanded scope includes native compilation of Spring-based microservices, support for Mac and Windows with WSL2, and an introduction to Helm 3 for packaging and deployment. A revamped security chapter now follows the OAuth 2.1 specification and makes use of the newly launched Spring Authorization Server from the Spring team.

You’ll start with a set of simple cooperating microservices, then add persistence and resilience, make your microservices reactive, and document their APIs using OpenAPI.

Next, you’ll learn how fundamental design patterns are applied to add important functionality, such as service discovery with Netflix Eureka and edge servers with Spring Cloud Gateway. You’ll deploy your microservices using Kubernetes and adopt Istio, then explore centralized log management using the Elasticsearch, Fluentd, and Kibana (EFK) stack, and then monitor microservices using Prometheus and Grafana.

By the end of this book, you'll be building scalable and robust microservices using Spring Boot and Spring Cloud.

What you will learnBuild reactive microservices using Spring BootDevelop resilient and scalable microservices using Spring CloudUse OAuth 2.1/OIDC and Spring Security to protect public APIsImplement Docker to bridge the gap between development, testing, and productionDeploy and manage microservices with KubernetesApply Istio for improved security, observability, and traffic managementWrite and run automated microservice tests with JUnit, testcontainers, Gradle, and bashWho this book is forIf you’re a Java or Spring Boot developer learning how to build microservice landscapes from scratch, then this book is for you. You don’t need any prior knowledge about microservices architecture to get started, but a solid grasp and enough experience in Java and Spring Boot to build apps autonomously is a must.

Table of ContentsIntroduction to MicroservicesIntroduction to Spring Boot Creating a Set of Cooperating MicroservicesDeploying our Microservices using DockerAdding an API Description using OpenAPIAdding Persistence Developing Reactive MicroservicesIntroduction to Spring CloudAdding Service Discovery Using Netflix EurekaUsing Spring Cloud Gateway to Hide Microservices Behind an Edge ServerSecuring Access to APIsCentralized ConfigurationImproving Resilience Using Resilience4jUnde

774 pages, Kindle Edition

Published July 29, 2021

25 people are currently reading
20 people want to read

About the author

Magnus Larsson

12 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (71%)
4 stars
1 (14%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
1 (14%)
Displaying 1 of 1 review
Profile Image for Yaroslav Brahinets.
118 reviews3 followers
December 6, 2023
A fantastic overview of modern web development using lightweight, scalable microservices on Java, based on the Spring Framework ecosystem, with Kubernetes on top. Each chapter is supplemented by great examples (available on GitHub here). Do you remember the Eight fallacies of distributed computing ?:

1. The network is reliable
2. Latency is zero
3. Bandwidth is infinite
4. The network is secure
5. Topology doesn't change
6. There is one administrator
7. Transport cost is zero
8. The network is homogeneous

There are many challenges and pitfalls here. Wanna be safe? Be honest, have you ever tried to implement your own homemade supercool version of a load-balancer, or maybe experienced cascade failures, debugged distributed configuration, or had luck of monitoring and logging? There are numerous tools in the modern world for that, and the author provides an overview of one of the most popular ones. Of course, you can easily find information online, but the main value of the book - it is really hands-on, it guides you step by step, and in the end, you have a robust and comprehensive set that works together, that helps to be much more confident. Moreover, the author not only provides solutions but also elegantly discusses the problems and fallacies, pros and cons. So the reader not only learn the tool but also become aware of potential issues with this tool. As they say, "forewarned is forearmed".

Definitely worth reading and highly recommended. Check out the latest edition (3rd one, as of the review date, December 6th, 2023) and good luck in your work!
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.