lambda-promtail dlq - which one to use Asynchronous invocation or Destinations ?
On-Failure log recovery using SQS says You can configure lambda so that unsuccessfully processed messages will be sent to the DLQ but not says which way does. please clarify it.
There are 2 ways we can add it
-
Asynchronous invocation
-
Destinations
@CCOLLOT IIRC you added the support for SQS as well as these docs. We don't use lambda promtail with SQS ourselves so I don't have an answer here off the top of my head.
Hi, when implementing this feature I was using the synchronous destinations mode. On failure, the event would be retried a few times before being sent to the DLQ. In this mode you need to have enough concurrency on your lambda function to handle incoming events.
I suppose it should work with the asynchronous mode as well, but I'm not sure the payload schema is the same so it might require some adjustments.
@CCOLLOT thanks for your reply :+1: