This presentation was given by David Maier @magicable @munichnosql may 2014. The code can be found https://github.com/dmaier-couchbase/cbl-android-tasklist
4. Fastest growing NoSQL database company
4x growth in 2013;Widely recognized as industry leader
Worldwide operations with 150 employees
75 in engineering; more than doubling every year
Support offices in US (multiple), UK, India, Japan, China (soon)
Leader in scalability high performance
Easily reliable scale your app; Get consistent low latency high throughput
Only NoSQL vendor with mobile database + sync
Recognized as most innovative NoSQL vendor
Provide KV document database for web mobile apps
Flexible, schemaless JSON data model; 100% open source
Mission critical deployments at large enterprises
internet companies
400 customers; 10,000 paid production nodes deployed; worldwide customer base
Couchbase, Inc. Confidential
5. Market
Adop9on
400 customers; 10,000 production nodes
deployed
Internet
Companies
Enterprises
6. Overview
Couchbase offers a full range of
Data Management solutions
High
Availability
Cache
Key
Value
Docum
ent
Mobile
device
SSN: 400 658 9993
Pass: ******
Pass: ******
7. Couchbase
Server
Is
The
Complete
Solu9on
One click scalability and no
app changes.
Sub millisecond latency with high
throughput for reads and writes.
Maintenance, upgrades and
cluster resizing all online
without application downtime
JSON document model with no
fixed schema.
✔
✔
✔
✔
Consistent High
Performance
Flexible
Data Model
Easy
Scalability
Always On
24x7x365
9. The
Next
Wave
of
Mobile
Apps
…will
be
ALWAYS
available
Data
Data
10. JSON
Anywhere
Couchbase
Server
• JSON
on
the
wire
No
need
for
data
transforma;on
• JSON
in
the
cloud
Flexible
data
model
High
performance
Easy
scalability
ServerSync GatewayLite
JS N
JS N
JS N
• JSON
on
the
device
Developers
increasingly
prefer
NoSQL
database
11. Architecture
SERVER
3
SERVER
1
SERVER
2
Couchbase
Server
Channel
Sync
Gateway
Channel
Channel
Sync
Gateway
Channel
Couchbase
Lite
for
iOS
and
Android
On Premise
In the cloud
12. Couchbase
Lite
The
only
NoSQL
Database
for
Mobile
Devices
• Features
Ultra-‐lightweight,
secure
JSON
database
Na;ve
support
for
iOS,
Android
and
REST/HTML5
Full
document,
index
and
querying
and
sync
capabili;es
Powerful
conflict
resolu;on
Lite
Couchbase
Lite
Android
Couchbase
Lite
iOS
13. Couchbase
Lite
Full
Feature
List
Features
Benefits
Na9ve
APIs
Manage
your
mobile
database
using
APIs
op;mized
specifically
for
iOS
and
Android
REST
APIs
REST
APIs
provide
an
alterna;ve
access
method
based
on
your
development
needs
JSON
support
Use
a
flexible
data
model
designed
for
mobile
object-‐oriented
apps.
Adapt
to
your
applica;on
needs
with
immediacy
and
li[le
impact
Easy
sync
with
Couchbase
Sync
Gateway
Get
sync-‐ready
in
less
than
a
few
lines
of
code.
Focus
on
applica;on
development,
not
syncing
Peer
to
peer
support
via
REST
APIs
Communicate
with
nearby
devices,
even
offline,
with
our
REST
API-‐enabled
P2P
support
Data
rou9ng
via
channels
Get
users
only
the
data
they
need
for
a
focused,
relevant
app
experience
Changes
Feed
Provides
developers
visibility
and
no;fica;on
into
data
changes
Indexing
and
querying
for
JSON
Use
powerful
secondary
indexes
to
query
your
data
on
the
device
Authen9ca9on
plug-‐ins
Use
popular
exis;ng
third-‐party
authen;ca;on
services
like
Facebook
and
Mozilla
Persona
instead
of
wri;ng
your
own
ATachment
support
on
device
and
in
the
cloud
Manage
binary
data,
like
photos
and
large
files,
separately
from
your
JSON
documents
for
op;onal,
speedier
sync
14. What
you
get
Lite
Couchbase
Lite
Android
Couchbase
Lite
iOS
Enable
new
class
of
rich
data
intensive
local
applica;ons
Rapid
development
using
na;ve
JSON
data
Highly
responsive
interac;ve
applica;ons
Always
available
-‐
online
or
offline
15. Couchbase
Sync
Gateway
Easy,
Reliable
Data
Sync
to
the
Cloud
• Features
• Dynamic
sync
capabili;es
via
Sync
Func;on
APIs
• Easy
Administra;on
• Seamless
scaleout
• Benefits
10x
reduc;on
in
development
;me
Scales
to
support
millions
of
users
Sync Gateway
16. Collaborate
using
Channels
• For
each
document,
you
specify
a
set
of
channels
it
belongs
to
E.G
doc.channels
:
[
“food”,
“sports”
]
• For
each
user
or
device,
you
control
which
channels
they
can
access
• Replicate
only
a
subset
of
documents
down
to
the
device
User-‐defined
filter
func;ons
Simply
lets
you
know
whether
a
document
should
be
replicated
• And
you
can
authen9cate
users
23. What
you
get
Easy
Sync
• Effortlessly
sync
local
data
with
a
database
in
the
cloud
for
updates,
replica;on
or
collabora;ve
sharing.
• In
addi;on,
scale
your
data
;er
horizontally
and
reliably
as
your
data
and
sync
needs
grow.
JSON
JSON
JSON
JSONJSON
JSON
Anywhere
• Flexible
JSON
on
device
lets
you
work
with
local
data
modify
your
data
structure
on
the
fly
without
impac;ng
your
back-‐end.
• Your
users
can
count
on
having
an
amazing
app
experience
with
a
fast
and
unbreakable
local
database
24. Integra9ons
Couchbase
Lite
Plug-‐in
for
PhoneGap
• Support
for
HTML5
developers
• Develop
once
in
JavaScript
and
deploy
on
iOS
Android
• Available
on
GitHub,
Cordova
Plugin
Registry,
and
coming
soon
to
build.phonegap.com
h[ps://github.com/couchbaselabs/Couchbase-‐Lite-‐PhoneGap-‐Plugin
h[p://plugins.cordova.io/#/com.couchbase.lite.phonegap
25. Integra9ons
Couchbase
Lite
for
Xamarin
• Partnered
to
support
C#
community
• Available
on
Developer
Center
• Includes
sample
applica;on
to
help
developers
get
started
today
h[p://components.xamarin.com/view/couchbase-‐lite/
27. Addi9onal
Resources
Webinar
Series:
www.couchbase.com/webinars
Developing
with
Couchbase
Lite
iOS
Developing
with
Couchbase
Lite
Android
Couchbase
Lite
Under
the
Hood
Community
Forum
hTps://groups.google.com/forum/#!forum/mobile-‐couchbase
29. Demo
App
Overview
• Task
Model
User
Id
Crea;on
Time
Title
• Task
Service
Add
Task
Get
Task
Get
Tasklist
• Replica9on
Bidirec;onal
Setup
Con;nuous
Change
Listener
for
Monitoring
• Handle
Data
Changes
Database
Change
Listener
Valida;on
• Layout
EditText
for
the
Task
Title
GridView
for
the
Tasklist
Bu[on
to
add
a
Task