-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Since policy events are handled one-by-one from the all stream, there is a possibility for a policy to severely lag behind if slow queries are used in the policy handler. My current solution is to have the policy add a job to a BullMQ queue using an external system artifact. This results in a lot of boilerplate code just to make policy handling performant.
It dawned on me that this sort of async parallel policy handling might be a candidate for a core feature or plugin for eventually. The general idea is that a policy artifact could have a configurable flag to allow queued/async handling instead of the outbox/serial/checkpoint style handling. The subscription store will mark what events were successfully put on the queue system and the queue system would handle redelivery, dead lettering, etc.
Does this type of feature sound wildly outside of the scope of a framework like eventually? Is there a huge gotcha I might be missing?