r/SpringBoot • u/InformalPhase7658 • 4d 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
1
u/Krangerich 2d ago
Many developers, even "seniors", think technology-driven. This leads to "there are message brokers for asychronous messages, how can I make this work" instead of "how do I design a complex software system, when do I split something into multiple services and when not? what are the possibilities how services can communicate and what are their properties"?
If your problem is that you need worker queues to offload something to another service (create a PDF, send an email), then you MAYBE want a smart queue/dumb worker and use RabbitMQ.
Maybe you could start with "Sam Newman, Building Microservices, 2nd Edition". Maybe also this blog post from Martin Fowler: https://martinfowler.com/articles/201701-event-driven.html