Client Server Model

2020-01-28

An analogy might do the trick: Imagine going to the bakery in order to buy a bread. You'll have a client (you) buying (requesting?) the bread and a seller (server) giving you the bread. The internet is basically composed of gazillions of such transactions, each client requesting different types of bread and each bakery having its own recipe.

The trick here is that sometimes the baker would also like to buy some bread. Sometimes from other bakeries, but sometimes even from himself. In the diagram below you'll notice that I've marked server as a client as well. This can get tricky once you go into more complex models, the thing to remember is that a baker can also be a client once it buys something else. Server sells, client buys. Sellers also buy.

Server client examples

The most basic example would be trying to Google something. You'll open up your browser (the client) and hit "www.google.com" in the address bar. The browser will resolve the address of "google.com" to a specific address (IP) and go to that address in order to give you the information you asked for (in this case being the classical google.com homepage). Google's servers will respond with the requested information and your browser will be able to interpret it and display it nicely.

#Tech in Laymans#Web technologies

Next: Server sider rendered vs Single Page Application

Previous: Tech in Layman's terms