Spiking Lambda concurrency to the max during peak hours. The EventBridge rule is catching interaction events from Genesys Cloud, but the batch size seems inconsistent. I’ve got a simple handler that just logs and puts to SQS for async processing.
export const handler = async (event: EventBridgeEvent<GenesysInteraction, any>) => {
const records = event.detail?.records || [];
const promises = records.map(r => sqs.send({ Message: JSON.stringify(r) }));
return Promise.all(promises);
};
The issue is that EventBridge retries on 429s from SQS, which causes the Lambda to scale out aggressively. I’m hitting the account concurrency limit. Is there a way to configure the EventBridge target to throttle or batch differently? Or should I be using a different pattern for high-volume interaction streams?