Custom reactive data sources on the server?

I know you can use Deps and Tracker to create data sources on the client that are reactive, but is there a way to create reactive data sources on the server that clients can listen without using Mongo?

Say I have an in-memory cache on the server that clients can push updates to via Meteor methods. Is there a way to for clients to listen to changes to this data structure and display the data structure “live”?

Is this possible using the built in DDP connection + Tracker?

You can use a publication


Note that any in-memory data structures you have will only work well for one server - if you are running multiple servers and containers the different processes will have different data in the cache.

1 Like

I’m just using the case of an in-memory data structure as an example :wink:

1 Like