Clusters with replication and failover

Image for post
Image for post

Editor’s note: this article has been edited to use a more thoughtful primary/secondary relationship between machines rather than the former, culturally insensitive terminology. In following along, depending on the terminology you use locally, you may need to update what we reference as primary/secondary here to match your systems. Thanks!

In distributed systems, achieving fault tolerance is one of the key criteria for success.

Let’s look at achieving fault tolerance and replication in a Redis network with Redis cluster and sentinels.

In this tutorial I’ll cover:

Keep up with the latest and best practices to build spring boot docker images.

Image for post
Image for post

As a Java Developer I am sure you must have heard of spring boot and probably Docker as well. Docker is phenomenon that has taken DevOps world by a storm.

Every new project and old one’s too are migrating to containers.

In this tutorial I will cover brief description of Docker containers and the essential tips that will help you get most out of Docker with Spring Boot.

Source code of the demo project is at

So what are these containers ?

Many view containers as virtual machines. They’re not. …

Image for post
Image for post

With Docker Desktop running on WSL 2, users can leverage Linux workspaces and avoid having to maintain both Linux and Windows build scripts.

How is it different ?

Applications that run on docker are limited to applications that are natively supported by the host operating system.

In other words, Docker for Windows can only host Windows applications inside Docker containers, and Docker on Linux supports only Linux apps.

Docker on windows : Challenges

Docker on windows always has been a challenge, earlier when I first used Docker back in 2017 it had following limitations,

Image for post
Image for post

Microservices are an architectural style that develops a single application as a set of small services.

Each service runs in its own process. The services communicate with clients, and often each other, using lightweight protocols, often over messaging or HTTP.

Microservices captures your business scenario, answering the question, “What problem are you trying to solve?”

Current Trend

Analysts predict that by 2022 developers will build 90% of all new applications on top of microservices.

What is so good about this method and should any business consider it as the best option for their next project?

Let’s find the right answers for your…

Image for post
Image for post
Photo by Luca Bravo on Unsplash

What is Cloud Foundry

Cloud Foundry is an open source, multi-cloud application platform as a service (PaaS) governed by the Cloud Foundry Foundation.

Cloud Foundry’s container-based architecture runs apps in any programming language over a variety of cloud service providers.

This multi-cloud environment allows developers to use the cloud platform that suits specific application workloads and move those workloads as necessary within minutes with no changes to the application.

Supported Languages

Languages and frameworks that can be deployed using the buildpack lifecycle include:

In this article we are going to cover PART 3 of the below series :

Image for post
Image for post

This article is part of the series. We will learn to use spring data and configure our database in MongoDB cloud.

In this series of tutorials, we are going to cover:

Let’s get started,

Step 1: Add the Maven Dependencies

Spring Boot provides a very convenient spring-boot-starter-data-mongodb project to add the dependencies we need to buid our entities and DAO layer.

We are also adding lombok dependency, this helps us avoid boilerplate in our java classes. Ref: lombok


The microservice architectural pattern is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms
- By Martin Fowler

Image for post
Image for post

In this series of tutorials, we are going to cover:

Excited?! So, let’s get started.

This tutorial does assumes you’re already familiar with the basics of Java, Maven and Eclipse IDE.

What is a Microservice

Microservices accelerate delivery by minimizing communication and coordination between people while reducing…

Avinash Singh

Software programmer trying to be a writer. Blogger@

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store