With an unexpected response from my very first blog to task scheduling with Redis here I’m writing another blog on to overcome the same solution with the MongoDB as many of my friends asked for it. Trust me its a very simple and very great solution if you want task scheduling with persistence (Please don’t use setTimeout)
在我的第一个博客上对Redis的任务调度产生了意外的React之后,我正在写另一个博客,以克服我的许多朋友所要求的与MongoDB相同的解决方案。 如果您希望持久性地进行任务调度,请相信我,它是一个非常简单且非常出色的解决方案(请不要使用setTimeout)
I’m going to show you that how can we use NodeJS with MongoDB for dynamic tasks to be performed by a service on dynamic timings given by the frontend.
我将向您展示,我们如何将NodeJS与MongoDB一起用于由服务按前端提供的动态计时执行的动态任务。
So, first thing, why I choose MongoDB for job scheduling? As we all know that MongoDB is a really popular NoSQL Database to be used with NodeJS and NodeJS is now being very popular for the go-to choice for the backend systems, so it can be really easy to adopt this service with your code structure if you are using Node and MongoDB.
那么,第一件事,为什么我选择MongoDB进行作业调度? 众所周知,MongoDB是一个非常流行的NoSQL数据库,可以与NodeJS一起使用,而NodeJS现在已经成为后端系统的首选,因此,如果您的代码结构很容易采用此服务,您正在使用Node和MongoDB。