Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Mobile-Web synchronization using CouchDB

No description
by

Ania Leśniak

on 17 June 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Mobile-Web synchronization using CouchDB

Synchronization
Anna Leśniak
@lesniakania
couchblog
iCouchBlog
very
difficult
to implement properly
requires special
metadata
(eg. revision tree)
has to handle data
conflicts
Synchronization
`Some mobile developers have waded into ad-hoc sync implementations and found themselves over their heads, with delayed or canceled products.
It's better to use a solution that already works
`
CouchDB
Why CouchbaseLite?
Database engine suitable for embedding into mobile apps which is:

lightweight

document-oriented (NoSQL)

syncable
Lightweight
small
code size
quick
startup
low
memory usage
good
enough performance
sqlite
as storage engine
Syncable
able to sync via an efficient and reliable REST-based protocol pioneered by
Apache CouchDB
sync can be
on-demand
or
continuous
conflicts
can be detected and resolved
Replication
conceptually simple:
`Take everything that's changed in database A and copy it over to database B`
push
vs
pull
continuous
vs
one-shot
persistent
vs
non-persistent
filters
gem install '
couchrest_model
'

Filters configuration
Filters configuration
Resolving conflicts
Resolving conflicts
DEMO
Jens Alfke
Defining Models
Post.m
Defining Views
Querying
Live Query and Automatic Table Source
Implementation
of
UITableViewDataSource
that observes a
CBLLiveQuery
put one in the same
xib
as the table view
set its
tableView property
to the UITableView (this is an IBOutlet so you can wire it up)
set its
query property
to a CBLLiveQuery
set its
labelProperty
(text that will be displayed) or use
CBLUITableDelegate
protocol
Usage
Replication
Filters
Post.h
Full transcript