Skip to content

Improve documentation for multiprocessing/threading around the boto3.client method. #2991

Open
@nateprewitt

Description

@nateprewitt

Currently, invoking boto3.client to create a client calls create_client on the default Boto3 session. This can lead to concurrency issues when done across parallelization primitives unexpectedly. We should update the documentation to clarify both in the client and session docs that calling this method inside threads may not be safe. The safe approach is to create a client in the parent thread/process either with the default session or a user instantiated session. This client can be shared as needed.

Client Documentation
Session Documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.feature-requestThis issue requests a feature.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions