I am using AWS Lambda with SQS trigger. My Lambda function is getting data from SQS and sending it to an external source. This external source is requiring authentication. So, before sending data, my function going to get two AWS SSM parameters - key data expiration and API key. With key data expiration my Lambda understanding - should we update API key or not.
Now I am starting to getting these errors:
[ERROR] ClientError: An error occurred (ThrottlingException) when calling the GetParameter operation (reached max retries: 4): Rate exceeded
I never know how much data I will get in SQS, so, looks like sometimes I am getting data with too big frequency.
My question is - how I can solve this issue? Which AWS service or way I can start to use instead of AWS SSM? Is it possible to cache data between AWS Lamdas?