Message Producer and Consumer Using Golang on CloudAMQP
Introduction In this article, I will explain a sample code of producer and consumer written in Go with RabbitMQ acting as a message broker. We will use the RabbitMQ hosted in the cloud (CloudAMQP) instead of installing one in a local server. A message broker is an architecture pattern where messages are translated from the formal messaging protocol of the publisher to that of the receiver. A few of the popular open source message brokers are Apache ActiveMQ, Apache Kafka, Apache Qpid, Hornetq from JBoss, and RabbitMQ (Mozilla Public License). About CloudAMQP and RabbitMQ CloudAMQP is a managed RabbitMQ server in the cloud. A RabbitMQ server cluster can be scaled on need basis at CloudAMQP and it comes with diagnostic tools to help identify common errors in your RabbitMQ cluster. RabbitMQ is an open source message broker software where a producer is an application that sends messages to an exchange which is responsible for routing the messages to different queue...