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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]