Created
November 25, 2020 18:57
-
-
Save KevDev90/92bb333bf4675d371323f86a107cbe5b to your computer and use it in GitHub Desktop.
How web apps work assignment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My anaolgy to describe the relationship between clients and servers is a restaurant. A client is a customer in this scenario, whereas the waiter is the server. When a customer goes to a restaurant, this is similar to a request. The customer is requesting service from the waiter. The waiter, in response, comes to the customer and takes initial drink and appetizer orders. The customer tells the waiter, who then takes the order (request) back to the kitchen to be handled appropriately. While the cooks are putting together the appetizer, the waiter would be preparing the drinks. The waiter then returns what the customer ordered, a response to the customer. The customer would then order their main course (another request). The same thing would occur as with the drinks and appetizers. After the customer has eaten their food, they would request the check. The waiter would process (handle) their request and return a bill in response. The customer would then request that the money be picked up for the payment to be processed. In response, the waiter would return a receipt thus ending the cycle. | |
https://ibb.co/ZK4Yg00 - link to request-response diagram img |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment