Distributed database with hundreds of read-only replicas which can synchronise asynchronously through HTTP

Viewed 41

I have a service running as a sidecar next to a variety of applications. This service needs to be extremely fast and do not make remote calls. It has to have in-memory database. The contents of this database have to be populated and kept up-to-date (although a lag is acceptable) with a central component. The service does not accept writes.

Of course this could be done through a mechanism of long pooling, for instance, but this brings the complexity of managing this solution and some intrinsic inefficiencies.

Is there a lightweight, ephemeral in-process and preferably in-memory database that can synchronise asynchronously with central replica preferably through regular HTTP so that no ports needs to be opened?

1 Answers

Maybe Couchbase lite/mobile is what you are after. Atleast mobile is syncing over a web socket, not sure about which protocol lite is running (or if there is actually a difference between the products).

Seems like couchbase lite replaced touchDB which was a mobile version of CouchDB IIRC.

Another variant might be running pouchDB and using CouchDB as the master backend. You don't say which platform the application will run on, which is relevant if you want an in-process solution.

Related