yii2 queue consume raw json.

Общие вопросы по использованию второй версии фреймворка. Если не знаете как что-то сделать и это про Yii 2, вам сюда.
Ответить
Firsyatina
Сообщения: 1
Зарегистрирован: 2024.02.15, 16:07

yii2 queue consume raw json.

Сообщение Firsyatina »

Yii2 queue has an ability to push message that can be obtained by third party worker, ex:

Код: Выделить всё

   Yii::$app->queue->push([
            'id' => $transaction->id,     
            'amount' => $transaction->amount,
        ]);
But if message is pushed into the queue as raw json from the other service how one can work it out, consume, via yii2 queue.
It's not a job it's raw json. How it can be consumed via yii2 queue package?
Is there a way? Or I should work out a custom decision?

I use yii\queue\amqp_interop\Queue
Alex@
Сообщения: 568
Зарегистрирован: 2014.12.16, 09:24

Re: yii2 queue consume raw json.

Сообщение Alex@ »

а разве в push не объект надо пулять?
Ответить