Announcing Couchbase Mobile 2.0

Couchbase Mobile extends the Couchbase Data Platform to the edge, securely managing and syncing data from any cloud to every mobile device. Build better and more-responsive customer experiences across all mobile touchpoints and fully empower field teams with guaranteed data availability and millisecond response times, irrespective of network connectivity. Couchbase Mobile features an embedded database with SQL and full-text search for JSON, built-in synchronization, and end-to-end security from cloud to edge.

Key new features in 2.0

Simplified APIs

Couchbase Mobile 2.0 introduces new, easy-to-learn APIs that reduce the learning curve and enable developers to become productive quickly. Incorporating extensive input from the developer community, the APIs include new capabilities such as built-in thread safety, mutable properties, typed accessors, and blobs for accessing attachments.

New query interface

Couchbase Mobile 2.0 introduces a simpler, more-powerful query interface for Couchbase Lite that can help significantly reduce the time and effort required for development. The new interface is based on N1QL – the Couchbase declarative query language that extends SQL for JSON. Developers who have used SQL will find the new interface familiar.
With two styles, builder and fluent, the query API enables developers to choose the implementation depending on the development platform. It also provides a consistent cross-platform experience to developers, making it super easy to build applications that behave and perform the same way irrespective of the platform.

Full-Text Search

With Couchbase Mobile 2.0, users can perform full-text searches on JSON documents stored in Couchbase Lite. Developers can create a mobile app search experience that mirrors Google, Yahoo, and other search experiences on the web.
The API for using full-text search is similar to the query API. Users can search for text, text fragments, and text connected by binary operators. Couchbase Lite locates the set of JSON documents that best matches those terms.

New replication protocol

Couchbase Mobile 2.0 incorporates a new replication protocol. Based on WebSocket, the protocol is designed to be fast, efficient, and simple to implement, providing a symmetrical approach for client and server.
The new replication protocol also consumes fewer resources on both the client and the server. As a result, more clients can connect concurrently, and they can synchronize data with lower latencies. The faster speed and lower latency achieved with the new replication protocol help deliver a better, more-responsive user experience.

Automatic conflict management

Conflict management has been completely redesigned in Couchbase Mobile 2.0 and will detect any conflict and automatically resolve it without additional code. It will also reduce the complexity involved in building distributed apps that share data amongst users and devices.

On-device replicas

An on-device replica enables developers to provide data recovery on the edge. It allows a CBL replicator to store data on secondary storage that can then be ported to a different device. It would be especially useful in scenarios where a user’s device is damaged and the data needs to be moved to a different device.