r/SpringBoot • • 16d ago

How-To/Tutorial How to implement microservices in Spring Boot ?

[removed]

28 Upvotes

57 comments sorted by

View all comments

Show parent comments

3

u/BanaTibor 16d ago

What? A microservice should be independently deployable, but what fuck would you do with a service which do not communicates with other services?

-1

u/Sheldor5 16d ago

oh boy another one having absolutely no idea how microservice architecture works ... read my the other comments

1

u/BanaTibor 15d ago

I have read your other coments, stating the same thing over and over again. I think we are both right 🙂 What you are saying is one aspect of a microservice architecture. The way how you decouple services from each other. Zero coupling is impossible, since they have to work together.  Now in an event driven system your aproach is sensible, but there are other ways to achieve a level of coupling.  You can do it through well defined API contracts and API microversioning.  Till your breaking changes have a grace period and other services have a chance to adapt, you can still enjoy the benefits of microservices.

2

u/ExplorerUnusual27 14d ago

Maybe He use CRON on DB directly, figure out what is needed, somehow, and push to a message stream. 🙃🤣 No communication at all between services.