Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add support for Differentiating cached and regular responses in Idempotency for accurate metrics #795

Open
2 tasks done
hjgraca opened this issue Feb 27, 2025 · 0 comments
Labels
area/idempotency feature-request New or enhancements to existing features triage Pending triage from maintainers

Comments

@hjgraca
Copy link
Contributor

hjgraca commented Feb 27, 2025

Use case

Manipulating the Idempotent Response Python docs
This allows to differentiate between regular and cached responses.

Java issue #1780

Solution/User Experience

You can set up a response_hook in the IdempotentConfig class to manipulate the returned data when an operation is idempotent. The hook function will be called with the current deserialized response object and the Idempotency record.

Alternative solutions

Acknowledgment

@hjgraca hjgraca added area/idempotency feature-request New or enhancements to existing features triage Pending triage from maintainers labels Feb 27, 2025
@hjgraca hjgraca moved this to 📋 Backlog in Powertools for AWS Lambda (.NET) Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idempotency feature-request New or enhancements to existing features triage Pending triage from maintainers
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant