contributte / rabbitmq

🐰 RabbitMQ (AMQP, STOMP, MQTT) using BunnyPHP for Nette Framework (@nette).
https://contributte.org/packages/contributte/rabbitmq.html
MIT License
24 stars 25 forks source link

Create queues and exchanges on by default demand, not automatically. Add console command to declare all at once #15

Closed 31vi5 closed 6 years ago

31vi5 commented 6 years ago

In current version, queues and exchanges are by default automatically declared on every interaction. This can be overridden by setting autoCreate: false on queues and exchanges.

Proposition is to have default value of autoCreate: false and creating console command to create all queues and exchanges. The console command is intended to be ran during the deploy process to create missing queues/exchanges according to configs while the code that's executed during producing and consuming messages will by default behave more efficiently.