코우치베이스 라이트

Announcing Couchbase Mobile 2.0 Developer Preview

Couchbase Mobile 2.0 is a groundbreaking new release for Couchbase Mobile. We’ve reimagined the developer experience with a cross-platform common core, new simplified API, and automated conflict resolution that can be customized. In this release, we are bringing N1QL queries and full-text search capabilities to mobile. Read on to learn all about the most advanced NoSQL mobile database on the planet!

코우치베이스 라이트

We have rewritten Couchbase Lite in the 2.0 version. The database core engine, internally referred to as “Couchbase Lite core,” has been implemented in C/C++. With a common core, the size of the codebase has been significantly reduced resulting in better manageability. It also allows for easy porting to low fidelity devices that enable new IoT use cases and opens new markets for Couchbase mobile developers.

There are language-specific bindings on top of the common core for iOS, .NET, and Java. During development, we’ve seen a 6x improvement in performance between 1.x and 2.0.

New simplified API

With built-in thread safety, mutable properties, typed accessors and blobs for accessing attachments, you will find the reimagined API easy to learn. We’ve gone through multiple iterations of the API as we engaged with our 개발자 커뮤니티 early on. Your feedback has been invaluable in shaping the current revision of the APIs and we look forward to your continued support.

Fluent API for N1QL queries</b

Database queries have changed significantly in this release. Couchbase Lite 2.0 uses semantics based on the N1QL query language defined by Couchbase. The query API has two styles, builder and fluent, and the implementation chosen would depend on the development platform.

The API allows you to access multiple Couchbase Lite databases with cross-database joins. This API will be familiar if you’ve used Core Data, or other query APIs based on SQL (like jOOQ).

Full-text search

In this release, users can perform full-text searches on the JSON documents stored in Couchbase Lite. You can now bring to your mobile applications what Google, Yahoo, and Bing do with HTML on the web. The API for using full-text search is not very different from the query API – users can search for text, text fragments, and text connected by binary operators, and Couchbase Lite finds the set of JSON documents that best match those terms.

Replication

Couchbase Mobile 2.0 uses a new replication protocol, based on WebSockets. This protocol has been designed to be fast, efficient, easier to implement, and symmetrical between client/server. Even though the replication protocol has changed, Couchbase Lite 1.x clients will be able to work with Couchbase Mobile 2.0 deployments since Couchbase Sync Gateway continues to support both clients.

However, the new replication protocol is incompatible with version 1.x, and with CouchDB-based databases including PouchDB and Cloudant.

But the new replicator is faster than the old one – we’ve seen up to twice the speed on iOS devices, and even greater improvement on Android.

Automated conflict management

We’ve taken a completely different approach to conflict management. An application is no longer required to handle conflicts out of band and keep track of various conflicting revisions. Couchbase Lite 2.0 will detect a conflict while saving a document or during replication and invoke an app-defined conflict resolver. The conflict resolution is designed for flexibility that will allow developers to tailor it for their specific needs.

To get started  

이 기사 공유하기

작가

사친 스모트라(Sachin Smotra)의 경력은 15년이 넘으며 자바 엔터프라이즈 소프트웨어, 모바일 게임 및 웹 컨퍼런스를 위한 DRM 솔루션을 포함한 다양한 분야에서 소프트웨어 제품을 구축해 왔습니다. 카우치베이스(Couchbase)의 제품 관리 이사인 그는 고객, 파트너, 개발자 및 애널리스트에게 제품 전략과 비전을 전파하는 것을 포함하여 카우치베이스 모바일, IOT 및 분석 제품군을 담당하는 실무형 제품 리더입니다. 카우치베이스에 합류하기 전, 사친은 시스코 웹엑스(Cisco WebEx)에서 제품 관리 시니어 매니저로 재직하며 고려, 구매, 사용, 갱신에 이르기 라이프사이클 전반에 걸쳐 엔드투엔드 고객 경험을 혁신하는 제품 팀을 이끌었습니다. 시스코 이전에는 엔지니어링, 아키텍처, 제품 관리 및 제휴 등 다양한 스타트업에서 여러 역할을 수행했습니다.

2개의 응답

  1. denisw 아바타
    denisw

    Congratulations on the new release!

    I’m wondering about the replication protocol changes, though. Do they mean that I won’t ve able to use PouchDB with CouchBase Sync Gateway at all? Or is it just the replication that won’t work? Said differently, will the core CouchDB API (GET /db/:id, PUT /db/:id etc.) still be supported by Sync Gateway 2.0?

  2. Sachin Smotra 아바타
    Sachin Smotra

    @denisw – thanks!

    The existing Sync Gateway REST endpoint that is compatible with the CouchDB API will continue to be supported in Sync Gateway 2.0. All existing applications can continue to use the current REST API to replicate to Sync Gateway 2.0.

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.