Skip to main content

Posts

Showing posts from November, 2017

Terraforming in AWS Cloud

HashiCorp's Terraform is a wonderful tool to create and manage Infrastructure as Code (IaC). IaC is the modern approach to manage infrastructure and a key part of DevOps practice. The idea of IaC is to treat infrastructure in the same way as we treat an application/software. It should go through similar cycles of version control, continuous integration, review and testing. In this blog post, we'll use Terraform to create a simple, secure and scalable infrastructure for web servers in AWS. The following diagram shows the landscape that we are about to create using Terraform. Assumptions Since we are going to use AWS provider, we need to possess appropriate access credentials. So we must have a user with programmatic access and permissions to create/modify/delete AWS resources. The AdministratorAccess policy is a good start, however it provides full admin access which may not be appropriate in all cases. Download and install Terraform Downloading and ins...

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...