Workable / rabbit-queue

AMQP/RabbitMQ queue management library.
MIT License
24 stars 11 forks source link

Support prefetch per handler #23

Closed alkiskal closed 4 years ago

alkiskal commented 4 years ago

It is useful to have handlers with different prefetch values.

https://github.com/Workable/rabbit-queue/blob/1e58da7953b941f0076cc77c4d7da23966108c0f/ts/rabbit.ts#L70

Right now this is not possible since every connection supports only one channel (where the prefetch is set). The logical solution would be to support an array of channels (as many as different prefetches), baring in mind the below:

nikostoulas commented 4 years ago

Implemented in 4.7.0