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
Using the EventBus, the count of active queues is retrieved and stored in the counter. However, this task is executed by every instance concurrently. This is not very efficient, because counting queues takes some time and the result will most likely be the same for all the executions.
In swisspost/gateleen there is a class called LockUtil which provides a simple lock mechanism based on Redis to prevent concurrent executions of tasks.
This feature could also be introduced in vertx-redisques to improve handling of tasks.
The text was updated successfully, but these errors were encountered:
When multiple instances of vertx-redisques are deployed and periodic tasks are scheduled, the tasks will be executed in every instance.
Example from
PeriodicMetricsCollector
class:Using the EventBus, the count of active queues is retrieved and stored in the counter. However, this task is executed by every instance concurrently. This is not very efficient, because counting queues takes some time and the result will most likely be the same for all the executions.
In swisspost/gateleen there is a class called LockUtil which provides a simple lock mechanism based on Redis to prevent concurrent executions of tasks.
This feature could also be introduced in vertx-redisques to improve handling of tasks.
The text was updated successfully, but these errors were encountered: