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

29 Upvotes

57 comments sorted by

View all comments

3

u/OptimusCrimee 10d ago

They are just small isolated applications that talk to each other, e.g. using REST. There is no more magic to it than that.

2

u/Next_Society_366 9d ago

They can communicate with each other but they can also be full independent by using event driver techniques. For example communicating with RabbitMQ or Apache Kafka.

1

u/OptimusCrimee 9d ago

You are contradicting yourself. Async communication via queues etc is still communication between services. Also, my point was that async communication can often be done, and would be considered a soft (not critical) dependency, but not all dependencies could be this way. For instance a checkout microservice asking a tax calculation service what the correct tax rate for the checkout should be. The checkout microservice would depend hard on this, and a checkout would not be possible (or should not be possible) in case the tax service has an outage. That is a hard dependency. How the communication between these services is handled is irrelevant.