Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'rabbitmq' => [
- 'class' => \mikemadisonweb\rabbitmq\Configuration::class,
- 'connections' => [
- [
- 'host' => '35.198.191.27',
- 'port' => '5672',
- 'user' => 'prosperodesu',
- 'password' => 's45fdfx65',
- 'vhost' => '/',
- ]
- ],
- 'exchanges' => [
- [
- 'name' => 'tasks',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- [
- 'name' => 'task_completed',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- [
- 'name' => 'converter',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- [
- 'name' => 'finished_convert',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- [
- 'name' => 'open_pose',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- [
- 'name' => 'screenshots',
- 'type' => 'fanout'
- // Refer to Defaults section for all possible options
- ],
- ],
- 'queues' => [
- [
- 'name' => 'new_tasks',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'finished_task',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'maked_screenshots',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'screenshots',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'convert',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'converter',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'finished_convert',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'open_pose',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'pushed_tasks',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'tasks',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- [
- 'name' => 'task_completed',
- // Queue can be configured here the way you want it:
- 'durable' => true,
- ],
- ],
- 'consumers' => [
- [
- 'name' => 'FinishedConvertConsumer',
- // Every consumer should define one or more callbacks for corresponding queues
- 'callbacks' => [
- // queue name => callback class name
- 'finished_convert' => \common\components\queue\FinishedConvertConsumer::class,
- ],
- ],
- ],
- 'bindings' => [
- [
- 'queue' => 'convert',
- 'exchange' => 'converter',
- 'routing_keys' => ['/convert'],
- ],
- [
- 'queue' => 'finished_convert',
- 'exchange' => 'finished_convert',
- 'routing_keys' => ['/convert_finished'],
- ],
- [
- 'queue' => 'open_pose',
- 'exchange' => 'open_pose',
- 'routing_keys' => ['/to_open_pose'],
- ],
- [
- 'queue' => 'maked_screenshots',
- 'exchange' => 'screenshots',
- 'routing_keys' => ['/screenshots'],
- ],
- [
- 'queue' => 'pushed_tasks',
- 'exchange' => 'tasks',
- 'routing_keys' => ['/get_tasks'],
- ],
- [
- 'queue' => 'finished_task',
- 'exchange' => 'task_completed',
- 'routing_keys' => ['/get_tasks'],
- ],
- ],
- 'producers' => [
- [
- 'name' => 'ConvertProducer',
- ],
- ],
- /*'bindings' => [
- [
- 'queue' => 'YOUR_QUEUE_NAME',
- 'exchange' => 'YOUR_EXCHANGE_NAME',
- 'routing_keys' => ['YOUR_ROUTING_KEY'],
- ],
- ],
- 'producers' => [
- [
- 'name' => 'YOUR_PRODUCER_NAME',
- ],
- ],
- 'consumers' => [
- [
- 'name' => 'YOUR_CONSUMER_NAME',
- // Every consumer should define one or more callbacks for corresponding queues
- 'callbacks' => [
- // queue name => callback class name
- 'YOUR_QUEUE_NAME' => \path\to\YourConsumer::class,
- ],
- ],
- ],*/
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement