Search code examples
meteorpublish-subscribe

How to do server to server publish/subscribe?


I want to do:

I have a mongodb in server A and a mongodb in server B, I want server B's mongodb can subscribe to server A's publish.

Means, server B's mongodb is a subset of server A's mongodb.

It can be any other database.

Is there any tech(database/framework/libs) can do this?

Original:

What I found is Meteor works with server publish and client subscribe.

But what I need to do is a server to server publish/subscribe, does meteor support this?


Solution

  • You can use environment variables for meteor. Here is example;

    MONGO_URL=mongodb://serverB:8000/db_name