Skip to main content

Posts

Showing posts with the label emqttd

Automating EMQ Cluster Provisioning On AWS

Automating infrastructure on cloud is an interesting topic, one that is both intriguing and challenging at the same time. With a proper arsenal of  DevOps tools, this becomes pretty straightforward. In this blog post, we will attempt to create an EMQ cluster ( Erlang MQTT ) in AWS using popular HashiCorp tools like Packer and Terraform .  For a simple guide to setup EMQ cluster using Oracle VirtualBox, please refer to this post . Additionally, it is assumed that the reader is moderately versed with technologies like Packer & Terraform and has basic understanding of AWS networking & EC2 instances. Before we proceed into the technical nitty-gritty, here's a brief overview of what we will try to achieve. Crux of the matter  First of all, we will 'bake' an Amazon Machine Image or AMI for short, using Packer. This AMI will have EMQ (emqttd) installed. Subsequently, we'll use this custom AMI in our Terraform script to spin up EC2 instances and create...

EMQ Clusters

Erlang MQTT or EMQ Broker is acclaimed as one of the best open source MQTT brokers available in the market to serve the needs of a large scale enterprise. It is powered by Erlang/OTP and can support millions of concurrent MQTT clients.  To read more about Erlang MQTT Broker, follow this  link . Features inherent to EMQ that have earned it the right fame are: Distributed Fault tolerant Massively scalable Highly extensible In this blog, I shall attempt to provide a list of simple steps to create an EMQ cluster with two nodes and then connect to the cluster using a MQTT subscriber and a publisher and route messages between them. I shall assume the reader's moderate acquaintance with MQTT, Oracle VM VirtualBox and Raspberry Pi 3. Here are the components I'll use: EMQ cluster with two nodes in a Ubuntu 16.04 Oracle Virtual Box VM A MQTT subscriber connected to the second node of the cluster A MQTT publisher connected to the first node of the cluster (from Raspb...