You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zhaohai666 (via GitHub)" <gi...@apache.org> on 2026/09/23 03:11:54 UTC

[PR] feat(nodejs): add consumer-side rate limiting via semaphore backpressure [rocketmq-clients]

zhaohai666 opened a new pull request, #1386:
URL: https://github.com/apache/rocketmq-clients/pull/1386

   ## P7 feat(nodejs): consumer-side rate limiting via semaphore backpressure
   
   - `src/util/Semaphore.ts` applied to `ProcessQueue`, bounding in-flight consumption by
     `consumeConcurrentlyMax` (default 32); the receive loop pauses while all permits are
     taken, providing per-queue consumption backpressure.
   - `PushConsumerOptions#consumeConcurrentlyMax`; broker-side value parsed from settings
     when present.
   
   **Tests:** `nodejs/test/util/Semaphore.test.ts` + `nodejs/test/consumer/ProcessQueue.test.ts` (10 cases, offline, all pass)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(nodejs): add consumer-side rate limiting via semaphore backpressure [rocketmq-clients]

Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin merged PR #1386:
URL: https://github.com/apache/rocketmq-clients/pull/1386


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org