-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Pattern Name
eventbridge-schedule-to-lambda-dlq-sam-python
Description
This pattern demonstrates EventBridge Scheduler's comprehensive failure handling capabilities through dual Dead Letter Queues (DLQs). It showcases how EventBridge Scheduler manages both Lambda execution failures and scheduler invocation failures through separate SQS queues, providing complete visibility into different failure types.
The pattern includes a Lambda Execution DLQ that captures code-level failures (exceptions, timeouts, out-of-memory errors) and an EventBridge Scheduler DLQ that captures invocation-level failures (IAM permissions, throttling, resource not found, maximum retries exhausted). This dual DLQ architecture enables appropriate remediation strategies for each failure type.
Language
Python
Framework
AWS SAM
Level
200 - Intermediate
GitHub PR for template
Services Used
- Amazon EventBridge Scheduler
- AWS Lambda
- Amazon SQS
Learning Resources
- Getting Started with EventBridge Scheduler
- EventBridge Scheduler Retry Policies
- EventBridge Scheduler Dead Letter Queues
- Lambda Asynchronous Invocation
- SQS Dead Letter Queues
Author bio
Name: Sasidharan Ramasamy
Bio: Technical Account Manager at Amazon Web Services with over 10 years of experience, passionate about serverless architectures and helping customers build resilient event-driven applications.
LinkedIn: https://www.linkedin.com/in/sasidharan-ramasamy/
Additional Notes
This pattern is particularly useful for:
- Understanding EventBridge Scheduler's retry and failure handling mechanisms
- Implementing robust scheduled workflows with comprehensive error tracking
- Learning the difference between invocation failures vs execution failures
- Building production-ready scheduled tasks with proper observability
The pattern includes detailed testing instructions for simulating both types of failures, making it an excellent learning resource for developers new to EventBridge Scheduler.