Hi guys, I'm pretty new to using protobuf and maybe this question has been answered multiple times, but
is there a way to check for messages duplications and drop them before sending them over socket/wire?
The thing is, my code sometimes generating messages of the same type with same field values (identical messages) and I want to skip sending those duplicated message.
I know that protobuf is unhashable. However, if all the messages are generated within same process, is it possible that:
msg1.SerializeToString() != msg2.SerializeToString() ?
My idea was to use serialized values as dict key and the message as a value, so I won't have problems with same messages.
P.S. I am also trying to remove possibility of duplicate message generating, however I am not there yet
Thanks!