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
- Amazon EC2 announces interruptible Capacity Reservations

- Dynamics 365 Contact Center – Contact customers proactively with personalized options [MC1189618]
![Dynamics 365 Contact Center - Contact customers proactively with personalized options [MC1189618] 3 colorful liquid 7774019 1280](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Microsoft Teams on the web: New Private Preview for Sign in with Apple and Google for consumers may affect enterprise [MC1102784]
![Microsoft Teams on the web: New Private Preview for Sign in with Apple and Google for consumers may affect enterprise [MC1102784] 4 pexels freestockpro 1003851](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Power Apps – Add AI record summary to model-driven apps [MC1189623]
![Power Apps – Add AI record summary to model-driven apps [MC1189623] 5 pexels kinkate 368260](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)


![Dynamics 365 Contact Center - Contact customers proactively with personalized options [MC1189618] 3 colorful liquid 7774019 1280](https://mwpro.co.uk/wp-content/uploads/2025/06/colorful-liquid-7774019_1280-150x150.webp)
![Microsoft Teams on the web: New Private Preview for Sign in with Apple and Google for consumers may affect enterprise [MC1102784] 4 pexels freestockpro 1003851](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-freestockpro-1003851-150x150.webp)
![Power Apps – Add AI record summary to model-driven apps [MC1189623] 5 pexels kinkate 368260](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-kinkate-368260-150x150.webp)
