Search code examples
node.jsmongodbmeteorminimongo

Is minimongo present on a server instance running Meteor?


I have a Meteor API with with a job collection and I want to create a Meteor app to deploy on multiple servers to work as distributed workers. Will minimongo be present on these servers as well? (as my server side app is not using the browser)

Question is basically, will the distributed workers have access to its own mongo instance even if DDP connection is down?


Solution

  • In Meteor, each client runs minimongo. On the server Meteor communicates with a mongodb instance. Multiple Meteor server instances of the same application would still communicate with the one mongodb instance. You can even have multiple Meteor applications use a single mongodb instance (a common pattern when creating separate admin UIs).

    With regards to your question, if DDP is down then the Meteor clients cannot communicate with the Meteor server application(s) but the latter can still communicate with the mongodb server which means that things like cron jobs can still run.