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
Currently, the workers set up listening to db changefeeds and, effectively, queue items for their own work queues. This is problematic because if changes to the database occur that should be handled by a worker while the worker is not running, that change event is lost and the job is never processed. Instead of connecting the changefeed listeners in the worker process, we should do it in the standing web service. This also makes it easier to choose to alternative mechanisms for background task execution (instead of having always-running worker dynos).
The text was updated successfully, but these errors were encountered:
For what it's worth, these used to be in the web service, but it caused performance problems during "heavy" load (i.e., voting), since JavaScript is single-threaded.
Currently, the workers set up listening to db changefeeds and, effectively, queue items for their own work queues. This is problematic because if changes to the database occur that should be handled by a worker while the worker is not running, that change event is lost and the job is never processed. Instead of connecting the changefeed listeners in the worker process, we should do it in the standing web service. This also makes it easier to choose to alternative mechanisms for background task execution (instead of having always-running worker dynos).
The text was updated successfully, but these errors were encountered: