Skip to content

New Pattern: EventBridge Scheduler to Lambda with Dual DLQs (SAM/Python) #2982

@rssasidharan2

Description

@rssasidharan2

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

#2981

Services Used

  • Amazon EventBridge Scheduler
  • AWS Lambda
  • Amazon SQS

Learning Resources

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions