Skip to main content
BatchBeginnerCLF-C02SAA-C03

EventBridge + Lambda Batch Processing Architecture

A scheduled batch architecture that triggers Lambda from EventBridge schedules. Serves as the foundation for daily question delivery and periodic aggregation processing.

Published: 2026-06-01/Updated: 2026-06-21
#batch processing#scheduled execution#event-driven#automation

Architecture diagram

EventBridge + Lambda Batch Processing Architecture architecture diagram

AWS services used

Click a service name to review it on the term detail page.

Overview

This is a serverless batch processing architecture that triggers Lambda at scheduled times using EventBridge.

It is suitable for daily question delivery, periodic report generation, cleanup of old data, and aggregation processing.

In this project, it can be applied to future use cases such as "daily one question delivery" and "study reminders".

Architecture Diagram

flowchart TD
    Scheduler[EventBridge Scheduler]
    Rule[EventBridge Rule]
    Lambda[AWS Lambda Batch Function]
    DDB[(DynamoDB)]
    SNS[SNS optional]
    SES[SES optional]
    CW[CloudWatch Logs]
    Alarm[CloudWatch Alarm optional]
    IAM[IAM Role]
    Budget[AWS Budgets]

Scheduler -->|Trigger daily at scheduled time| Lambda
Rule -.Trigger by event pattern.-> Lambda
Lambda -->|Fetch question data| DDB
Lambda -->|Notification optional| SNS
Lambda -->|Email send optional| SES
Lambda -->|Write logs| CW
CW -->|Error detection optional| Alarm
IAM -.Lambda execution permission.-> Lambda
IAM -.DynamoDB read permission.-> DDB
Budget -.Billing monitoring.-> Scheduler
Budget -.Billing monitoring.-> Lambda
```

What This Architecture Achieves

ItemDetails
Scheduled executionRun processing at fixed times daily, weekly, or monthly
ServerlessNo need to keep a batch server always running
AutomationAutomate report generation, data cleanup, notifications, etc.
Notification integrationCombine with SNS or SES to send notifications
Operational monitoringCheck execution results with CloudWatch Logs and Alarm

AWS Services Used

ServiceRole
Amazon EventBridge SchedulerTrigger Lambda at specified times or cron expressions
Amazon EventBridge RuleTrigger based on event patterns
AWS LambdaThe batch processing itself
Amazon DynamoDBStore question data, user settings, and processing state
Amazon SNSUsed as a notification destination
Amazon SESUsed when email delivery is required
Amazon CloudWatch LogsReview Lambda execution logs
CloudWatch AlarmNotify when batch processing fails
IAMControl Lambda's access permissions to each service
AWS BudgetsDetect increases in execution count or billing incidents

Request Flow

  1. EventBridge Scheduler emits an event at the specified time
  2. EventBridge triggers Lambda
  3. Lambda fetches the required data from DynamoDB
  4. Lambda executes the scheduled processing
  5. If notification is needed, it integrates with SNS or SES
  6. Lambda writes execution results to CloudWatch Logs
  7. If an error occurs, CloudWatch Alarm sends a notification
  8. AWS Budgets monitors unexpected increases in execution or billing

Design Considerations

Availability

Since Lambda and EventBridge are managed services, you do not need to manage a batch server yourself.

However, if you do not design retries on failure, DLQ, and notification destinations, failures will be hard to notice.

Security

Grant the Lambda execution role only the read access to the target DynamoDB table, the necessary notification services, and CloudWatch Logs write permission.

If you include personal information in emails or external notifications, minimize the content sent.

Cost

EventBridge and Lambda are usage-based. They are well suited to low-frequency scheduled processing.

On the other hand, if you raise the execution frequency too much, Lambda invocation count, DynamoDB reads, and log storage will all increase.

In an MVP, it is safer to start at a low frequency such as "once per day".

Operations

Record start time, end time, processing counts, and error types in CloudWatch Logs.

Do not log personal information such as full email addresses of users or body content.

SAA Exam Focus

  • Use EventBridge Scheduler or EventBridge Rule for scheduled execution
  • EventBridge + Lambda is a candidate for serverless batch processing
  • Understand Lambda's maximum execution time and timeout
  • Design retries on failure, DLQ, and notifications
  • Understand the difference between cron expressions and rate expressions
  • For long-running or large-scale processing, Step Functions, ECS tasks, and AWS Batch are also candidates

Notes on This Architecture

  • Set Lambda's timeout to match the processing content
  • Do not cram long-running or large-data processing into a single Lambda
  • Do not retain CloudWatch Logs indefinitely
  • Do not set the execution frequency too high
  • For notifications like daily question delivery, user consent and an unsubscribe path are required
  • When using SES, check sending limits and sender domain authentication

Related Terms

Related Comparisons

Summary

EventBridge + Lambda is a representative architecture for implementing scheduled processing serverlessly.

In this project, it can be applied to future use cases such as daily question delivery or study reminders. However, in the MVP we keep cost and operations low and introduce it only when actually needed.

Explore more AWS architectures

For the SAA exam, understanding AWS as architecture patterns matters more than memorizing individual services.

Back to architectures

Related architectures