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
Feature request: Priming for powertools-validation #2005
Java CRaC can be used to prime an application by implementing beforeCheckpoint() and afterRestore() hooks in selected classes. When used with AWS Snapstart, the beforeCheckpoint() hook runs before the memory snapshot is taken. This behavior can be leveraged to further reduce restore durations by pre-loading classes and calling commonly used code to incorporate this into the memory snapshot.
Class-preloading / automatic priming: Based on a statically generated classesloaded.txt file, loads classes used at runtime into memory
Invoke priming: Execute commonly used code e.g. to initialize all reflectively access objects, warm up caches, TCP connection pools etc. Common examples include performing "dry" AWS SDK calls (not impacting production resources) or performing JSON serialization/deserialization.
The goal of this issue is to implementing priming techniques for the powertools-validation module.
Solution/User Experience
Implement priming based on Priming Documentation (feel free to update documentation and suggest improvements):
Hello @phipag, Thank you for assigning me this issue. I have created pr #2081 for this issue. Please review it when you have time and let me know if any changes are required. Looking forward for your feedback.
Activity
kjswaruph commentedon Aug 24, 2025
Hello, Can I take up this issue?
phipag commentedon Aug 24, 2025
Hi @kjswaruph, of course. I assigned the issue to you. Please let me know if you have any questions.
kjswaruph commentedon Aug 25, 2025
Hello @phipag, Thank you for assigning me this issue. I have created pr #2081 for this issue. Please review it when you have time and let me know if any changes are required. Looking forward for your feedback.
phipag commentedon Aug 27, 2025
Thank for working on this. Both automatic and manual priming was implemented by #2081 !