我使用Queue Component for Yii2参考https://libraries.io/github/cybercog/yii2-queue
我想知道如何将数据发布到2-3个不同的队列网址中以获取不同的功能
为此我必须在下面的配置代码中配置2-3个用户plsease让我知道如何在配置中提供多个url
'components' => [
'queue' => [
'class' => 'UrbanIndo\Yii2\Queue\SqsQueue',
'module' => 'task',
'url' => 'https://sqs.ap-southeast-1.amazonaws.com/123456789012/queue',
'config' => [
'key' => 'AKIA1234567890123456',
'secret' => '1234567890123456789012345678901234567890',
'region' => 'ap-southeast-1',
],
]]
或如何在将数据发布到队列
时设置urlYii::$app->queue->post(new Job(['route' => ['sync' => 'emailSync'], 'data' => $options]));