You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there certain considerations / concessions you would make with a data model in a situation where every single event is 100% mission critical? Specifically regarding this code:
self.events.insertMany(events,function(err){if(err)returncb(err);log('committed %s.events for id %s',self.entityType.name,entity.id);entity.newEvents=[];returncb();});
Since these writes are only atomic at the individual event level, how do you handle a potential write failure with a single event in a list of events? Would this be something you'd consider self-healing with a replay? Would you programmatically trigger a replay based on a failure here? Could you mitigate this risk more by only ever writing 1 event at a time in a "message" handler?
Thanks!
The text was updated successfully, but these errors were encountered:
Are there certain considerations / concessions you would make with a data model in a situation where every single event is 100% mission critical? Specifically regarding this code:
Since these writes are only atomic at the individual event level, how do you handle a potential write failure with a single event in a list of events? Would this be something you'd consider self-healing with a replay? Would you programmatically trigger a replay based on a failure here? Could you mitigate this risk more by only ever writing 1 event at a time in a "message" handler?
Thanks!
The text was updated successfully, but these errors were encountered: