Skip to content

Commit 7ed7e43

Browse files
committed
trigger: activate dangerous message size breach scenario
- Increase message_size_breach_max_size from 25KB to 100KB - With batch_size=10, total payload becomes 1MB (4x Lambda's 256KB async limit) - This will cause complete Lambda processing failure during Black Friday - Demonstrates Overmind's ability to catch non-obvious cross-service limits - Perfect demo of hidden risk: innocent config change with catastrophic impact
1 parent 3fe2e86 commit 7ed7e43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/scenarios/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module "message_size_breach" {
9797
example_env = var.example_env
9898

9999
# The configuration that looks innocent but will break Lambda
100-
max_message_size = var.message_size_breach_max_size # 256KB (safe) vs 1MB (dangerous)
100+
max_message_size = var.message_size_breach_max_size # 25KB (safe) vs 100KB (dangerous)
101101
batch_size = var.message_size_breach_batch_size # 10 messages
102102
lambda_timeout = var.message_size_breach_lambda_timeout
103103
lambda_memory = var.message_size_breach_lambda_memory

modules/scenarios/message-size-breach/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module "message_size_demo" {
111111
example_env = "demo"
112112
113113
# The "optimization" that kills production
114-
max_message_size = 1048576 # 1MB - seems reasonable!
114+
max_message_size = 102400 # 100KB - seems reasonable!
115115
batch_size = 10 # Same batch size
116116
lambda_timeout = 180 # Same timeout
117117
}

modules/scenarios/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ variable "enable_message_size_breach_demo" {
5050
variable "message_size_breach_max_size" {
5151
description = "Maximum message size for SQS queue in bytes. 25KB (25600) is safe, 100KB (102400) will break Lambda batch processing. Based on AWS Lambda async payload limit of 256KB."
5252
type = number
53-
default = 25600 # 25KB - safe default
53+
default = 102400 # 100KB - DANGEROUS! Will exceed Lambda payload limit
5454

5555
validation {
5656
condition = var.message_size_breach_max_size >= 1024 && var.message_size_breach_max_size <= 1048576

0 commit comments

Comments
 (0)