{"id":44239,"library":"alaska-queue-array","title":"alaska-queue-array","description":"An in-memory array queue driver for the Alaska framework, version 0.13.2, intended only for development and testing. It stores queued tasks in a JavaScript array, which means data cannot be shared across multiple processes, is lost on process exit or crash, and may cause memory leaks. Its `pop(timeout)` function is not timely. No release cadence is defined. For production, use alaska-queue-redis or other drivers.","status":"active","version":"0.13.2","language":"javascript","source_language":"en","source_url":"https://github.com/maichong/alaska/tree/master/src/alaska-queue-array","tags":["javascript","alaska","alaska-queue"],"install":[{"cmd":"npm install alaska-queue-array","lang":"bash","label":"npm"},{"cmd":"yarn add alaska-queue-array","lang":"bash","label":"yarn"},{"cmd":"pnpm add alaska-queue-array","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not export a default; it's used as a driver type string, not imported directly.","wrong":"const alaskaQueueArray = require('alaska-queue-array')","symbol":"default","correct":"import alaskaQueueArray from 'alaska-queue-array'"}],"quickstart":{"code":"// This driver is configured as a string in the Alaska config, not imported directly.\n// Example app configuration:\nimport {Alaska} from 'alaska';\nconst alaska = new Alaska();\nalaska.init({\n  queues: {\n    myQueue: {\n      type: 'alaska-queue-array',\n      key: 'myQueue',\n      idle: 5\n    }\n  }\n});","lang":"typescript","description":"Shows configuration of the array queue driver within the Alaska framework, setting the type, key, and idle count."},"warnings":[{"fix":"Use alaska-queue-redis or another persistent driver for production.","message":"This driver is intended only for development. Data is not persisted and will be lost on process exit or crash.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Use a driver backed by a shared store (e.g., Redis) for multi-process scenarios.","message":"Queued data cannot be shared across multiple node processes; only in-memory to a single process.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Do not rely on precise timeouts; redesign logic to be tolerant of delayed pops.","message":"The `pop(timeout)` function is not timely; it may return after the timeout or not at all.","severity":"gotcha","affected_versions":">=0.1"},{"fix":"Limit queue size manually or use a production driver with built-in memory management.","message":"This driver may cause memory leaks due to unbounded queue growth.","severity":"gotcha","affected_versions":">=0.1"}],"env_vars":null,"search_vec":"'0.13.2':17 'across':38 'alaska':2,14,69,76,78 'alaska-queu':77 'alaska-queue-array':1 'alaska-queue-redi':68 'array':4,9,31 'cadenc':62 'cannot':35 'caus':50 'crash':47 'data':34 'defin':64 'develop':21 'driver':11,74 'exit':45 'framework':15 'function':56 'in-memori':6 'intend':18 'javascript':30,75 'leak':52 'lost':42 'may':49 'mean':33 'memori':8,51 'multipl':39 'pop':54 'process':40,44 'product':66 'queu':26 'queue':3,10,70,79 'redi':71 'releas':61 'share':37 'store':25 'task':27 'test':23 'time':59 'timeout':55 'use':67 'version':16","created_at":"2026-06-07T12:49:08.708806+00:00","updated_at":"2026-06-07T12:49:08.708806+00:00","problems":[{"fix":"Run `npm install alaska-queue-array` or add it to package.json.","cause":"Package not installed.","error":"Error: Cannot find module 'alaska-queue-array'"},{"fix":"Ensure configuration has type: 'alaska-queue-array' and that the queue initializes correctly.","cause":"Queue not properly configured or the wrong driver used.","error":"TypeError: queue.pop is not a function"},{"fix":"Switch to a production-grade queue driver like alaska-queue-redis.","cause":"Developer using the array driver in production after reading documentation.","error":"Warning: Using alaska-queue-array in production is not recommended"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/maichong/alaska/tree/master/src/alaska-queue-array","github":"https://github.com/maichong/alaska/tree/master/src/alaska-queue-array","docs":null,"changelog":null,"pypi":null,"npm":"alaska-queue-array","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}