We have a use case where we need to generate an API token every 9 minutes and store it to use for next 9 minutes and we generate API token again and replace old one. This is the cycle that we follow in our application. The application is running in AWS Lambda function .
The question is, where do we save this token for 9 minutes and rotate every 9 minutes? We can save in one of the DynamoDB tables and retrieve it in our application for low latency, or should we save it in Secrets Manager?
Which is the better option to store and retrieve for this use case so that latency would be low for my Application ?
I will have to use this token 1 million times in a day in my application .