AWS Lambda launches enhanced error handling capabilities for Amazon Managed Streaming for Apache Kafka (MSK) and self-managed Apache Kafka (SMK) event sources. These capabilities allow customers to build custom retry configurations, optimize retries of failed messages, and send failed events to a Kafka topic as an on-failure destination, enabling customers to build resilient Kafka workloads with robust error handling strategies.
Customers use Kafka event source mappings (ESM) with their Lambda functions to build their mission-critical Kafka applications. Kafka ESM offers robust error handling of failed events by retrying events with exponential backoff, and retaining failed events in on-failure destinations like Amazon SQS, Amazon S3, Amazon SNS. However, customers need customized error handling to meet stringent business and performance requirements. With this launch, developers can now exercise precise control over failed event processing and leverage Kafka topics as an additional on-failure destination when using Provisioned mode for Kafka ESM. Customers can now define specific retry limits and time boundaries for retry, automatically discarding failed records beyond these limits to customer-specified destination. They can now also set automatic retries of failed records in the batch and enhance their function code to report individual failed messages, optimizing the retry process.
This feature is available in all AWS Commercial Regions where AWS Lambda’s Provisioned mode for Kafka ESM is available.
To enable these capabilities, provide configuration parameters for your Kafka ESM in the ESM API, AWS Console, and AWS CLI. To learn more, read the Lambda ESM documentation and AWS Lambda pricing.
Categories: general:products/aws-lambda,general:products/amazon-msk,marketing:marchitecture/serverless
Source: Amazon Web Services
Latest Posts
- AWS announces AWS Blocks, an open-source framework for composing application backends on AWS (Preview)

- (Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532]
![(Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532] 3 pexels apasaric 6062555](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Updates available for Microsoft 365 Apps for Current Channel [MC1393672]
![Updates available for Microsoft 365 Apps for Current Channel [MC1393672] 4 pexels evgeny tchebotarev 1058775 2541310](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft Purview: Credential scanning in Data Security Posture Agent [MC1259828]
![(Updated) Microsoft Purview: Credential scanning in Data Security Posture Agent [MC1259828] 5 pexels ashamplifies 3663024](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)


![(Updated) Microsoft Edge moving to a 2-week release cycle starting with Edge 152 [MC1387532] 3 pexels apasaric 6062555](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-apasaric-6062555-150x150.webp)
![Updates available for Microsoft 365 Apps for Current Channel [MC1393672] 4 pexels evgeny tchebotarev 1058775 2541310](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-evgeny-tchebotarev-1058775-2541310-150x150.webp)
![(Updated) Microsoft Purview: Credential scanning in Data Security Posture Agent [MC1259828] 5 pexels ashamplifies 3663024](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-ashamplifies-3663024-150x150.webp)
