For the time being, I think I can plan a potential fix for this for the time-being.
What if you add a sort of ‘ID’ message payload to your message prior to sending it over MessagingService, and using a sort of ‘local cache’ to ensure it isn’t duplicated?
Essentially, the pipeline would be as such:
Inside a payload, there would be a randomly generated ID, in addition to everything else. For example, an ID of ‘1’
Now, the message is published to all your servers.
Once a message arrives on a server, the server checks its local storage (somewhere in that game server or script) for the ID. If it isn’t there, then the server passes on the message. If it’s there, the message is dropped.
Before the message is passed, the ID of the message is then stored locally, with an expiry timer if you wish, so the stored ID is deleted after, say, 1 minute or so.
Finally, the message is parsed and does what it needs you to do (such as displaying a message.)
In a simple line:
Message given an ID → Message sent → ID checked → ID stored → Message displayed
This way, if a duplicated message is received, it should have the same ID, and such, get caught out by the duplication check. I’m not at my laptop so I can’t test if this’ll work, (eg if the messages arrive at exactly the same time, and server doesn’t have enough time to cache messages) but in theory, it should.
If they do indeed arrive at the same time, one can also just make a simple Message Queue which queues them for 1 second or so, in order, before handling them, which should mitigate my concern if the messages do indeed arrive at the same time.
TL;DR: Add an ID, check it when it arrives, store the ID and drop the dupes.
Hopefully that helps! c: