/images/deep1by1.jpg

Deep Dhamala

Passionate Computer Engineer

Scaling From Zero to Millions of Users

“Somewhere right now, millions of people are pressing play, searching, scrolling and sending messages, and a carefully built system is quietly serving every single one of them. Nobody using it thinks about the load balancer, the cache, the replicas or the shards. It just works. Behind that simplicity sits years of careful decisions, and that is what makes system design so fascinating.”

What really happens behind the screen when millions of people tap the same button at the same time?

Every new user brings more requests and more data. Nothing breaks on day one. Pages get a little slower, background jobs take a little longer, and quietly the system starts carrying more than it was built for. I have watched this happen as more and more users came in, and the lesson is simple: every new user lands directly on the system. More weight on the same servers, the same database, the same code.

Now take that to the extreme. Netflix streaming to millions of screens at the same moment. Google answering a search before you finish typing. Facebook keeping billions of people connected, every single day. Somehow it all just works. How?

The answer is not one clever trick. It’s a craft, built one careful decision at a time. Honestly, it’s a beautiful art.

This post is that journey: from a single server to a system that can serve millions of users. Every drawing builds on the one before it, so you can watch the system grow exactly the way real systems do, one bottleneck at a time.

Learn Linux Right Now!

If this blog has reached you, it’s high time to dive into the realm of Linux, especially if you’re associated with IT in any capacity. Learning Linux is not just beneficial; it’s imperative, given that Linux is omnipresent, shaping the technological landscape in ways you may not even be aware of. As you read this, keep in mind that the blog itself is hosted on a Linux server. Whether it’s smart devices, IoT gadgets, or the majority of top websites, Linux is the beating heart behind them.

Checked vs Unchecked Exceptions in Java

In this article, we will explore the very important topic of exceptions in Java: Checked vs Unchecked exceptions. Let’s start with the basics.

Exceptions in Java

An unexpected event that disturbs the normal flow of the program is called an Exception. This can be due to various reasons such as dividing by zero, accessing an invalid index in an array, or trying to read a file that does not exist.
You can take an analogy with a car accident. In your commute to job you met an accident. This is an unexpected even that disturbs you normal flow of the day. How you are going to handle this situation (exception)? Similarly, for Java exceptions, you need to define explicitly how you are going to handle the exception in order to prevent the program from crashing.