jakubkulhan / bunny

Performant pure-PHP AMQP (RabbitMQ) sync/async (ReactPHP) library
MIT License
698 stars 101 forks source link

Perhaps an example how to put multiple workers in one process #114

Closed frankvanhest closed 3 months ago

frankvanhest commented 3 years ago

When replying to a tweet from ReactPHP, @WyriHaximus responded with https://twitter.com/wyrihaximus/status/1411053618703314948?s=21 I was wondering if an example could be added on how to consume from multiple queues within one process using async. Currently I use multiple PHP processes to handle this. This is quite memory expensive when running 20 consumers. Hopefully there is an example or pointers on how to do this. Iā€™m not quite experienced with async PHP. šŸ˜‰