We all wonder how a website works? How data actually gets transferred from one end to another. Well, I was also among those who always think this in a very different and complicated way. But things got change as I entered the field of frontend and backend development. I actually learnt the point that these things actually work in a pretty simple way. Let me understand you with this real-life example.
Let's consider an example of a postman (server) who wants to deliver the message from sender (client) to receiver (client). The sender sends a request to the Post Office to deliver this message to the receiver. On the other hand, the receiver is waiting for the message to arrive. The Post office reads the request and in response delivers (handover) the message to its respective receiver. In this way, data is transferred from one end to another.
Now remap the above example and replace the Post Office with actual server (i.e. a real physical computer) who listens to request and in response it delivers the web pages to the requested client. So this how web works or more generally speaking - how internet works.
We interact with server through a interactive UI (User Interface) i.e. called Frontend of an application. The data is then send to server in the form of JSON (if you don't have any idea just think it as a key - value pair data structure). The server listens to the request, processes the data and then renders a template for the client to make it human readable and sends. The client got response from the server in the form of another page (any form of human readable output) and continues serving the site.
In this way, how a complete Full Stack web application works.
Congratulations, now you know the foundation of website architecture so why not try this thing in actual and earn some solid income, right?
Go through this article so that you can become a Full Stack Developer in less than 30 Days.
That's it.
Comments
Post a Comment