Error Events


Wondering what are some best practices around handling errors when processing events from event store. Our simplistic implementation currently just a generic ErrorEvent on a single stream (from a single service, not shared) and we store information about the error (exception info, etc) the guid and type of the event that was being handled when the error occurred. This has been helpful, but we are not yet trying to re-handle failures. It seems like this would be a good case for adding a linkTo the original event, but I don’t see many examples of this being used during a write process, only when reading streams and following linkTos. What is the best way to easily reference, and retrieve the original, failed event in this scenario?



You could jsut write streamid/version to uniquely identify the event that had a problem. You can do a linkTo yourself but likely better using just a soft reference.

Thanks, Greg! That makes sense.