powertools-lambda-typescript
powertools-lambda-typescript copied to clipboard
Feature request: Support Sequential Async Processing of Records for SqsFifoPartialProcessor
Use case
I am working with a FIFO SQS queue that requires processing batch records in an asynchronous manner. However, to maintain the order of messages, the SqsFifoPartialProcessor
currently only supports sequential synchronous processing. This limitation prevents me from using asynchronous processing in my FIFO queue handler, which is essential for my use case.
Solution/User Experience
I propose enhancing the SqsFifoPartialProcessor
to support sequential asynchronous processing while maintaining message ordering. This approach would be similar to the solution implemented here, but tailored to work with the SqsFifoPartialProcessor
. This would allow users to leverage asynchronous processing within FIFO queues without sacrificing the ordering guarantees.
Alternative solutions
No response
Acknowledgment
- [X] This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- [X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.