Registry / messaging / alaska-queue-redis

alaska-queue-redis

JSON →
library0.13.2jsnpmunverified

Alaska-queue-redis is a Redis-backed queue driver for the Alaska framework, version 0.13.2. It provides a simple configuration-based interface for using Redis as a job queue, supporting idle driver count and connection URI settings. The package is maintained as part of the Alaska monorepo and is released on an as-needed cadence. Compared to other Redis queue libraries like Bull or Kue, this driver is tightly integrated with Alaska's service architecture, offering minimal configuration and automatic connection management via a single URL field.

npm install alaska-queue-redis
INSTALL
IMPORT
SIG · ALASKA-QUEUE-REDIS
A
alaska-queue-redis
messagingjavascriptv0.13.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import AlaskaQueueRedis from 'alaska-queue-redis'
const AlaskaQueueRedis = require('alaska-queue-redis')
Library uses CommonJS internally, but TypeScript ESM imports are preferred. The default export is the driver class.
RedisQueueDriver
import { RedisQueueDriver } from 'alaska-queue-redis'
import { AlaskaQueueRedis } from 'alaska-queue-redis'
Named export is available as RedisQueueDriver, not AlaskaQueueRedis.
default with type
import AlaskaQueueRedis from 'alaska-queue-redis'; const queue = new AlaskaQueueRedis(options)
new AlaskaQueueRedis.Queue(options)
Instantiate directly with options object; no sub-property like 'Queue'.

Shows instantiation with config, pushing a job, pulling a job, and deleting a job.

import AlaskaQueueRedis from 'alaska-queue-redis'; const queueDriver = new AlaskaQueueRedis({ key: 'myQueue', idle: 5, url: process.env.REDIS_URL || 'redis://localhost/0' }); // Push a job await queueDriver.push({ data: 'hello' }); // Pull (blocking) const job = await queueDriver.pull(); console.log(job.data); // Delete job await queueDriver.delete(job.id);
Debug
Known issues
deprecatedThe 'url' option is deprecated in favor of 'redisOptions' object for connection.
fix
Use 'redisOptions' instead of 'url' for Redis connection configuration.
affects: >=0.13.0
gotchaThe 'idle' option controls the number of idle drivers, not the queue concurrency.
fix
Set 'idle' to the number of concurrent worker processes, not task concurrency.
affects: >=0.1.0
breakingDefault export changed from Class to function in v0.10.0.
fix
Use 'new AlaskaQueueRedis()' instead of calling the default export directly.
affects: >=0.10.0 <0.11.0
gotchaRedis connection errors are not automatically retried; you must handle reconnection manually.
fix
Implement custom reconnection logic or use 'redisOptions.retry_strategy'.
affects: >=0.1.0
Errors
Common errors & fixes
TypeError: AlaskaQueueRedis is not a constructor
Using the default export as a constructor in CommonJS without 'new' or after module update.
fix
Ensure you are using 'new AlaskaQueueRedis()' and importing correctly (ESM: 'import AlaskaQueueRedis from ...').
ReplyError: MOVED 12345 127.0.0.1:6380
Redis cluster mode is not supported; the driver only works with standalone Redis instances.
fix
Use a standalone Redis instance or connect directly to a single node.
Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED
Redis server not running or wrong host/port provided.
fix
Start Redis server or update 'url' to correct connection string.
Upgrade
Version history
0.13.2latest on npm
Audit
Dependencies
redisrequiredUnderlying Redis client for queue operations
alaska-queuerequiredBase queue interface that this driver implements
Agent activity
40 hits · last 30 days
node
34
OpenAI (training)
1
Resources
alaska-queue-redis — npm install alaska-queue-redis · libregistry