Skip to content

Instantly share code, notes, and snippets.

@shumaker100
Created September 14, 2020 21:48
Show Gist options
  • Save shumaker100/a99d11ee84b168e4126aa8b09d61055c to your computer and use it in GitHub Desktop.
Save shumaker100/a99d11ee84b168e4126aa8b09d61055c to your computer and use it in GitHub Desktop.
Client and Server Assignment
When I go to a restaurant I like to sit at the bar. You get a more personalized service from a bartender mainly due to the fact that they stay in one place the entire time and will chat with you if they have some down time. Their work environment is more effiecient compared to a waitress or waiter who typically has to cover more ground between customers which takes longer. In any case, the communication between me, the customer, and the bartender is very much like the communication between clients and servers. I (client) ask my friendly bartender (server) for variable items and resources such as a gin and tonic to start then get an appetizer and then request a main course. I might even ask for the best local place to find good live music. This is an example of the relationship between a client and server where there is a give and take of requests and responses. The client requests things like the location of the document you are looking for and permissions to open a line of communication and the server responds with the appropriate information.
Diagram Link: https://docs.google.com/drawings/d/11497gIi-OsRT6j3vIMLgyASKwcQ863pw1ZRf2aJjP7c/edit?usp=sharing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment