
Chapter 4. Application design 69
There are two pattern variants for asynchronous communication:
Fire-and-forget
Request-reply
4.3.2 Pseudo-synchronous communication
Using pseudo-synchronous communication, the consumer thread follows a
synchronous request-reply approach. After sending a request it is blocked until
the expected reply from the provider arrives.
Figure 4-5 shows the behavior of consumer and provider in case of a
pseudo-synchronous communication call.
Figure 4-5 Thread behavior using pseudo-synchronous communication
The behavior of the pseudo-synchronous communication style is in fact
synchronous, but because the underlying medium ...