Skip to main content

Posts

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

AWS- Deploying Web Servers in Private Subnets

In this post, I will attempt to explain how to deploy Web Servers in private subnets. The common deployment pattern followed by newbies is to deploy Web Servers in public subnets or edge network and use an Elastic Load Balancer to route traffic to them. However, one may want to deploy such servers in private subnets or core network owing to better security and/or company network policies. So let us skip the fluff and get down to the nitty gritty. Assumptions I assume the reader is modestly aware of AWS services like Elastic Compute Cloud (EC2), Elastic Load Balancer (ELB); has knowledge of Virtual Private Cloud (VPC) and can spin up EC2 instances. Objective The objective is to present a highly available (in a single region) and secure deployment solution for a set of Web Servers. Explanation I shall use the diagram below, to explain the deployment. Diagram-1 The solution has the following significant components: The solution spans two AZs to provid...