I am trying to understand how to create my own IMessageHub. I don't want to rely on any extra infrastructure and the number of messages are low. So I decided to use a simple socket solution to replicate the messages. I have looked at the source code for the different ScaleoutMessageBus implementations but these seem to require an additional strictly increasing identifier (Redis implementation uses 'INCR' for instance). Can someone confirm that this is the case? A random identifier will not cut it?
The identifier is the second parameter to the OnRecieved method below
public abstract class ScaleoutMessageBus : MessageBus
{
...
protected virtual void OnReceived(int streamIndex, ulong id, ScaleoutMessage message)