envato / event_sourcery

A library for building event sourced applications in Ruby
MIT License
84 stars 10 forks source link

Event dispatcher #48

Closed stevehodgkiss closed 8 years ago

stevehodgkiss commented 8 years ago

This adds a simple event dispatcher class that will feed multiple processors in a simple loop.

It has it's downsides:

We could address the error situation. Interested in thoughts on the catching up situation. An obvious answer to that is to introduce concurrency and have one ESP per thread / process, but that's not going to be quick to implement.