{"id":17610027,"url":"https://github.com/darnfish/fishqueue","last_synced_at":"2025-10-08T08:46:32.984Z","repository":{"id":57237467,"uuid":"322610084","full_name":"darnfish/fishqueue","owner":"darnfish","description":"Distributed Express Request Queue","archived":false,"fork":false,"pushed_at":"2021-01-15T03:51:38.000Z","size":821,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T00:31:54.067Z","etag":null,"topics":["queue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darnfish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-18T13:57:34.000Z","updated_at":"2021-08-14T09:00:23.000Z","dependencies_parsed_at":"2022-08-26T15:10:54.468Z","dependency_job_id":null,"html_url":"https://github.com/darnfish/fishqueue","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Ffishqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Ffishqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Ffishqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darnfish%2Ffishqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darnfish","download_url":"https://codeload.github.com/darnfish/fishqueue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258868,"owners_count":20748573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["queue"],"created_at":"2024-10-22T17:43:03.631Z","updated_at":"2025-10-08T08:46:27.958Z","avatar_url":"https://github.com/darnfish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fishqueue\n![Unit Tests](https://github.com/darnfish/fishqueue/workflows/Unit%20Tests/badge.svg) ![Codecov](https://img.shields.io/codecov/c/gh/darnfish/fishqueue)\n\nHigh-velocity queue for handling incoming Express.js requests across replicated codebase using Redis with minimal residue and maximum buzzwords\n\n## Install\n```\nyarn add fishqueue\n```\n\n## Usage\n```js\nimport Queue from 'fishqueue'\n\nconst queue = new Queue('webhook', { redis: process.env.REDIS_URI, concurrency: 3 })\n\napp.post('/webhook', queue.process(async (req, res) =\u003e {\n  const result = await handleWebHook(req.body)\n\n  res.send(result)\n}))\n```\n\n### Configuration\nPass an object containing the following properties into the second constructor argument of `Queue`:\n\n| Property        | Description                                                                                                              | Required? | Defaults To |\n|-----------------|--------------------------------------------------------------------------------------------------------------------------|-----------|-------------|\n| redis           | A Redis connection object or URI (see [here](https://github.com/luin/ioredis#connect-to-redis) for more details)         | no        | `null`      |\n| verbose         | A boolean stating if fishqueue should provide detail logs                                                                | no        | `false`     |\n| concurrency     | A number stating the amount of concurrent requests to be handled in accordance with `concurrencyType`                    | no        | `3`         |\n| concurrencyType | A string stating the type of concurrency which should be used. See [Concurrency Types](#concurrency-types) for more info | no        | `node`      |\n\n#### Concurrency Types\n| Type    | Description                                                                                                                                                                                                                 |\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| node    | Each instance of your app can handle {{ concurrency }} requests at a time. For example, a cluster of 3 nodes with a concurrency of 6 will handle 6 requests per node, totalling 18 requests in processing at any given time |\n| cluster | Requests will be handled in a distributed fashion. For example, a cluster of 3 nodes with a concurrency of 6 will handle 2 requests per node                                                                                |\n\n##### Visual Examples\n| Node                                   | Cluster\u003csup\u003e_beta_\u003c/sup\u003e                  |\n|----------------------------------------|-------------------------------------------|\n| \u003cimg src=\".github/examples/node.gif\" \u003e | \u003cimg src=\".github/examples/cluster.gif\" \u003e |\n\n## License\nDo No Harm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnfish%2Ffishqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarnfish%2Ffishqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarnfish%2Ffishqueue/lists"}