opentorc / config-wrapper

Wrapper module for managing app configurations w/ AWS param store
MIT License
1 stars 2 forks source link

Resolve: Throttling Exception #5

Open ritesh-cs opened 1 year ago

ritesh-cs commented 1 year ago

We are getting Throttling Exception by AWS via Parameter Store.

https://aws.amazon.com/premiumsupport/knowledge-center/ssm-parameter-store-rate-exceeded/

Possible Options

  1. We can probably increase the number of parameters retrieved to 10. https://github.com/opentorc/config-wrapper/blob/122e25a1a74ab02f0681c8eed4e20f62635d6148/src/lib/awsManager.js#L66
  2. Implement memory caching. Have an internal map if the service value already present in the map, return that, else retrieve via API call.
Screenshot 2022-12-12 at 2 21 08 PM
callmekatootie commented 1 year ago

PR ready - https://github.com/opentorc/config-wrapper/pull/6