Advertisement
Guest User

Untitled

a guest
May 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.46 KB | None | 0 0
  1. 'rabbitmq' => [
  2.             'class' => \mikemadisonweb\rabbitmq\Configuration::class,
  3.             'connections' => [
  4.                 [
  5.                     'host' => '35.198.191.27',
  6.                     'port' => '5672',
  7.                     'user' => 'prosperodesu',
  8.                     'password' => 's45fdfx65',
  9.                     'vhost' => '/',
  10.                 ]
  11.             ],
  12.             'exchanges' => [
  13.                 [
  14.                     'name' => 'tasks',
  15.                     'type' => 'fanout'
  16.                     // Refer to Defaults section for all possible options
  17.                 ],
  18.                 [
  19.                     'name' => 'task_completed',
  20.                     'type' => 'fanout'
  21.                     // Refer to Defaults section for all possible options
  22.                 ],
  23.                 [
  24.                     'name' => 'converter',
  25.                     'type' => 'fanout'
  26.                     // Refer to Defaults section for all possible options
  27.                 ],
  28.                 [
  29.                     'name' => 'finished_convert',
  30.                     'type' => 'fanout'
  31.                     // Refer to Defaults section for all possible options
  32.                 ],
  33.                 [
  34.                     'name' => 'open_pose',
  35.                     'type' => 'fanout'
  36.                     // Refer to Defaults section for all possible options
  37.                 ],
  38.                 [
  39.                     'name' => 'screenshots',
  40.                     'type' => 'fanout'
  41.                     // Refer to Defaults section for all possible options
  42.                 ],
  43.             ],
  44.             'queues' => [
  45.                 [
  46.                     'name' => 'new_tasks',
  47.                     // Queue can be configured here the way you want it:
  48.                     'durable' => true,
  49.                 ],
  50.                 [
  51.                     'name' => 'finished_task',
  52.                     // Queue can be configured here the way you want it:
  53.                     'durable' => true,
  54.                 ],
  55.                 [
  56.                     'name' => 'maked_screenshots',
  57.                     // Queue can be configured here the way you want it:
  58.                     'durable' => true,
  59.                 ],
  60.                 [
  61.                     'name' => 'screenshots',
  62.                     // Queue can be configured here the way you want it:
  63.                     'durable' => true,
  64.                 ],
  65.                 [
  66.                     'name' => 'convert',
  67.                     // Queue can be configured here the way you want it:
  68.                     'durable' => true,
  69.                 ],
  70.                 [
  71.                     'name' => 'converter',
  72.                     // Queue can be configured here the way you want it:
  73.                     'durable' => true,
  74.                 ],
  75.                 [
  76.                     'name' => 'finished_convert',
  77.                     // Queue can be configured here the way you want it:
  78.                     'durable' => true,
  79.                 ],
  80.                 [
  81.                     'name' => 'open_pose',
  82.                     // Queue can be configured here the way you want it:
  83.                     'durable' => true,
  84.                 ],
  85.                 [
  86.                     'name' => 'pushed_tasks',
  87.                     // Queue can be configured here the way you want it:
  88.                     'durable' => true,
  89.                 ],
  90.                 [
  91.                     'name' => 'tasks',
  92.                     // Queue can be configured here the way you want it:
  93.                     'durable' => true,
  94.                 ],
  95.                 [
  96.                     'name' => 'task_completed',
  97.                     // Queue can be configured here the way you want it:
  98.                     'durable' => true,
  99.                 ],
  100.             ],
  101.             'consumers' => [
  102.                 [
  103.                     'name' => 'FinishedConvertConsumer',
  104.                     // Every consumer should define one or more callbacks for corresponding queues
  105.                     'callbacks' => [
  106.                         // queue name => callback class name
  107.                         'finished_convert' => \common\components\queue\FinishedConvertConsumer::class,
  108.                     ],
  109.                 ],
  110.             ],
  111.             'bindings' => [
  112.                 [
  113.                     'queue' => 'convert',
  114.                     'exchange' => 'converter',
  115.                     'routing_keys' => ['/convert'],
  116.                 ],
  117.                 [
  118.                     'queue' => 'finished_convert',
  119.                     'exchange' => 'finished_convert',
  120.                     'routing_keys' => ['/convert_finished'],
  121.                 ],
  122.                 [
  123.                     'queue' => 'open_pose',
  124.                     'exchange' => 'open_pose',
  125.                     'routing_keys' => ['/to_open_pose'],
  126.                 ],
  127.                 [
  128.                     'queue' => 'maked_screenshots',
  129.                     'exchange' => 'screenshots',
  130.                     'routing_keys' => ['/screenshots'],
  131.                 ],
  132.                 [
  133.                     'queue' => 'pushed_tasks',
  134.                     'exchange' => 'tasks',
  135.                     'routing_keys' => ['/get_tasks'],
  136.                 ],
  137.                 [
  138.                     'queue' => 'finished_task',
  139.                     'exchange' => 'task_completed',
  140.                     'routing_keys' => ['/get_tasks'],
  141.                 ],
  142.             ],
  143.             'producers' => [
  144.                 [
  145.                     'name' => 'ConvertProducer',
  146.                 ],
  147.             ],
  148.             /*'bindings' => [
  149.                     [
  150.                         'queue' => 'YOUR_QUEUE_NAME',
  151.                         'exchange' => 'YOUR_EXCHANGE_NAME',
  152.                         'routing_keys' => ['YOUR_ROUTING_KEY'],
  153.                     ],
  154.                 ],
  155.                 'producers' => [
  156.                     [
  157.                         'name' => 'YOUR_PRODUCER_NAME',
  158.                     ],
  159.                 ],
  160.                 'consumers' => [
  161.                     [
  162.                         'name' => 'YOUR_CONSUMER_NAME',
  163.                         // Every consumer should define one or more callbacks for corresponding queues
  164.                         'callbacks' => [
  165.                             // queue name => callback class name
  166.                             'YOUR_QUEUE_NAME' => \path\to\YourConsumer::class,
  167.                         ],
  168.                     ],
  169.                 ],*/
  170.         ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement