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
The current logic in the Engine keeps an index into the active handler list and increments that index across the set of reportable handlers present and services them.
This approach starts servicing handlers at arbitrary indices without accounting for the order in which handlers got dirty and became serviceable. This can result in highly jittered servicing times for subscriptions, especially if there are lots of subscribers OR if the time taken to service a subscriber is long (e.g subscriber is sleepy).
Solution
Insert into a queue handlers as they become reportable, and iterate through the queue to service them.
The text was updated successfully, but these errors were encountered:
Problem
The current logic in the
Engine
keeps an index into the active handler list and increments that index across the set of reportable handlers present and services them.This approach starts servicing handlers at arbitrary indices without accounting for the order in which handlers got dirty and became serviceable. This can result in highly jittered servicing times for subscriptions, especially if there are lots of subscribers OR if the time taken to service a subscriber is long (e.g subscriber is sleepy).
Solution
Insert into a queue handlers as they become reportable, and iterate through the queue to service them.
The text was updated successfully, but these errors were encountered: