Communication styles
Communication styles define mechanisms that can be followed for transmitting data from one point to another, usually across the network. At the broad level, there are four different types of Communication styles:
- Synchronous: Synchronous communication is best suited to scenarios that must guarantee the order in which calls are received or wait for the call to return. When operations depend on the outcome of the previous operation, synchronous communication is the preferred option.
- Asynchronous: Asynchronous communication is best suited to scenarios in which responsiveness is important or the availability of the target cannot be guaranteed. Asynchronous communication helps in improving perceived latency and performance of the system, it also decouples the system components and helps to achieve loose-coupling. In case the availability of the target in asynchronous communication cannot be guaranteed, patterns such as store and forward can be used to avoid losing messages...