The archive of everything I've written.
I quit my job, built 8 freelance projects at a time, and made good money but… lost happiness💡
3 months back, I quit my job, without much of a plan on what to do next. So, here is my experience so far.
How I built a real-time blog view counter with NextJs and Firebase 👨💻
I wanted to build a simple, free solution for tracking blog post views (with lazyload) on my website for better accuracy and privacy for the readers. This blog is a documentation of my journey to build this solution using NextJs + firebase and deploy it for absolutely free.
Pagination with Cassandra - let’s deal with paging large queries in python 🐍
Pagination in Cassandra is one of the hair-pulling problems. Sometime back, I encountered a use case where I had to implement pagination in Cassandra. But my happiness got vanished when I found, there is no such thing as LIMIT, OFFSET and BETWEEN in Cassandra at all.
Counting my contributions to a git repo 💻
Recently, I resigned from my position as a software engineer to try out a different path. My crooked mind didn't let me enjoy the notice period and started wondering, exactly how many commits or lines of code I contributed while working here for the last 1 year.
A directory is not a folder.
I started using computers with Windows and later switched to Linux. I didn't even realize my transition from using the term folder to directory. Yesterday, my crooked mind tricked me to research why folders are called directories in Linux.
Prevent duplicate cron job running.
Today, while working on an in-house project, I encountered a really interesting concurrency problem. I have scheduled a cron job to run every 30 minutes, but if the script takes more than 30 minutes to finish, another cron job started and these jobs started stacking up over each other. This essay discusses my approach to get rid of this interesting issue.
What is latency? Let’s deep dive & understand possible ways to optimise it.
Latency is yet another, a very important topic when we talk about backend engineering or networking. In this article, we will be discussing latency, it's importance and ways to optimise it in order to improve application performance.
Introducing Bestresources.co - Share & explore personal resources at one place!
The Web is crowded. So, I asked engineers from Google, Facebook, Uber etc to share their personal resources and built Bestresources.co
What is the sorting algorithm behind ORDER BY query in MySQL?
Since the last couple of weeks, I have been working on MySQL more closely. MySQL is a brilliant piece of software. I remember reading about all the sorting algorithms in college so I was curious to know which algorithm MySQL uses and how ORDER BY query works internally in such an efficient manner
Have you ever thought, how ‘nodemon’ works internally? Let’s build our own ‘nodemon’ in under 10 minutes!
If you have ever worked with Node.Js, you must have used a package called nodemon for development.But, have you ever thought about how it works internally? How would you proceed if you are asked to build a nodemon clone?
The basics you need to know about Kafka [Graphic Explanation Ahead 🖥️]
Welcome to my Apache Kafka series. In this series, we will be, one by one covering, (with the help of interactive & friendly graphics) from the basic terminology to deep diving into the brilliant architecture behind the wonderful piece of software, Kafka.
How to implement WhatsApp like End-to-end encryption?
One of the WhatsApp key feature is end to end encryption of messages. In this article, we will quickly understand a simple implementation of WhatsApp like end to end message encryption.
Interesting analogy to understand synchronous, callback, and async-await (promises) approach like I am 10 Y Kid 🧒
Let's quickly understand the difference between synchronous, callback, and async-await (promises) approach like a 10 Year old Kid.
How does Github store millions of repo and billions of files?
Let's find out the architecture behind Github - world's largest code hosting platforms for collaboration and version control, storing millions of repo and billions of files.
How Instagram computes real-time trending hashtags ?
Instagram has built a brilliant system in-house, to parse ~85M new photos and 700M hashtags everyday from over 500M users to compute realtime trending content. In this article, we will deep dive into how Instagram approached identifying, ranking and presenting the best trending hashtags realtime in the Instagram app.
System Design - How to design Google Drive / Dropbox (a cloud file storage service)?
Let's design a highly scalable file upload & sharing service.
Proxy vs Reverse Proxy - using a real life example!
I am sure, you must have heard of Proxy and reverse proxy server. This is a very important topic, when we talk about backend engineering & computer networking. Some times it's very confusing to find the exact difference between both of them.
System Design - Is client side load balancing a good idea?
Client side load balancing is a barely touched area while designing systems. Is client side load balancing, a good idea?
Scalability Challenge - How to remove duplicates in a large data set (~100M) ?
Dealing with large datasets is often daunting. With limited computing resources, particularly memory, it can be challenging to perform even basic tasks like counting distinct elements, membership check, & filtering duplicate elements.
Generating unique IDs in a distributed environment at high scale.
At a high scale, generating unique IDs is a really intresting system design problem to solve. Let's deep dive into possible methods with their pros and cons.
My journey - from python scripts to 20+ freelance full stack projects.
Here is my journey from writing python scripts to a freelance full stack developer.
Different countries have different conventions to display monetary values. Likewise, India follow Indian numbering convention. Let's checkout quickly, how to convert number to indian format number.