-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure we reuse boto3 clients and resources #1528
Conversation
dde51fb
to
5cedd64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @terrazoon! I took a look here and flagged a couple of things, and left a general comment/discussion question about the use of a global
vs. just moving things into a class instead. We don't need to dig in deeply on that but I did want to call it out.
Thanks for all of the tests here, too! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again, @terrazoon!
Description
boto3 clients and resources are thread safe and have built in connection pooling, so we should reuse them as much as possible. Implement the singleton pattern to make sure we are doing so.
Security Considerations
N/A