Reduce duplicated events at the producer level

When multiple repeated events are detected, they are coalesced
into a pseudo message "last event repeated X times".

This functionality can be turned off, so as to have events be
more 'realtime'.