Long running processes; caching config or clients -- considerations #1133
Unanswered
marc-ostrow
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did not notice recommendations on caching and reuse of a built configuration, nor instantiated service clients, especially in the context of a long running application https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/
Are there any negative consequences of reusing the same configuration during a long running process? Given EC2, I suppose a long running process could get bitten if the IAM Role was replaced on the running EC2, for example. However, there is an
ec2rolecreds
credentials provider. If the configuration was configured with this credentials provider, this wouldn't be an issue, presumably.Are there any negative consequences of reusing the same instantiated service client? Would errors on the client be reason enough to create a new client?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions