Life of a Message
When a message is emitted on a hive, we first pass that message to the
Mapfunction of the registered message handlers for that type of message. TheMapfunction returns the mapped cells of that message. Then, we relay the message to the bee that has any of the keys in the mapped cell. That bee in response calls theRcvfunction of that message handler. This bee may be on the same hive or can be on another hive.
beehive.MappedCells{{dict_name, ID1}, {dict_name, ID2}}
I am running two hives on two separate nodes with internally generated id's ID1 and ID2. My map function computes MappedCells asbeehive.MappedCells{{dict_name, ID1}, {dict_name, ID2}}
I was expecting to Rcv function on nodes 1 and 2 to see the emitted message but I see that the message is only seen by the Rcv function on whichever node emits the message of the relevant type first. Is this the expected behavior?
Is there any way to re-emit the message to be received by the bees on the other hive?
Thanks,
Aravind