synchronous
vs.
asynchronous message passing
(or, from StackOverflow:
Client: Sends request, waits on response
Server: Gets first request. Returns response, waits for next interaction
Client: Gets response. Continues on until sends next request
Server: Gets next request. Returns response, waits for next interaction
Need “handshake” to establish/close connection
Asynchronous example (e.g., mail)
Peer1: Sends information, goes on to do other things
Peer2: Gets information, acts on it, sends information (possibly),
goes on to do other things.
No ongoing connection
Asynchronous server (e.g., http)
Client: Sends request, waits on response
Server: Gets new request, acts on it, sends response.
Goes on to do other things.
Client: Gets response. Continues on until sends next request.
Server: Gets new request, acts on it, sends response.
Goes on to do other things.
Client: Gets response. Continues on until sends next request.
No ongoing connection
Alyce Brady, Kalamazoo College