0
"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?
1 Odpowiedź
+ 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.