If you look at your phone or laptop, you are most probably looking at only the colors and animations and few buttons. If you think that all the data of your WhatsApp chat, snaps, photos are living inside your devices, then you're wrong.
Your device is mostly empty. Because it is just a client and a client is nothing more than a very expensive and smart looking remote control.
Let's see how computes talk to each other on internet using, I call it Language of Cloud, but the industry calls it Client Server Architecture
Apparently Client Server architecture was born from simple realisation, i.e Why should one single device should do the hardwork of heavy lifting? In old days, if you want to updated any single thing you have to buy a whole new disc, just because the brain, "the logic/server" lived on your PC, which did not help in scaling at all.
So.. Their was a shift wherein they split the software into 2 personas:
The data, the logic, the server was put in a high security warehouses with massive power, which is called as Server.
The buttons, the colors and screen are in your hand which is called as Client.
The language of cloud is the conversation between the client and the server.
When you like a photo on instagram, your phone doesn't actually do anything except send a tiny request across the cables across the ocean to the server of instagram and you/your phone is the client here. The request says: user _armasahar clicked the heart button on post #82u8e8_
The server receives that request and updates the massive database and responds back changed the button color to red, and added the post to liked posts category.
This is how Client Server talks and it is called as Client Server Architecture.
To understand the language and deliver it with etiquette we must follow some set of rules like Grammar right?
This applies to the Client Server Architecture as well, so that the request and responses should be formatted and can be understood by both the client and server.
And it is possible through a protocol called as HTTP(Hyper Text Transfer Protocol).
HTTP helps you to format the message, by using a standard. It follows three things:
It sees what do we want to do? And the whole internet is divided into mainly 4 types of actions (GET, POST, PUT, DELETE). So HTTP check which kind of an Method/action do we want to use.
The context of the message, it sets the Metadata like if it is html, json etc. and this is set through Headers
The data itslef which it captures the information in the Body.
Quick tip: Open your browser, go to any website, right click on the page, inspect, and click the Network tab. Refresh the page. Look at the Status and Method columns. You are now seeing the Language of the Cloud in real-time.



Top comments (0)