Skip to content

Question: Credits and Flow Control #193

@jkonowitch

Description

@jkonowitch

Thank you for writing this nodejs implementation of RabbitMQ Streams!

Regarding flow control. I noticed the Java library will only request new credits when some percentage of messages have been processed: https://rabbitmq.github.io/rabbitmq-stream-java-client/stable/htmlsingle/#flow-control

Reading through the source code for rabbitmq-stream-js-client, it seems like new credits are requested regardless of how quickly/successfully handlers return - client.ts#L503

Do I have that correct? And if so, any thoughts on making this more configurable? I would be happy to help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions