Comments (13)
what do you think the default QOS should be?
from rabbitmqbundle.
As of me, I don't need prefetch (or maybe a prefetch count 1) because I work with small messages but I might launch multiple consumers.
from rabbitmqbundle.
The default QoS as defined by RabbitMQ assumes that the client has an unlimited buffer, so it will send out as much messages as it can to the client. If you want to add multiple consumers to a queue, but one of the consumers already has all the messages in its buffer the new consumers will remain idle.
Maybe it's an idea to add qos.prefetch_size
and qos.prefetch_count
options to the consumer configuration? The base consumer can set appropriate options for the channel.
from rabbitmqbundle.
I will look into this or someone can start writing a patch ;)
from rabbitmqbundle.
I can probably write up a patch for this, but it's probably a good idea to have #50 merged first. ;)
from rabbitmqbundle.
We are working on getting that merged ASAP :)
from rabbitmqbundle.
@asm89 you are good to go ;)
from rabbitmqbundle.
Would you still like a PR for this? Do you like the parameters I suggested above?
from rabbitmqbundle.
Sorry I've been off for a while. Yes I want a patch
from rabbitmqbundle.
We implemented configurable QOS support so that the developer is able to set prefetch_size and prefetch_count for each consumer.
See https://github.com/videlalvaro/RabbitMqBundle/pull/64
from rabbitmqbundle.
@tcz can we close this issue?
from rabbitmqbundle.
Hi,
I did not have the opportunity to test this but I'm sure it works. Thanks!
from rabbitmqbundle.
@tcz seems legit :P
from rabbitmqbundle.
Related Issues (20)
- Drop unsupported PHP versions HOT 1
- Drop unsupported Symfony versions HOT 1
- Cosumer Argument x-single-active-consumer HOT 6
- Invalid frame type 21 HOT 1
- Feature suggestion: add producer with batch producing capabilities HOT 4
- Update documentation for Symfony 6 HOT 5
- BaseAmqp closing connection in destructor HOT 2
- 1 Request 2 Record HOT 2
- Consumer disconnect event HOT 4
- ConsumerInterface service is not valid value for RPC server callback HOT 2
- How can i overwrite events? HOT 2
- Support to PHP 8.1 and Symfony 6.2 HOT 2
- Invalid signature of OldSound\RabbitMqBundle\RabbitMq\ProducerInterface HOT 2
- Symfony deprecations HOT 4
- Is it possible to use "PhpAmqpLib\Connection\AMQPConnectionFactory" instead of "AMQOldSound\RabbitMqBundle\RabbitMq\AMQPConnectionFactory"
- Symfony 5.2 pcntl_async_signals default changed HOT 2
- Add `--memory-limit` to `rabbitmq:rpc-server` HOT 7
- Has the package lost support? HOT 3
- Add "no_ack" consumer option (feature request) HOT 3
- Symfony 7.0 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbitmqbundle.