EndpointOptions interface
Signature:
export interface EndpointOptions
Properties
Property | Type | Description |
---|---|---|
lazy? | boolean | (Optional) Sets whether or not the endpoint will lazily connect to RabbitMQ. If set to true , the endpoint will require that open() is run in order to start receiving events. Otherwise the endpoint will automatically connect.Either way, open() can still be used to retrieve a promise that resolves when the endpoint is ready and waiting.Defaults to false . |
prefetch? | number | (Optional) Sets how many messages the endpoint will pull off of the queue to process locally. Setting this to 0 disables prefetch and consumers will pull an unlimited number of items from the queue.Unlimited prefetch should be used with care. Endpoints can pull messages faster than they can deal with them, resulting in rapid memory consumption growth.Values in the 100 through 300 range usually offer optimal throughput and do not run significant risk of overwhelming consumers. Higher values often run in to the law of diminishing returns.Defaults to 48. |