evdobe / event-listener

Listen to events from message bus and persist them in an event store
MIT License
1 stars 1 forks source link

Narrow duplicate events detection criteria to avoid skipping new events #6

Open ktogias opened 1 year ago

ktogias commented 1 year ago

In case of disaster or other anomaly recovery there may be cases where new events from a channel have id that are previously seen. Matching only id and channel will make listener to skip those events.

We should match events by: source_id, channel, timestamp and name in order to detect duplicate events. If any of the above differs then we have a new event that we should add to store.

ktogias commented 1 year ago

Commit baff5044e271028cb53d23dd89ae3d4480222cc9 fixes this