Inbound Outbound models in programming
Inbound/Outbound
Sync + blocking
- The thread is idle until it receives a response from the other application
Sync Non-blocking
- e.g. Use callbacks. The thread doesn’t have to wait. After the other application sends a response, the OS will notify the thread that initiated the request.
Async
- e.g. Use queues. The thread doesn’t have to wait.
Async + Non-blocking
- e.g. Similar to the callback scenario. The thread doesn’t have to wait. The difference is, after the other application sends a response, the OS will notify
a different thread than the one that initiated the request
.
- e.g. Similar to the callback scenario. The thread doesn’t have to wait. The difference is, after the other application sends a response, the OS will notify