Skip to content

Instantly share code, notes, and snippets.

@rbannal86
Last active September 26, 2019 18:23
Show Gist options
  • Save rbannal86/cd3f114910f9dbb2d1aec7d6335396fb to your computer and use it in GitHub Desktop.
Save rbannal86/cd3f114910f9dbb2d1aec7d6335396fb to your computer and use it in GitHub Desktop.
howWebAppsWork
Client-Server Analogy:
You are a client. You walk into a tiny candy store and, immediately, you realize that this is a strange store. There's a small space,
a counter, and a person behind the counter. There is a dark doorway behind the person. You ask the person for a piece of candy corn.
That person walks into the dark doorway and returns with a piece of candy corn. That dark doorway leads to the server. You, the client,
requested a piece of information (candy corn) and the strange person (API) retrieved it from the room behind the dark doorway (server).
Request/Response Cycle Diagram:
https://docs.google.com/drawings/d/1ITYlU84WAcKpfAnoTF4_YKSIjJq_TiEXeDIqknGCF0M/edit?usp=sharing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment