Questions tagged [symfony-messenger]

Messenger component provides a message bus with the ability to send messages and then handle them immediately in your Symfony application or send them through transports (e.g. queues) to be handled later.

121 questions
0
votes
1 answer

CRITICAL messenger Error thrown while handling message AppBundle\Message\Message

I'm using the symfony messenger component : https://symfony.com/doc/current/messenger.html But my logs are flooded by these messages when retries are failing : 16:14:31 CRITICAL [messenger] Error thrown while handling message…
0
votes
1 answer

Symfony Messenger: Retrying failed messages when using a message interface as the handler __invoke type-hint

I'm using the Symfony Messenger component in a Symfony 4.4 application. I'm processing the messages async through RabbitMQ and storing the failed ones in a database through the Doctrine transport. And this is the messenger config: framework: …
Nove
  • 165
  • 2
  • 8
0
votes
1 answer

Symfony Messenger consume low priority messages after all high messages

is there any way to stop consumers from eating low priority messages until all high priority messages are consumed? I am thinking of checking the queue state in low priority message handler, but this solution doesn't seem elegant and can be danger.
mcek
  • 480
  • 7
  • 17
0
votes
1 answer

Symfony: How can i use Remote procedure call (RPC) with Messenger?

I'm trying to do RPC with Symfony Messenger but I get stuck. Looking at the Messenger component it looks like the implementation has not been…
0
votes
0 answers

Symfony 4 Messenger issue

I'm experiencing an issue on the messenger component, I have two messages classes and two handlers and when I execute php bin/console debug:messenger I get the these results: As you can see in the two results I have different handler every time…
Floran
  • 304
  • 2
  • 14
0
votes
2 answers

Can symfony messenger handle messages in "bulk"

I was wondering, because I can not find anything on symfony or other resources, if php's symfony/messenger can handle messages in "bulk" with any async transport. For example. Grab 20 messages from the bus, handle those 20 messages, and ack or…
Leroy
  • 1,600
  • 13
  • 23
0
votes
1 answer

OroCRM - How to use Symfony messenger component

We use oro/crm version 4.1.0, in this version core team began to use symfony version 4.4.2 with symfony/symfony package (which includes symfony/messenger). But messenger component is not in use. For example, there is no config/package/messenger.yml…
0
votes
1 answer

Restrict message handler to multiple buses with symfony messenger

As explained in the documentation of the Symfony messenger component, by default message handlers handle messages from all message buses. However, one can restrict a message handler to a specific bus like this: # config/services.yaml services: …
johanv
  • 962
  • 8
  • 11
0
votes
1 answer

Heroku : FFMpeg installed but php worker can't find it

Context I've a RabbitMQ's queue that contains AMQPMessage, those messages are referencing a video that needs to be treated (cut essentially and encoded in x264 also) Here's the code that cause the issue (pretty straightforward) $ffprobe =…
Greco Jonathan
  • 2,517
  • 2
  • 29
  • 54
0
votes
1 answer

Symfony Messenger / RabbitMQ detecting requed messages

If consuming message fails message is re-queued with a delay by default. Is there a way to add a counter to a message so I could know if message is on its last attempt? This is desired behavior: First attempt: App\Message\Message { body: array:2…
0
votes
2 answers

Difference between EventDispatcher and Messenger

What is the basic difference between dispatching an Event by Messenger and dispatching an Event by Symfony EventDispatcher Component ?
AiD
  • 977
  • 3
  • 15
  • 41
0
votes
2 answers

Imposing barrier after group of messages

I create groups of messages (e.g. G1, G2,...). Within each group, all messages can be processed in parallel, order does not matter. However, to process G2, all messages from G1 must have finished processing. Is it possible to realize this in…
olidem
  • 1,961
  • 2
  • 20
  • 45
0
votes
1 answer

Symfony 4 amqp/messenger generate a pdf

I needed to send an email with a PDF attached. All of this was pretty simple to do with the SnappyBundle and Swift Mailer. Whenever a call is made to ../document_name/{id}/mail a pdf is generated and the e-mail is sent. To tried to make the user exp…
0
votes
1 answer

Symfony messenger can't consume messages

Few weeks ago I set up a Message system with Symfony Messenger and it worked great. Today I wanted to create new object through message, so I went to my server and type the command to consume message First I had this result $ bin/console…
Etshy
  • 870
  • 7
  • 25
-1
votes
1 answer

Symfony 5.4 with Kafka

I have a symfony 5.4 project and I want to implement kafka with the symfony messenger component. I've seen several ways to do this, including this post: Symfony Messenger with Apache Kafka as queue transport which implements 4 bundles (all…
1 2 3
8
9