octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

Can start up and run without a working MongoDB instance #43

Closed bassdread closed 10 years ago

bassdread commented 10 years ago

No tests to ensure database is available on start up. It runs but fails to return data as there is no database backend.

octoblu commented 10 years ago

Should the system start if the database is unavailable?
Should the system simply warn that the database is unavailable and gracefully shutdown?

kobieisen commented 10 years ago

It should probably stay up and wait until the DB becomes available. This way you are not dependent on the order of deployment between Skynet and the DB.

On Apr 30, 2014, at 23:58, "SKYNET.IM" notifications@github.com wrote:

Should the system start if the database is unavailable?

Should the system simply warn that the database is unavailable and gracefully shutdown?

— Reply to this email directly or view it on GitHub.

bassdread commented 10 years ago

It should not return 403 when posting data. How about if all returns are made 500?

chrismatthieu commented 10 years ago

We now fallback to NEDB (filesystem storage) if no Mongo instance is specified.