# Queueing Without a Queue: Enter fastq

DevFeed: [Queueing Without a Queue: Enter fastq](<https://devfeed.tech/articles/queueing-without-a-queue-enter-fastq-17871.md>)

Original publisher: [Read original article](<https://www.codemotion.com/magazine/backend/software-architecture/queueing-without-a-queue-enter-fastq/>)

Author: Puppo92

Published: 2025-02-10T10:08:09Z

Content type: tutorial

Language: en

Sources: [Codemotion Magazine](<https://devfeed.tech/sources/backend-job-skill-salary-and-insights-codemotion-magazine.md>)

Topics: [queueing theory](<https://devfeed.tech/topics/queueing-theory.md>), [async](<https://devfeed.tech/topics/async.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [callback](<https://devfeed.tech/tags/callback.md>), [collina](<https://devfeed.tech/tags/collina.md>), [error](<https://devfeed.tech/tags/error.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [install](<https://devfeed.tech/tags/install.md>), [memory](<https://devfeed.tech/tags/memory.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [npm](<https://devfeed.tech/tags/npm.md>), [npm-package](<https://devfeed.tech/tags/npm-package.md>), [package](<https://devfeed.tech/tags/package.md>), [process](<https://devfeed.tech/tags/process.md>), [queue](<https://devfeed.tech/tags/queue.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>)

## AI overview

fastq is an npm package for creating in-memory queues in Node.js, offering a way to decouple processes when a separate queue service is unavailable or unsuitable. Add it to a Node.js project with `npm install fastq`, then define a worker that handles each queued item. Workers can use callbacks, signaling success with `null` or passing an error as the first argument, or promises, with errors thrown. Because queues are in memory, queued data is lost when the process stops; applications need a strategy to recreate the queue at startup. The excerpt begins an example but does not provide its completion.

## Source excerpt

How often have you needed to decouple processes using a queue, only to find that you didn't have one due to limitations such as resource constraints or the inability to install additional software? In this series, I'll show you how to solve this problem by using different libraries of tools that help you resolve it... Read more The post Queueing Without a Queue: Enter fastq appeared first on Codemotion Magazine.