Ask HN: What type of communication between microservices you use by default
Here is a diagram to illustrate two commons way of communication https://ibb.co/Ch5Vsdz
Do you use direct communication or message bus by default? Are there any pros or cons that are missing from the diagram?
(
4 comments
| 2 points
| on HN
)
I tend to reach for a message bus when N consumers may need to know about an event that happened.
I usually start with a synchronous API call to the target service over http and only reach for other methods when reliability, response time, or throughput concerns justify it.
So more direct to your question, I guess you could say 1 request became 2 queue calls, 8 bus events, and a dozen direct network calls at 90% cache hit ratio.