r/SpringBoot • • 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

29 Upvotes

24 comments sorted by

View all comments

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.

1

u/Sheldor5 Aug 16 '24

microservices never call each other, first mistake ...

1

u/dns1211 Aug 18 '24

are you sure ?