Edit
This should go under the comments, but I found that it could be too long for him, so I am posting as an answer. Or maybe I misunderstood your question?
I wonder why you are against mongo . I somehow think that this is a good match with Meter.
In any case, everyone uses a case that may be different, and your idea is feasible, but not with some serious hacks.
if you look at the source code of Meteor, you can find tools/run-mongo.js , where Meteor says mongo , you can configure or implement your adapter to work with your in-memory.
Another approach I can come up with is to wrap your objects in memory and write the database logic / level to intercept the existing connection to the mongo database (default port on 27017), you should take care of all the system environment variables, such as MONGO_URL etc. to make it work correctly.
The final approach waits until Meteor officially supports other databases, such as Redis .
Hope this helps.
Anzel source share