Hello,
Looking for opinions :)
I'm currently building an event-driven service which consumes events using
handlers. Now, the idea is to define a set of handlers (functions of type
Event-Unit) in different parts of the service, which are then invoked
when an event comes into the system. The
Rather than having hidden mutable state for wiring events to handlers,
would it be clearer if the main namespace just passed an :event-[handlers]
map to the event processor?
If that would create a huge, frequently changing data structure, each
namespace with handlers could expose an