How to handle error messages without ACK nor infinite retry #630
Unanswered
yannicktian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
This is my current rabbtimq configuration
In my
app.consumer.lambda_consumer
, I do a request to a third party. If the third party server returns an error (500) IConsumerInterface::MSG_REJECT
the message and the dead-letter system retries and publishes it via the lambda_ex exchange after the TTL.When the number of retry max is reached, say 10 for example, I
ConsumerInterface::MSG_ACK
the message and it is lost forever.Instead of losing the message, I want to save it "somewhere" and be able to retry when the third party server comes back on. Is there a simple way to do it with RabbitMq ?
I was thinking of
retry_over_limit_q
.But I can't find a suitable way to start the consumer asynchronously within Symfony app...
Maybe using http://jmsyst.com/bundles/JMSJobQueueBundle ? or https://symfony.com/doc/current/components/process.html#running-processes-asynchronously ?
Thank you for your help,
Yannick
Beta Was this translation helpful? Give feedback.
All reactions