nuts-foundation / nuts-event-octopus

Nuts service space engine for making sure events are caught and relayed.
GNU General Public License v3.0
0 stars 0 forks source link

Event store updates must not 'downgrade' events in the statemachine #9

Closed woutslakhorst closed 4 years ago

woutslakhorst commented 4 years ago

Event redelivery might cause previous events to pop-up again. The store must not store an event with a previous state!

This is problematic using the current state machine, since several states re-occur. A safe state has to be selected for those where the logic can handle duplicates.

woutslakhorst commented 4 years ago

This is not an issue since the consent-bridge safeguards the "distributed" and "created" states and will republish those on restart.