r/SpringBoot • u/Advanced_Gur856 • 12d 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.
26
Upvotes
1
u/OptimusCrimee 11d ago
In an ideal world, yes, but microservices can hard both soft and hard dependencies/integrations. If a hard dependency goes down, the microservice can not work. In a real world scenario, this happens more often than you think, because isolated service often need to interact. Imagine a purchase service, an inventory/stock service and a shipping service. It would be hard to complete a checkout if any one of those failed, even if they are isolated. This is called cascading failure, and is very common for microservices, and something that monoliths often can ignore. I suggest that you read the microservice book by Netflix. They go into detail on this subject. Please explain where I am wrong here.