Comments (5)
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
from powertools-lambda-python.
Thanks for raising this @nico00.
I guess it depends on what you're trying to do with them – Lambda will auto redrive to reprocess these messages at a service level.
from powertools-lambda-python.
That's correct but in such case Lambda is limited to two retries, while DynamoDb stream allows up to 10,000 retries. On the other side I see no cons in filling in processor result just before raising BatchProcessingError.
from powertools-lambda-python.
hey @nico00, please allow me to ask some clarifying questions
BatchProcessingError is raised when all records failed to be processed. In such case, processor response appears empty, as all records have been successfully processed.
It's technically a Lambda invocation failure, as recommended by the Lambda team. The Lambda Poller picks up the error and considers the entire batch a failure, there is no empty response in this case.
Are you experiencing an empty response instead of a BatchProcessingError
? If so, it'd be a bug/regression on our side.
This would give the programmer the freedom to decide what to do according to various business cases.
Would you be able to expand with one or more examples to help us picture this better?
I'm trying to understand whether you want to intercept a BatchProcessingError
- like you can with the context manager today - or something else entirely?
Thanks a lot!
from powertools-lambda-python.
Also, before I forget, thank you for creating a feature request :) We always appreciate hearing from customers and learning what additional use cases can be unblocked (or made easier!) for everyone
from powertools-lambda-python.
Related Issues (20)
- [I Made This]: Serverless API Documentation with Powertools for AWS HOT 1
- Feature request:Provide event handler for Lexv2 lambda integration HOT 1
- Bug: idempotency logic should first validate the payload and then cache HOT 2
- Bug: Event Handler Data Validation `KeyError: 'multiValueHeaders'` regression when running locally HOT 3
- Docs: Improve install section with minimal dependencies first HOT 2
- Static typing: missing @overload to ensure return type is a str when default_value is set HOT 3
- Bug: RequestValidationError handling behavior should not be affected if we add exception handler for Exception HOT 7
- Feature request: Function to retrieve mutli-value query string parameters HOT 2
- Feature request: Add event object sent from Cloudwatch Alarms HOT 7
- Bug: CORS headers not appending to API Gateway REST API responses HOT 7
- Bug: Importing AWSEncryptionSDKProvider in the AWSLambdaPowertoolsPythonV2 layer results in ModuleNotFoundError: No module named '_cffi_backend' HOT 6
- Maintenance: Create a Powertools Lambda layer for each Python version HOT 1
- RFC: Canonical Wide Log utility for emitting a single log entry per lambda execution or processed transaction (batch) HOT 2
- Bug: SQSMessageAttributes __getitem__ has a different type to items() values HOT 6
- Bug: Mongo ObjectIds not serializing out of the box HOT 7
- Maintenance: ruff needs a new parameter "check" HOT 2
- Bug: Validating POST body fails with BedrockAgentResolver HOT 3
- Static typing: parameters get_secret HOT 1
- Bug: Event handler middleware not triggered for not found routes HOT 3
- Feature request: Remove 'service' dimension from single_metric() HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powertools-lambda-python.