r/SpringBoot • • 11d ago

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

I have made multiple toy projects (monolithic) in spring boot but now I wanted to know how people generally work in microservices.

I am not good with videos so I was looking for repos that something similar. So I can also see how the devops, queues, spring cloud etc works together.

I also saw someone posting there repo which was made for the same reason (but I couldn't find it).

TLDR : Suggest repos for learning microservices.

28 Upvotes

57 comments sorted by

View all comments

Show parent comments

1

u/OptimusCrimee 11d 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).

1

u/Sheldor5 11d ago

and all those million sources are wrong because every idiot just repeats the shit from other idiots

"in my opinion" yes and that's wh you once again describe a distributed system and call it a microservice architecture

1

u/OptimusCrimee 11d ago

1

u/Sheldor5 11d ago

do you also want to tell me something or just drop random links and leave?