Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What's new in Couchbase Mobile 2.0 – Connect Silicon Valley 2017

191 views

Published on

Speaker: Sachin Smotra, Director Product Management, Couchbase Mobile, IOT & Analytics

Customer engagement starts with your customers and where they live. In today’s world that means web, mobile, and IoT experiences. In order to build a rich, reliable, responsive customer experience, you need a data platform designed to address the requirements of modern, customer-centric web, mobile, and IoT applications.

Couchbase Mobile is the enterprise mobile and IoT data platform for data storage, access, sync, and security across the entire database stack. In this session, we’ll introduce the product which includes Couchbase Lite, our embedded database, Sync Gateway, our secure web gateway, and Couchbase Server, our NoSQL database server. We’ll also dive into our newest features in the 2.0 release, including N1QL and full-text search for mobile, our new simplified API, and much more.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

What's new in Couchbase Mobile 2.0 – Connect Silicon Valley 2017

  1. 1. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. WHAT’S NEW IN COUCHBASE MOBILE 2.0 Subtitle here if needed
  2. 2. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. AGENDA 01/ 02/ Couchbase Lite 2.0 Sync Gateway 1.5 03/ Q&A
  3. 3. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 1 COUCHBASE LITE 2.0
  4. 4. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 4 Couchbase Lite – Common Core CRUD Events Models Query Search Replication Security Native API Cocoa, Java, .NET CRUD Events Models Query Search Replication Security Core C/C++
  5. 5. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 5 Simplified API - CRUD Document document = new Document(); document .set (”name", "Joe Blow") .set ("age", 30) .set (”birthdate", new Date(...)) .set (”favorite", true) .set (”photo", new Blob("image/jpg”, bytes)); database.save(document); document = database.getDocument(”docid"); String name = document.getString(“name”); int age = document.getInt(“age”); Blob photo = document.getBlob(“photo”); document.getDictionary("address") .set("street", "123 Anywhere St.") .set ("city", "Somewhere") .set ("state", "CA") .set ("postalCode", 12345); database.save(document); database.delete(document); Create Read Update Delete
  6. 6. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 6 Create (1.x) Create (2.0) API Simplification – “create” | 1.x vs 2.0 Document document = new Document(); document .set(”name", "Joe Blow") .set ("age", 30) .set (”birthdate", new Date(...)) .set (”favorite", true) .set (”photo", new Blob("image/jpg”, bytes)); database.save(document); Document document = database.createDocument(); Map<String,Object> props= New HashMap<>(); props.put(“name”, “Joe Blow”); props.put(“age”, 30); props.put(“birthdate”, new Date()); props.put(“favorite”, true); document.putProperties(props); UnsavedRevision rev = document.createRevision(); rev.setAttachment(“photo”, “image/jpg”, new ByteArrayInputStream(bytes)); rev.save();
  7. 7. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 7 Update(1.x) Update (2.0) API Simplification – “update” | 1.x vs 2.0 document.getDictionary("address") .set ("street", "123 Anywhere St.") .set ("city", "Somewhere") .set ("state", "CA") .set ("postalCode", 12345); database.save(document); Map<String<Object> address = new HashMap<>(); address.put("street", "123 Anywhere St."); address.put("city", " Somewhere"); address.put("state", ”CA"); address.put("postalCode", 12345); Map<String, Object> props = new HashMap<>(document.getProperties()); props.put(“address”, address); document.putProperties(props);
  8. 8. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 8 Query SELECT * FROM accounts WHERE owner = 'John’ ORDER BY accountSize CBLQuery *query = [CBLQuery select: [CBLQuerySelect all] from: [[CBLQueryDatabase database: database] as: @"accounts"] where: [[[CBLQueryExpression property: @"type"] equalTo: @"account"] and: [[CBLQueryExpression property: @"owner"] equalTo: @"John"]] orderBy: [CBLQueryOrderBy expression: [CBLQueryExpression property: @"accountSize"]] ]; Query query = Query .select() .from(DataSource.database(database).as("accounts") .where(Expression.property("type").equalTo("account").and( Expression.property("owner").equalTo("John"))) .orderBy(Expression.property("accountSize")); JavaSQLObjective-C
  9. 9. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 9 Delta Synchronization Compression of a 2kb document from Amazon’s product catalog uncompressed vs. standard zlib compression vs. zdelta compression of a 50 byte change. Uncompressed Standard Compression Delta Compression 2 kb 38% 760 b 4% 72 b
  10. 10. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 10 ©2017 Couchbase Inc. 10 Automated Conflict Management
  11. 11. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 2 SYNC GATEWAY 2.0
  12. 12. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 12 Sync Gateway Features • Delta Synchronization • Conflict Free Mode • Serviceability • View Replacement • Diagnostics • Remote Logging • Manageability • Node List • SG Configuration • Stats • Declarative Security • Info/Log Collection • Customer Commitments
  13. 13. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 13 Sync Gateway Features • Manageability • Node List • SG Configuration • Stats • Declarative Security • Info/Log Collection • Customer Commitments • Multiple cookie support
  14. 14. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. 3 Q&A
  15. 15. Confidential and Proprietary. Do not distribute without Couchbase consent. © Couchbase 2017. All rights reserved. THANK YOU

×