mafintosh / hyperdb

Distributed scalable database
MIT License
752 stars 75 forks source link

How to use the `discoveryKey` to query values from remote instance? #170

Open KrishnaPG opened 4 years ago

KrishnaPG commented 4 years ago

Trying to achieve this below scenario, which for some reason is turning out to be complex than is necessary - any help is highly appreciated:

In other words, I have a db.discoveryKey and I have a field key - I am just interested in getting the latest value for that field key (and possibly its history, if required), without worrying about keeping the data in sync at the remote.

Is there some API call or some simple way to do this? Setting up replication, sockets, network sync seems to be overkill for such simple task. There must be a simpler way that I seem to be missing.