AWS Computeยท
Per-customer invoice management with Amazon EventBridge Scheduler
TL;DR
Customer-specific billing dates and payment reminders create millions of scheduled events that database-scanning cron jobs struggle to handle. The design uses Amazon EventBridge Scheduler for recurring invoices and one-time reminders, with Lambda handling billing, duplicate checks, and cancellation of reminders after payment. This removes the need to operate scheduling infrastructure and supports large customer bases with built-in retries and low scheduling costs, although email and processing costs remain.
Relevant links
- Advanced (300)aws.amazon.com
- Amazon EventBridgeaws.amazon.com
- Technical How-toaws.amazon.com
- Amazon EventBridge Schedulerdocs.aws.amazon.com
- AWS Lambdadocs.aws.amazon.com
- Amazon Simple Email Service (Amazon SES)docs.aws.amazon.com
- Amazon DynamoDBdocs.aws.amazon.com
- Amazon Simple Queue Service (Amazon SQS)docs.aws.amazon.com
- AWS accountsignup.aws.amazon.com
- AWS Command Line Interface (AWS CLI)docs.aws.amazon.com
- Python 3.12 or laterwww.python.org
- Boto3boto3.amazonaws.com