Namaste Duniya, have you ever thought about how the internet works behind the scenes and data from which corner of the world appears on your screen just by tapping on a word and pressing enter?
Let’s dig deep into the process with enough adventurous spirit to break down the entire process into small parts and give us the courage to bring our knowledge library into the world of technology. And yes, we are comrades, so not only are we on the same course, but we are also in the same compartment, so you won’t feel alone on this journey. Stop overthinking and start.
The Internet operates on a client/server model, as shown in this diagram.
Here, the client sends some requests to the internet, and the server sends responses to the requests to the client. But if you are here a little longer, this knowledge is not enough for you.
How this works is first you enter your domain. In this case it is “www.example.com”. It is then sent to DNS, from which it gets the IP address belonging to it, and the HTTP request is sent to DNS again. All you have to do is access the server after receiving the IP address and the server response to your request.
DNS stands for Domain Name System. It is a distributed naming system used to translate domain names (such as example.com) into IP addresses (such as 192.0.2.1) that computers use to identify each other on a network.
DNS acts as the Internet’s address book, allowing users to access websites, send email, and perform a variety of other network activities using human-readable domain names instead of numerical IP addresses. .
DNS works through a distributed database system with multiple DNS servers located around the world. When a user types a domain name into her web browser or other Internet-enabled application, a DNS resolver (usually provided by the user’s Internet service provider or her ISP) queries a DNS server to find the corresponding domain name. Get the IP address of.
DNS plays a critical role in Internet communications, enabling seamless and efficient navigation on the web by translating user-friendly domain names into machine-readable IP addresses. As your user base grows, consider whether it’s enough for you to handle everything on one server. No, you don’t want that because your users may experience lag and slow response times, which can affect your business’ finances. So, by simply separating the server and database, your data resides in a secure location where your user base doesn’t interfere, and it only needs to communicate with the web server that serves your user base.
Yes, this may have solved some data related issues. Your data is now safe and you can now access it using private IP addresses that are not accessible to people outside your organization. However, remember that the problem is not solved yet. What happens when the user base grows? Well, you can add multiple web servers or simply increase the efficiency of his current web server. Now let’s talk about horizontal scaling and vertical scaling.
Vertical scaling, also known as “scaling up,” refers to the process of adding more server power (CPU, RAM, etc.). Horizontal scaling, also known as “scaling out,” allows you to scale by adding servers to a pool of resources.
When traffic is low, vertical scaling is a good option, and vertical simplicity is the main benefit. However, it comes with significant limitations.
- Vertical scaling has severe limitations. It is not possible to add unlimited CPU and memory to a single server.
- Vertical scaling has no fallover or redundancy. If one server goes down, your website/app goes down completely.
Vertical scaling has limitations, so horizontal scaling is more desirable for large applications.
But if you add more Web servers and allow users to communicate directly with them, consider which users will be communicating with which servers. What if all users talk to her one server and the rest are left alone? To solve this problem, when a user sends a request, it goes directly to the load balancer and the load balancer tells which user Decide which server to send it to. It actually analyzes which server has the least load and makes requests to it.
In just a few lines, I learned many topics, including how requests are sent from the browser to the server, what horizontal and vertical scaling is, and when you can use it. What is a load balancer? What is DNS?
I follow Gaurav Sen’s YouTube channel: https://www.youtube.com/@gkcs/playlists
We’ll be sure to keep you updated on this and anything else we mention. If you want to join me on my journey, follow me on LinkedIn: www.linkedin.com/in/iamang or Twitter: https://twitter.com/mainhoonang.
thank you. Have a great day!


