Menu
Back to Discussions

dont use a message queue if you need to send a message and get an immediate answer, like calling an API.

Liya Chung
Liya Chung
·2737 views
hey everyone, i've been thinking about inter-service communication lately. we've got a few scenarios where services need to notify others about events. sometimes its a fire-and-forget notification, other times its a critical data update. im curious to hear your thoughts on when a message queue (like Kafka or RabbitMQ) is the better choice over direct synchronous API calls. are there specific patterns or scaling needs that push you towards queues? what are the pitfalls of each approach when dealing with high throughput or strict consistency requirements? looking forward to hearing your experiences and best practices.
31 comments

Comments

Loading comments...