This repository contains the source code of the practical use case described in the book Learn Microservices with Spring Boot (2nd Edition).
If you want to know more details about the book and its extra chapters, make sure to visit this page.
The book follows a pragmatic approach to building a Microservice Architecture, using a reference implementation that evolves from a small monolith to a full microservice system.
This extra chapter brings the project dependencies to the latest Spring Boot and Java versions.
All these changes are described in detail in a blog post at The Practical Developer's website. Visit https://thepracticaldeveloper.com/book-update-2.5.5/
A summary of the updates included in this package:
- [Multiplication]: Changed the logic of
ChallengeGeneratorService
to use the new JDK 17'sRandomGenerator
interface. This fixes a test but also uses good testing practices (Mock over Spy). - [Gamification]: Removed the trick inside
application-default.properties
since that's not needed anymore and broke the build after the update.
The full description is here.
Some additional references from the official documentation:
You can use Docker to start the complete system, and you can also run the services one by one on your computer. See the book's last chapter repository for the detailed instructions.
I pushed the new images to the public registry, so you can get the system up and running with the new versions using Docker Compose:
docker$ docker-compose -f docker-compose-public.yml up
- Do you have questions about how to make this application work?
- Did you get the book and have questions about any concept explained within this chapter?
- Have you found issues using updated dependencies?
Don't hesitate to create an issue in this repository and post your question/problem there.
Are you interested in building a microservice architecture from scratch? You'll face all the challenges of designing and implementing a distributed system one by one, and will be able to evaluate if it's the best choice for your project.
Buy the book at Amazon, or visit https://tpd.io/book-extra for all the details.
You can buy the book online from these stores:
- Chapter 3. A professional 3-tier 3-layer Spring Boot app
- Chapter 4. Building a basic frontend in React (backender-friendly)
- Chapter 5. The Data Layer Concepts and Spring Data JPA
- Chapter 6. Starting with Microservices - Synchronous
- Chapter 7. Event-Driven Architectures - Making our system asynchronous
- Chapter 8 (I). The Gateway Pattern in Microservice Architectures (Spring Cloud Gateway)
- Chapter 8 (II). Service Discovery and Load Balancing for Spring Boot Microservices (Consul / Spring Cloud Load Balancer)
- Chapter 8 (III). Centralized Configuration with Consul KV
- Chapter 8 (IV). Centralized Logs, Distributed Tracing, and Containerization with Docker (Buildpacks) and Docker Compose
Extra chapters: