Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Lambda SQS Batch Size and Polling Optimization

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [SQS_QUEUE_CONFIG]
  • [BATCH_SIZE]
  • [VISIBILITY_TIMEOUT]
lambda-sqs-batch-optimization.txt
Analyze the integration between SQS and Lambda based on [SQS_QUEUE_CONFIG]. Determine if the [BATCH_SIZE] is optimal for the processing time of a single message. Calculate the risk of partial batch failures and propose a 'Batch Item Failures' response strategy to avoid reprocessing the entire batch. Recommend adjustments to the [VISIBILITY_TIMEOUT] and batch window to minimize unnecessary invocations and lower costs.

Example Output

"The AI would provide a JSON response structure for SQS partial batch success and recommend an optimal BatchWindow of 10-20 seconds for low-traffic queues."