anuj Archive

What are Microservices?

Microservice decouple the application into different domains depends on logic of responsibility. Microservices communicate with each other in a network through REST with no knowledge of how other service is working internally. This composition of different service in a framework is called Microservice architecture. As all services are independent of each other, any bug or

Cloud Federation

Cloud federation means resources of 2 or more cloud are completely available to each other in terms of authentication, files, computing resources, control structures or access to storage resources. One of the point to note, the term federation doesn’t mean they are physically connected to each other.

Golang tutorial Part -1 Installation and Basics

What is Golang Go also known as Golang is an open source, compiled and statically typed programming language created by Google. The primary focus of Golang is to make the development of highly available and scalable web apps simple and easy. Why Golang Why would you choose Golang as your service side programming language when there are tonnes

Docker Cheatsheet

Most common Docker commands in the nutshell. 1. To list all running containers $ docker ps -a  2. To view all running containers IDs $ docker ps -aq 3. Pull image using image name $ docker pull <image_name> 4. To start a container $ docker run <image_name> The above command will start a container for that image and

Postgres sql database cheatsheet

In this post, I am installing postgres on ubuntu and then will perform different sql operations on it. Installation commands may vary with other distributions like CentOS or Mac. To install: [crayon-5ded8da7bffa4080757113/] This will also install other dependencies. To connect to Postgres: [crayon-5ded8da7bffb5068206695/] To check the login info, use the following command [crayon-5ded8da7bffc3975335626/] By default, PostgreSQL will

Strong Consistency Models and HTTP

In a wonderfully-written article, Kyle Kingsbury explores different models of strong consistency and I thought it would be interesting to consider how to apply some of these concepts in the context of the HTTP protocol given the prevalence of web APIs in modern architectures. HTTP is an amazingly expressive protocol, especially for caching semantics, yet in my experience

Zombie vs Orphan process

When a process terminates, its resources are deallocated by the operating system. However, its entry in the process table must remain there until the parent calls wait(), because the process table contains the process’s exit status. A process that has terminated, but whose parent has not yet called wait(), is known as a zombie process. All