Alaska array queue driver
queue: {
type: 'alaska-queue-array',
key: 'myQueue',
idle: 5, // idle drivers count
}
This driver just for development environment.
You should use alaska-queue-redis or other driver instead, in production environment.
Because :
-
The queued data can not shared with multi node process.
-
The queued data will lost when node exited or crashed.
-
This driver may cause memory leak.
-
The
pop(timeout)
function is not timely.
This project is licensed under the terms of the MIT license