Skip to content

Latest commit

 

History

History
95 lines (60 loc) · 5.74 KB

README.md

File metadata and controls

95 lines (60 loc) · 5.74 KB

Book Extra Chapters - U.2.6: Upgrade to Spring Boot 2.6.2, Spring Cloud 2021.0, and JDK 17

Good news! The book contents are still good and everything in there applies to the newest releases. If you don't have it yet, get it now!

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.

Upgrade - Spring Boot 2.6.2, JDK 17

This extra chapter brings the project dependencies to the latest Spring Boot, Spring Cloud, 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.6.2/

Changes - migrating from Spring Boot 2.5.5 to 2.6.2

There are no additional changes needed in our codebase for this update apart from the version updates:

  • All poms changed from 2.5.5 to 2.6.2
  • Spring Cloud version now points to 2021.0.0
  • Docker-compose file also points to the new generated images

Gateway: a minor remark

After this update, I see a long stacktrace in the Gateway with a message as follows:

i.n.r.d.DnsServerAddressStreamProviders  : Unable to load io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider, fallback to system defaults. This may result in incorrect DNS resolutions on MacOS.
...        
Caused by: java.lang.UnsatisfiedLinkError: 'io.netty.resolver.dns.macos.DnsResolver[] io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.resolvers()'

This is only relevant if you're running the project in MacOS. It seems this has been always there but its logging level was promoted and now we see it in the console. It doesn't have any impact on the running microservice.

For more details about this topic, see:

References

Some additional references from the official documentation:

Running the app

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.

Questions

  • 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.

About the book

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.

Purchase

You can buy the book online from these stores:

Source code by chapter (all repositories are available on Github)

Extra chapters: