Clivern

A Software Engineer and Occasional Writer.

Building a Service Mesh with Consul

16 February 2019

Load balancers aren't efficient in a dynamic environment where we scale services up or down. Consul uses a registry to keep a real-time list of services, their location, and their health. Services query the registry to discover the location of upstream services and then connect directly. This allows services to scale up/down and gracefully handle failure

Read More

Docker in a Nutshell

21 October 2017

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files.

Read More

How To Set Up MySQL Master-Master Database Replication

03 September 2017

One of the most difficult tasks for software engineers is scaling out the databases incase of large traffic applications. Today we will discuss one of the horizontal scaling techniques which is the Master-Master replication. Master-Master replication adds speed and redundancy and also distribute the writes load over many servers.

Read More

Build Realtime Apps With Redis PubSub

02 September 2017

Last week I worked with Pusher. Pusher is really amazing product to build scalable realtime apps. Also there is slanger and Poxa, Both are open source implementation compatible with Pusher libraries. But today we will use PHP, NodeJs, SocketIO and Redis Pub/Sub To work with realtime messaging.

Read More

How To Install LAMP Stack on Ubuntu

02 May 2017

LAMP stack is a group of open source software and it stands for Linux, Apache, MySQL, and PHP. To install them Just run the following bash script with a non-root user with sudo privileges configured on a server running Ubuntu.

Read More

How to Install Apache Tomcat 8 on Ubuntu 16.04

30 April 2017

Tomcat is an open source web server used to serve Java Web Applications and provides a Java HTTP web server environment in which Java code can run. To install Tomcat Server Just run the following bash script with a non-root user with sudo privileges configured on a server running Ubuntu 16.04.

Read More

Custom Queries with WordPress WP_Query

20 September 2014

WP_Query is the heart of WordPress. It gives you a lot of control over the website content as well as holding important informations for debugging. It makes building complicated queries a lot easier by passing criteria as an associative array. Understanding WP_Query is a must for theme developers.

Read More