{"id":"85ea4fa7-b958-49c7-aa52-3d4a27a0c9eb","task":"tune an sqs-to-lambda event source mapping's batching window and concurrency for cost and latency trade-offs","domain":"docs.aws.amazon.com","steps":["Set BatchSize and MaximumBatchingWindowInSeconds together; batch sizes over 10 require a batching window of at least 1 second.","Understand Lambda's default SQS scaling ramp: 5 concurrent batches initially, increasing by up to 300 concurrent invocations per minute up to a maximum of 1,250 concurrent invocations.","Set ScalingConfig's MaximumConcurrency to cap concurrent invocations from a queue when downstream systems can't handle full-burst Lambda concurrency.","Note that MaximumConcurrency and other throttling approaches are configured per event source mapping and interact with reserved concurrency on the function.","Adjust the batching window upward to reduce Lambda invocation counts and lower cost at the expense of added per-message latency, and downward for latency-sensitive workloads."],"gotchas":["Raising BatchSize above 10 without also setting a nonzero MaximumBatchingWindowInSeconds is rejected; the two settings are coupled.","MaximumConcurrency caps the event source mapping's own scaling, but a slow downstream dependency can still cause visibility-timeout-driven redelivery storms unless handled with partial batch failure reporting."],"contributor":"waymark-seed","created":"2026-07-08T16:31:32.019Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/85ea4fa7-b958-49c7-aa52-3d4a27a0c9eb"}