r/SpringBoot • u/[deleted] • Aug 16 '24
Roadmap for learning micro services with Springboot ?
Hi all,
I’m a React and Node.js developer looking to transition into microservices using Spring Boot. Could anyone suggest a roadmap or key resources to get started?
I'm especially interested in best practices, integration tips, and any recommended hands-on projects Thanks
7
Aug 16 '24
There's two books that I think are good, but they are pretty lengthy, so they are more of a reference or a long course, than a quick start guide:
Microservice Patterns by Chris Richardson: this is more general but it is based on Java.
Cloud Native Spring in Action by Thomas Vitale: this one is based on Spring Boot and is fairly recent (2022) but bear in mind that new mayor versions of Spring and Spring Boot have come out since then.
3
u/JoeDogoe Aug 16 '24
The original rules of microservices is Adam Wiggins 12 factor apps. https://12factor.net/
Then Martin Fowler's Characteristics of Microservices https://martinfowler.com/articles/microservices.html
Finally my personal favourite David Schmitz how to fail at microservices talk. https://youtu.be/r8mtXJh3hzM?si=ZdGXpJytT-WSllbB
For the first two I'm sure you'll find high quality YouTube videos of those concepts.
1
-4
u/Sheldor5 Aug 16 '24
simply don't do Microservice Architecture.
best advice I can give you.
7
u/momsSpaghettiIsReady Aug 16 '24
Find me an employer that doesn't do microservices first.
We'd all love to avoid it, but the reality is that this architecture is everywhere, whether it's the right choice or not.
0
2
1
25
u/momsSpaghettiIsReady Aug 16 '24 edited Aug 16 '24
Biggest tips I can give:
Reduce synchronous http calls between services.
Favor async when you can. Need data from another service? Have the service that owns the data publish an event when it changes.
A microservice should never share a database with another service.
Test the crap out of your services with automated tests. It's hard to build on a brittle foundation.
Edit: a few more
Managing dependencies is hard. Look into gradle version catalogs so that all external dependency versions are in one spot and synced between apps.
Don't write your http clients by hand. Use springdoc openapi to autogenerate clients.