How to sync Android app with Couchbase Server?

I am struggling to discern all the different couch * technologies that are there. I use CouchDB and use Couchbase Server to play the Android game I am developing, and the lack of documentation is disappointing.

My understanding of technology:

  • CouchDB is a non-SQL database that has been under development for the past few years and is associated with the use of the RESTful API. It has been left by its main developers in favor of working on the Couchbase Server.

  • Couchbase Server is an enterprise solution for a large database where low latency is paramount. It stores hot data in memory using memcached, but the data is stored in the CouchDB database.

  • Couchbase Mobile - Mobile Implementation of CouchDB <- Legacy

  • TouchDB is a mobile implementation of CouchDB.

  • Ektorp is a framework that allows a developer to talk and synchronize with a CouchDB instance with Java.

What is missing on my list is the structure to talk to Couchbase Server from Android (and, ultimately, iOS).

Is there such a structure?

+4
source share
2 answers

To synchronize an application with Couchbase Server, typically an application created on TouchDB, the wireframe you are looking for is Mobile Syncpoint as listed on the Couchbase wiki . This is open source, but the coordinates for the Dev mailing lists and concepts related to this wiki.

Typically, you should use Ektorp on top of TouchDB, and then use Mobile Syncpoint to synchronize with a Couchbase server running in the data center somewhere.

0
source

I assume that you do not want the Couchbase Server on Android, but rather want your Android application to talk to the Couchbase Server instance on the remote server somewhere.

The primary interface for Couchbase Server is memcached, so any memcached library for Android will work. If necessary, any of the remaining Couch calls are simple HTTP calls.

+1
source

All Articles