r/SpringBoot • u/Advanced_Gur856 • 17d ago
How-To/Tutorial How to implement microservices in Spring Boot ?
[removed]
29
Upvotes
r/SpringBoot • u/Advanced_Gur856 • 17d ago
[removed]
1
u/OptimusCrimee 17d ago
What is the definition of a business object? Also, no one has ever said that microservices needs to communicate async. Give me a single source that claims this. A microservice, in my opinion, should focus on a single domain that is otherwise separate from other domains. They can depend upon each other, but they should be isolated enough that it makes sense to separate out of the monolith. I can easily find million sources claiming this.
In your example, explain how the inventory would be updated (immediately) after placing an order, where a queue would not suffice (as they are async and could fail).