TritonDataCenter / node-workflow

Task orchestration, creation and running using NodeJS
MIT License
456 stars 66 forks source link

Using mongodb for persistence #126

Open leoncc opened 9 years ago

leoncc commented 9 years ago

Hi,

I was looking at this and other nodejs workflow packages and like what I see here (concepts etc.). Only problem is that it seems that you need a running Postgres or Redis server. How much work and what would be involved and how complicated do you think it would be to persist to mongodb?

Thanks

kusor commented 9 years ago

I'm not very familiar with mongodb myself, but you will need to have a module like redis-backend, postgres-backend or moray-backend.

You can see the required methods for an eventual mongodb backed module into each one of these modules. That'll be all the work needed.

Complicated?, it depends on the experience with MongoDB of whoever writing the module, I assume.

kaiserfro commented 8 years ago

Surprised that no one has taken this one on over the last year. I happen to have something working. I basically took @kusor's pg backend unit tests and built up a new backend using Mongodb.

Its a little rough yet, but maybe I'll work on cleaning it up and creating a project for it.

davewthompson commented 8 years ago

@kaiserfro - did you ever release the MongDB backend? Thanks!