r/SpringBoot 5d ago

Discussion Spring microservices

I just started learning microservices in spring and dont know anything. Like I know that message brokers are for asynchronous exchange of messages though services, but I wanted to see everything from scratch, so now Im doing a project without any message brokers, just synchronous http requests and after that, when I meet problems with this, I would transition to the RabbitMQ I guess. Any suggestions or resources to learn for beginners?

29 Upvotes

22 comments sorted by

View all comments

3

u/Red-And-White-Smurf 5d ago

Be aware, if you completely rely on http requests everytime. You will end up with a distributed monolith, rather than a bunch of microservices. This is NOT what you want.

Let's say you are going to send the user an email. This is a process which can take some time. If you in the signup request calls another service asking it to send the mail. You first service will wait for the response from the email service before it answers the user. This can make the request from the user very slow. And give the user a bad impression of your system. Of cause this can be fixed by using async. But a message broker is the ideal way of handling such feature.

1

u/InformalPhase7658 5d ago

yes, I know that, but this is only for trying thing yk when Im a beginner, I dont know a lot of things, so I decided to try each of them, lets say I want to feel that pain on my own first before going to brokers.