Description
Use case
Use the SQS Batch Processor to spread record handlers across multiple threads/processes to avoid main thread bottlenecks when performing CPU bound tasks on the record handler. The context is about using Lambda functions (1G+ memory) to do document processing involving CPU intensive tasks such as OCR. Spreading tasks in Lambdas supporting batching windows and partial item failures across multiple CPU cores will significantly speed up the process and we'd prefer using Lambda PowerTools for that.
Solution/User Experience
A way to use a specific implementation of a Batch Processor which provides an executor to orchestrate the execution of the record handlers across multiple threads/processes (similar to the AsyncBatchProcessor
implementation). Typescript support for batch processors and this feature would of course be much appreciated.
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Metadata
Metadata
Assignees
Type
Projects
Status