I’ve always worked with REST APIs, and it’s been quite a learning experience with every project that I’ve worked on. Recently, I took up a task to create a simple application that uses WebSockets to communicate. The application should update the client’s side autonomously when it receives a message over the communication channel without polling the backend at regular intervals. Regular polling increases the load on the backend should the number of users increase.

Hence, the first constraint was to use WebSockets as a mode of the communication channel with the backend. Secondly, I wanted to keep the technology stack…


Screenshot of the original text: “Paxos Made Simple”

Paxos is one of the most difficult to comprehend algorithms in the Distributed Systems(DS) domain. However, it is a crucial part of the DS. To give you a brief, before I jump into the example, Paxos is a consensus algorithm that eventually concludes to a result. Having that said that, Paxos works perfectly under a few assumptions. Listing those assumptions is outside the scope of this article.

I try to remove the technical jargon from the ‘Paxos Made Simple’ (PMS) text by outlining a simple example, the Olympic Athletics Meet!

Let us dive right into it.

Disclaimer: I assume that…


I’m going to share my experience along the way as I learn to write better Go with each passing day. The articles in this series discuss the previous design that I implemented and its shortcomings. Finally, I discuss the newer design that I chose and why did I choose it.

Answering the WHY is super important.

Disclaimer: The post is not about the “Hello World.” It is about “Oh my God! Go Code.”

“Writing code is an art.” I’ve come to believe this after numerous instances where I learned that the approach I followed had some improvement scope. …


https://www.leoprinting.co.uk/blog/wp-content/uploads/2017/02/IMG_42503.jpg

It must have been, 2009 or maybe 2010. I was visiting my cousin on the occasion of an Indian festival. I was just moving around because I was eager to see what was being served.

And I noticed a small black device, placed on the dining table. It looked as if it was some sort of a block. A black block with curved silver colored back, with one button on the top. And I knew, seeing that button, that it was something electronic! But what could it be? …


How many times have we waited? Waited endlessly for someone to text? Waited endlessly for someone to call? Waited endlessly for someone to go out with?

That wait is never ending, even if there is no Hope. Our hearts fail to understand the logic of time and we tend to wait.

This letter, second installment to THE LETTER, is to the girl, he waits for, all day and night. Every second spent on Social Media reminds him of her. He only wishes one more chance, one more moment with her.

NOTE: This is fiction. It doesn’t relate to anyone’s personal…


How many times have we lied, even about the smallest of the things, to help us get through the door? The ultimate aim has always been to spend some time with them and eventually hide our emotions for we fear losing them.

A letter from a guy to the girl, who confesses to all the lies he’s told her. He leaves it on the girl to figure out the lies. But, he just mentions the Truth. It’s not a story with an ending but a sneak peek into what we might have been through, at some point in our lives.


This entire tutorial is the second part of the installation of Hyperledger Fabric v2.x. In the previous article, we installed all the dependencies required to make the Fabric environment run. In this part of the tutorial, we aim to launch our example network, execute some transactions, and query the Blockchain network to retrieve the values.

So, at first, Hyperledger Fabric Project’s “fabric-samples” repo provides many detailed examples and documentation. The one we’ll be using is the “asset-transfer-basic” code example.

To get started, we first need to clone the fabric-samples repo on your machine. …


There are a lot of events happening every week around the Globe on this technology behind Bitcoin, Blockchain. People, companies and governments have started to realize the value it holds and how it can revolutionize the current systems.

I had the opportunity to speak at BlockHash Live 2018, conducted by Kerala Blockchain Academy in Trivandrum, India on 6–8 December, 2018. It was a stage which was new to me and had an experience never before. …


Today, every other system is changing. Some include more complicated stuff like AI or Blockchain or as simple as Cloud or Big Data. Every system is going under an upgrade, whether tangible or not. It is not about the Technology sector but every sector that has been directly or indirectly related to the Tech. Sounds like: Yeah! We have heard it before. Is there something to add to this?

And with that notion in mind, I started exploring a new domain, completely out of my league, Economics. I’m not a commerce student but have studies Economics or at least the…


Conferences are one the most preferred way of learning an emerging tech. And Hackathons are the new documentation, when it comes to learning how to code using a technology.

One of the emerging technologies is the Blockchain, which has penetrated every technology domain, disrupting the decade Centralized Architecture and replacing that with the new Decentralized Architecture.

India is considered to be the second to the US, where the Blockchain Adoption has started at light speed and progressing towards new ideas and developments every single day. …

Akarsh Agarwal

All about Distributed Systems and Information Security. #golang #Cybersecurity #distributedsystems

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