@cap-js-community/event-queue

中文文档
2.3.3发布于 2026/10/28Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 1.3万

An event queue that enables secure transactional processing of asynchronous and periodic events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.

原始使用文档
文档目录6 节
  1. Getting Started
  2. Features
  3. Documentation
  4. Support, Feedback, Contributing
  5. Code of Conduct
  6. Licensing

@cap-js-community/event-queue

npm version monthly downloads REUSE status CI Main

The Event-Queue is a framework built on top of CAP Node.js, designed specifically for efficient and streamlined asynchronous event processing. With a focus on load balancing, this package ensures optimal event distribution across all available application instances. By providing managed transactions similar to CAP handlers, the Event-Queue framework simplifies event processing, enhancing the overall performance of your application.

Additionally, Event-Queue provides support for periodic events, allowing for processing at defined intervals. This feature further extends its capabilities in load balancing and transaction management, ensuring that even regularly occurring tasks are handled efficiently and effectively without overloading any single instance. This makes it an ideal solution for applications needing consistent, reliable event processing.

Getting Started

Dive right in and check out the getting started documentation.

Features

Learn more about features in the documentation. To compare the event-queue with other SAP products head over to Distinction from other solutions.

  • load balancing and concurrency control of event processing across app instances
  • periodic events similar to running cron jobs for business processes
  • managed transactions for event processing
  • async processing of processing intensive tasks for better UI responsiveness
  • push/pull mechanism for reducing delay between publish an event and processing
  • cluster published events during processing (e.g. for combining multiple E-Mail events to one E-Mail)
  • plug and play via cds-plugin

Documentation

Head over to our Documentation to learn more.

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2023 SAP SE or an SAP affiliate company and @cap-js-community/event-queue contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

版本与发布记录

@cap-js-community/event-queue 共发布 131 个版本,首次发布于 2023/07/05;过去 12 个月发布了 25 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.3.3latest2026/10/2812 天前
2.3.22026/10/1525 天前
2.3.12026/09/171 个月前
2.3.02026/07/113 个月前
2.2.02026/06/264 个月前
2.1.22026/06/124 个月前

其他发布通道:beta → 2.1.0-beta.3。

关于 @cap-js-community/event-queue 的常见问题

@cap-js-community/event-queue 是什么?

An event queue that enables secure transactional processing of asynchronous and periodic events, featuring instant event processing with Redis Pub/Sub and load distribution across all application instances.

如何安装 @cap-js-community/event-queue?

在项目目录运行 npm install @cap-js-community/event-queue,或使用 pnpm add / yarn add / bun add。

@cap-js-community/event-queue 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cap-js-community/event-queue 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cap-js-community/event-queue 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.13.0 || >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cap-js-community/event-queue 可以商用吗?

@cap-js-community/event-queue 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@cap-js-community/event-queue 的下载量有多少?

根据 npm 官方下载统计,@cap-js-community/event-queue 在 2026/10/09 – 2026/11/07 这 30 天内被下载 13,438 次,日均约 448 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cap-js-community/event-queue 还在维护吗?

最新版本 2.3.3 发布于 2026/10/28(12 天前);至今共发布 131 个版本,其中过去 12 个月发布了 25 个;首次发布于 2023/07/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。