Skip to content

Instantly share code, notes, and snippets.

@artificialarea
Last active April 10, 2020 16:51
Show Gist options
  • Save artificialarea/59d91bf51b414f0965d41285f9c67261 to your computer and use it in GitHub Desktop.
Save artificialarea/59d91bf51b414f0965d41285f9c67261 to your computer and use it in GitHub Desktop.

Pairing: Sacha (me) / Jerrad / Brian   Per: Thinkful's 'How web apps work' Assignment

1. An analogy to describe the relationship between clients and servers.

In terms of communication protocol, I quite like the analogy as described here, in which the 'request and response' between software, devices, etc is analogous to the communication protocol — syntax, semantics, and timing — of when two people greet each other.

In this scenario, first person to intiate contact is akin to the client, while the other person is the server. The client gestures to get the attention of the server and subsequently asks/requests something ("Hello. What's the situation with x?"). The server receives the request and provides a response, which the client then receives ("There are several things I can tell you about x, for instance..."). This request and response dialog can continue ad infinitum.

Communication Protocol: 1.Syntax, 2.Semantics, 3.Timing

2. Draw a diagram of the request/response cycle.

@artificialarea
Copy link
Author

request-response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment