You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: improve documention regarding the change to async when migrating from BatchProcessorSync to BatchProcessor #4760
Migrating from BatchProcessorSync and processPartialResponseSync to BatchProcessor and processPartialResponse with the processInParallel flag set to false should make no change to behaviour.
Current Behavior
Using BatchProcessor and processPartialResponse with the processInParallel flag set to false processes records in parallel, which means we lose data where before we didn't.
With some records that have a list of item IDs and quantities, you can run the above and see that records get overwritten because they're being process in parallel still, even when specified not to.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link
Your reproduction looks the same as mine... Not sure where the differences between ours is. At the very least, our unit tests don't behave the same between BatchProcessor and BatchProcessorSync. I'll dig a bit deeper to find why you can't replicate it.
changed the title [-]Bug: BatchProcesser isn't a suitable replacement for BatchProcessorSync[/-][+]Docs: improve documention regarding the change to async when migrating from `BatchProcessorSync` to `BatchProcessor`[/+]on Dec 3, 2025
Hey @sdangol, just checking in on this one - have you had a chance to work on the documentation improvements discussed above? Let me know if you need any help or if there's anything blocking you.
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Activity
boring-cyborg commentedon Nov 17, 2025
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link
dreamorosi commentedon Nov 17, 2025
Hi @Tohaker, thanks for opening this issue.
Please allow a couple hours for me to look into the report and formulate an answer.
sdangol commentedon Nov 18, 2025
Hi @Tohaker, I tried to reproduce the scenario in https://github.com/sdangol/repro-4760/tree/main. Let me know if I'm doing this correctly.
I've created a simple lambda function which has the SQS Queue as the source. When I send some message to the queue using
If there are multiple records in a single batch, I am getting the map as expected in my logs.
Is it that you're looking to persist these across multiple Lambda invocations?
Tohaker commentedon Nov 19, 2025
Your reproduction looks the same as mine... Not sure where the differences between ours is. At the very least, our unit tests don't behave the same between
BatchProcessorandBatchProcessorSync. I'll dig a bit deeper to find why you can't replicate it.dreamorosi commentedon Nov 19, 2025
Hi @Tohaker, thanks - let us know if you find it.
We're also more than happy to jump on a call with you / your team to dive deeper into it, if you'd prefer.
6 remaining items
[-]Bug: BatchProcesser isn't a suitable replacement for BatchProcessorSync[/-][+]Docs: improve documention regarding the change to async when migrating from `BatchProcessorSync` to `BatchProcessor`[/+]dreamorosi commentedon Jan 6, 2026
Hey @sdangol, just checking in on this one - have you had a chance to work on the documentation improvements discussed above? Let me know if you need any help or if there's anything blocking you.
powertools-for-aws-oss-automation commentedon Jan 7, 2026
Warning
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either reopen the issue, or open a new issue referencing this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Jan 12, 2026
This is now released under v2.30.2 version!