Is boto library thread-safe?

后端 未结 1 1601
名媛妹妹
名媛妹妹 2021-02-20 06:13

Specifically I\'m interested in using a DynamoDB table object from multiple threads (puts, gets, updates, etc). If that\'s not safe, then is there a safe way (i.e., maybe one ta

相关标签:
1条回答
  • 2021-02-20 06:20

    The boto library uses httplib which has never been, and to my knowledge still is not, thread-safe. The workaround is to make sure each thread creates its own connection to DynamoDB and you should be good.

    0 讨论(0)
提交回复
热议问题