We’re pleased to announce the General Availability (GA) of the Couchbase Lite 2.8 and Sync Gateway 2.8 platforms. This groundbreaking release introduces significant enhancements to our sync technology for disconnected and distributed cloud deployments. You can learn more about the emergence of edge computing and edge architectures in this related whitepaper.

On the Sync Gateway, we’ve introduced enterprise-grade inter-Sync Gateway replication for secure cloud-to-edge data sync at scale. On Couchbase Lite, we’ve introduced out-of-the-box support for enterprise-grade peer-to-peer data sync in IP-based networks that enables clients to securely sync data with each other without the need for a centralized control point.

In this post I’ll discuss the main features in the 2.8 release of Couchbase Lite and Sync Gateway. To learn about the numerous bug fixes and minor enhancements, you can read our platform-specific release notes.

Here’s how you can start using the new features in Couchbase Lite and Sync Gateway 2.8:
Download Sync Gateway 2.8
Get the Sync Gateway 2.8 Docker Image
Download Couchbase Lite 2.8

Sync Gateway

Inter-Sync Gateway Replication

This release of Sync Gateway introduces support for enterprise-grade Inter-Sync Gateway replication protocol for data sync between Sync Gateway clusters in the cloud or between clusters in the cloud and edge data centers. The protocol, based on WebSockets, replaces the current 1.x version of the SG-Replicate protocol.

The new version supports a number of enterprise-grade features including automatic load balancing of replications across Sync Gateway nodes, built-in high availability (HA), delta sync to reduce data transfer cost, automatic data conflict resolution that includes built-in conflict resolvers as well as the ability for developers to define their own conflict resolvers, dedicated REST endpoint for remote administration and much more.

Learn more:
Blog: Inter Sync Gateway Replication for Cloud-to-Edge Sync
Documentation
Webinar including demonstration of capability
Edge Computing solutions page

OIDC Enhancements

In this release we’ve updated our OIDC library and broadened our support of OIDC token providers for token-based user authentication. We’ve also introduced a new configuration option that allows developers to specify the token attribute to be used as the Sync Gateway user’s “username” instead of restricting it to the subject/issuer token attributes.

Read more:
Documentation

Prometheus Monitoring Support (Developer Preview)

In 2.8 we have a new metrics endpoint that exposes stats in a Prometheus compatible format. This is in addition to the JSON format that is already supported. Adopted by the CNCF foundation, Prometheus is an open source systems monitoring and alerting solution that is quickly becoming the de facto monitoring platform of choice, especially in cloud-native deployments. Now you can directly integrate Sync Gateway with the Prometheus platform without an external exporter for transforming the stats from JSON to Prometheus format.

Read more:
Documentation

Couchbase Lite

Inter-Device Sync With Peer-to-Peer Replication

In 2.8 we’re introducing an out-of-the-box solution for peer-to-peer sync that makes it extremely easy for developers to implement secure data sync in IP networks with just a few lines of code. The sync technology includes a number of features essential for business-critical, offline-first applications, such as built-in support for TLS encryption and authentication, enhanced data conflict resolution that supports automatic and custom conflict resolution, network resiliency, delta sync support, and more. This solution complements the existing peer-to-peer capability that allows developers to bring in their own custom communications framework or leverage third-party frameworks for non-IP based networks.

Learn more:
Blog: Peer-to-Peer Sync With Couchbase Lite
Documentation
Webinar with demonstration of capability
Peer-to-Peer Sync solutions page

API Enhancements

The Couchbase Lite API continues to evolve, making it simpler for developers to integrate their apps with the database. This release includes API enhancements that allow apps to track documents that are pending push. A typical use case is for an application to track if all pending changes have been synced and to provide a visual indicator to the app user on the status of the sync. The app user can then decide when it is safe to exit the app. In addition, the database delete and close APIs have been enhanced to take care of cleaning up open replicators, listeners, live queries, etc., which makes implementation of log-out workflows significantly easier.

Read more:
Documentation

Resources

Here are direct links to a few helpful resources. You can learn more on our What’s New page.

If you have questions or feedback, please leave a comment below or feel free to reach out to me via Twitter or email me

 

Author

Posted by Rajagopal, Senior Director, Product Management

Priya Rajagopal is a Senior Director of Product Management at Couchbase responsible for developer platforms for the cloud and the edge. She has been professionally developing software for over 20 years in several technical and product leadership positions, with 10+ years focused on mobile technologies. As a TISPAN IPTV standards delegate, she was a key contributor to the IPTV standards specifications. She has 22 patents in the areas of networking and platform security.

Leave a reply