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.
我的数据库(mongodb和mysql)StatefulSet在yaml文件中声明。后端框架是django. 如果我将执行写操作(编辑或删除)的函数定义为async,它将是线程安全的,对吗?我应该使用锁还是互斥锁?
mongodb
mysql
StatefulSet
yaml
django
async
就像你在其他任何地方做的一样。MySQL 提供了多种交易安全方式和模式,您使用的方式取决于您的数据结构和需求。Mongo 稍微不那么复杂,但提供了很多至少假设的交易选项。