"Designing a Robust Asynchronous Communication Process | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

"Designing a Robust Asynchronous Communication Process

In a multi-node network, node A sends a message to node B, which then processes the message and sends a response back to A. Node A should continue its other tasks while waiting for the response. How would you design this asynchronous communication process, considering potential message loss, network congestion, and ensuring the order of messages?

26th Aug 2023, 7:23 AM
S Jae
S Jae - avatar
1 Answer
+ 8
Whenever I hear asynchronous tasks, first thing that comes to mind is Message Queues like Rabbit MQ, Kafka. Now for handling, Message loss, network congestion just setup a retry mechanism with retry limits until delivery acknowledgement is received.
26th Aug 2023, 7:44 AM
Morpheus - avatar