-
Notifications
You must be signed in to change notification settings - Fork 190
Feature request: In Batch Processing, allow sending requests directly to DLQ #4478
Copy link
Copy link
Open
Labels
batchThis item relates to the Batch Processing UtilityThis item relates to the Batch Processing Utilityfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityneed-customer-feedbackRequires more customers feedback before making or revisiting a decisionRequires more customers feedback before making or revisiting a decisionrevisit-in-3-monthsBlocked issues/PRs that need to be revisitedBlocked issues/PRs that need to be revisited
Metadata
Metadata
Assignees
Labels
batchThis item relates to the Batch Processing UtilityThis item relates to the Batch Processing Utilityfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityneed-customer-feedbackRequires more customers feedback before making or revisiting a decisionRequires more customers feedback before making or revisiting a decisionrevisit-in-3-monthsBlocked issues/PRs that need to be revisitedBlocked issues/PRs that need to be revisited
Type
Projects
Status
Ideas
Use case
When handling events from SQS and failing a message, not all errors are the same. E.g. if the event fails validation, then no amount of retrying will get it to pass. But throwing an error for it will lead to retrying the error like any other.
Instead, the event should end up directly on the SQS queues DLQ so that I can inspect and potentially redrive it without getting my logs spammed with errors from the retries.
Solution/User Experience
The processor needs to be configured with the DLQ url so it can send messages there. This also avoids any breaking change (even though just defining our own NonRetriableError should be enough already for this). It's a bit weird to add options to BatchProcessor as these options are specific just for the SQS type (though theoretically this might even make sense for other event sources).
Alternative solutions
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.