Reputation: 531
If there are n-nodes in a Cluster and I am routing some messages to them, is there a way to track which message has been sent to which node from within the Cluster Router(RoundRobinPool or any other if available).
i.e After sending all the messages, at last, I need a list something like..
'message-1,4,7 has been sent to A-node',
'message-2,5,8 to B-node',
'message-3,6,9 to C-node' and so on.
Any help would be greatly appreciated.
Upvotes: 1
Views: 94
Reputation: 8394
Easiest way to get this information is to have the receiving actor on the other end of the router send an acknowledgement message back to the original sender and then log that on the sending side. You could also turn some of the logging tools for logging remote message sending on or off, but that will be verbose.
https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Remote/Configuration/Remote.conf#L125
Upvotes: 2