Skip to content

Feature request: Support multi-process / multi-thread in Batch Processors #2500

Open
@HQarroum

Description

@HQarroum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    batchBatch processing utilityfeature-requestfeature requesthelp wantedCould use a second pair of eyes/hands

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions