gunnargrosch / failure-lambda

Module for fault injection into AWS Lambda
MIT License
94 stars 13 forks source link

Optional feature to cache SSM configuration #38

Open garrett-mayer opened 2 years ago

garrett-mayer commented 2 years ago

@gunnargrosch

What do you think about an optional feature to cache the SSM config value?

We've ran into some SSM throttling issues while running load tests on our lambdas.

Ideally, we'd like to cache the value for a configurable amount of time.

Thoughts? I don't mind providing a PR to this project or simply forking the project either.

gunnargrosch commented 2 years ago

I like that! I think I have some notes around that already. Let me find those and post back here.

garrett-mayer commented 2 years ago

@gunnargrosch I've created a PR for this feature. https://github.com/gunnargrosch/failure-lambda/pull/39

Please take a look & let me know what you think - I'm happy to make any changes.

I wasn't quite sure how you wanted to document this feature - so I took a shot at updating the docs as well.