How can I use mogodb to only allow one entry when multiple servers are accessing the database?

前端 未结 0 339
半阙折子戏
半阙折子戏 2020-12-30 02:04

I have multiple "worker" servers processing jobs and accessing the same MongoDB database but I only want one message to be created and never allow two servers runn

相关标签:
回答
  • 消灭零回复
提交回复
热议问题