Choosing Between Direct Service Calls and Message Queues
Van Chung
·12678 views
hey everyone, im wrestling with a common architectural decision and wanted to get some community input. weve got a few microservices that need to communicate, and right now, most of them are making direct HTTP calls to each other. it works fine for the most part, but im starting to see a few scenarios where tight coupling is causing some headaches, especially around error handling and retries. ive been reading up on message queues like Kafka and RabbitMQ as an alternative for asynchronous communication. the idea of decoupling services and handling spikes in load with a queue sounds appealing. however, it also introduces more infrastructure to manage and potentially more complexity in tracing requests. when did you all make the switch from direct calls to a message queue? what were the key indicators or pain points that pushed you towards it? are there specific types of inter-service interactions that are better suited for queues versus direct calls?
37 comments