Infinum Android Talks #04 - CouchBase Lite

358 views

Published on

CouchBase Lite is a native NoSQL database for Android (mobile) that enables JSON data and document storage, replication and conflict management. We will show you how we use it to get our data updated, distributed and in the format that suits us best.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
358
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Infinum Android Talks #04 - CouchBase Lite

  1. 1. Couchbase Lite Ana Baotić
  2. 2. NoSql Specifics ● Data not modeled in tabular relations ● Typical structures: graph, tree, key-value pairs ● Simpler design ● Horizontal scaling ● Used for big data and availability applications Drawbacks ● Consistency ● Lack of standardized interfaces and full ACID support ● Use of low level query languages
  3. 3. Database mechanisms Documents (JSON) are building blocks, handled one at a time ● Reading – Key-based lookup mechanism – Client provides the key(s range) ● Writing – Key-based update mechanism – Documents are updated (low latency) ● Push and pull replication ● Conflict management support
  4. 4. Document content
  5. 5. Adding CouchBase Lite
  6. 6. Adding CouchBase Lite
  7. 7. Creating a database
  8. 8. Create, update, delete
  9. 9. Replication ● Key feature that enables document syncing – Pull, remote to local – Push, local to remote – Sync, configuration consisting of pull and push ● Continuous replication – Open connection, acts upon detected change – Connectivity change aware! – cannot get a marker on the map by an id ● One shot replication – Active until changes are copied ● Persistent replications vs non-persistent ● Filters
  10. 10. Replication example
  11. 11. Demo app example ● Cloudant used for the data layer – NoSql database as a service – RESTful API – https://cloudant.com/product/cloudant-features/ ● GitHub repo – https://github.com/abaotic/CouchBaseLite-Demo
  12. 12. Links ● NoSql wiki – http://en.wikipedia.org/wiki/NoSQL ● Couchbase tutorial – http://docs.couchbase.com/couchbase-lite/cbl-android/cbl-android-1.0b2/# tutorial ● Cloudant server – https://cloudant.com/ ● CouchBase Lite Github repo – https://github.com/couchbase/couchbase-lite-android ● CouchBase Lite demo – https://github.com/abaotic/CouchBaseLite-Demo
  13. 13. Thank you!

×