Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
具体来说,我有兴趣使用来自多个线程(放置、获取、更新等)的 DynamoDB 表对象。如果这不安全,那么是否有一种安全的方法(即,每个线程可能有一个表对象)?任何其他有关在 boto 中使用线程的问题或技巧都值得赞赏。
boto 库使用的 httplib 从来没有,据我所知,它仍然不是线程安全的。解决方法是确保每个线程都创建自己的与 DynamoDB 的连接,并且您应该很好。