---
title: "Discussion on \"Wiring Communication Between Microservices\" | Hashnode"
description: "Discussion on \"Wiring Communication Between Microservices\". Choosing a mean to connect microservices is never an easy task, many factors are taken into account before resorting to an option. If you are building a production-ready system, I guess the principle of weighing all factors hold true. Yes, I know thi..."
url: "https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Wiring Communication Between Microservices](https://melvinkoh.me/wiring-communication-between-microservices?utm_source=hashnode&utm_medium=feed)

Choosing a mean to connect microservices is never an easy task, many factors are taken into account before resorting to an option. If you are building a production-ready system, I guess the principle of weighing all factors hold true. Yes, I know thi...

Jul 22, 2019 · melvinkoh.me  
Read the article

-   [#microservices](https://hashnode.com/tag/microservices)
-   [#message-queue](https://hashnode.com/tag/message-queue)

## Written by

[Melvin](https://hashnode.com/@melvinkcx)

@melvinkcx · 🌎

  
[View profile](https://hashnode.com/@melvinkcx)

Software Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[TheSheriff](https://hashnode.com/@hipkiss91)

[Jul 22, 2019](https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688/comment/5d35a13431d70ef873280da9)

#deepstream.io

[Siddarthan Sarumathi Pandian](https://hashnode.com/@spsiddarthan)

[Jul 22, 2019](https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688/comment/5d358b3397b8d5df313c9eb9)

Did you have a chance to explore the AMQP protocol? [Melvin Koh](https://hashnode.com/@melvinkcx)

**No single-point-of-failure -> This ruled messaging queue out** Why are queues a single point of failure? You can set up automatic retries with a broker like RabbitMQ. **Errors are propagated back to caller/client/consumer** You can use acknowledgments for this using the brokers as well.

[Melvin](https://hashnode.com/@melvinkcx)

[Jul 22, 2019](https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688/comment/5d358b3397b8d5df313c9eb9#reply-5d359658eb80aacc60aee767)

Message queue is a single point of failure because once the connection to the queue/broker itself is down. All services are basically isolated and can't communicate with each other.

[j](https://hashnode.com/@chilimatic)

[Jul 22, 2019](https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688/comment/5d358b3397b8d5df313c9eb9#reply-5d35b001db9ebd7b7a9c5adb)

[Melvin Koh](https://hashnode.com/@melvinkcx) depends on the definition of message queue. Usually it's a queue so a FiFo structure that contains 'messages' as some kind of Buffer/Cache/DB depending on the persistence definition. the level of distribution, isolation, sharding, p2p or other implementations are up to the implementing party and restricted by the protocols.

In other word you can basically have a local p2p torrent like system where you replicate your message/queues to at least N/2 shards. Just top of my head not even considering the other complications like quorums, source of truth. Also the question is about what you can communicate ... anyhow I am pretty sure you considered all this stuff as well :P just wanted to sound smart in my lunch break ;)

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Jul 22, 2019](https://hashnode.com/posts/wiring-communication-between-microservices/5d357fce06ce47fb2c727688/comment/5d358b3397b8d5df313c9eb9#reply-5d363d84db9ebd7b7a9c6289)

> Message queue is a single point of failure I would really say the opposite. When you plan for production, your message queue will need to support somne sort of clustering for dealing with failure. For instance (because AMQP was mentioned) RabbitMQ offers tons of knobs to control your durability/replication vs performance, and it’s one of the most stable pieces of infrastructure I ever had to maintain in production. But others solutions (MQTT, Kafka, ...) are there really to give you a durable and resilient central bus.

In my opinion though, I would consider messages bugs (or distributed logs) in a separate category than RPC or transaction-based things like REST. Message queues are really interesting when you want to decouple the load or parallelize task (you can build really awesome topologies with Rabbit or Kafk), to make the public-facing (with many definitions of public) endpoints as lightweight as possible, and smooth out and parallelize the work at the other end with workers. What I mean is that both have strengths, and should be used depending on the context. And as your platform grows, it might make sense at some point to use more than one paradigm.
