couchbase_tlv_2014_intro to mobile
TRANSCRIPT
Couchbase for Mobile
Ilam Siva – Senior Product Manager
The Impact of Mobile IT’S EVERYWHERE
The Power of Mobile -‐ Learning Then Now
Classrooms, Whiteboards, One-‐Size-‐Fits-‐All Learning
Mul?-‐Media, Self-‐Paced, Adap?ve, Interac?ve, Anywhere Any?me
The Power of Mobile -‐ Point of Sale Then Now
Big + odd looking machines, receipt printers, cash drawers
Simple, elegant tablet + square reader, email receipts, touch signing
The Power of Mobile -‐ Expenses Then Now
Paper receipts, manual spreadsheet entry, paper signature rou?ng
Email/photo receipt, e-‐rou?ng, e-‐signature
The Next Wave of Mobile Apps …will be different
You can do… More with the device
More offline
More collaboraLon
More with data
Data
Data
Couchbase Mobile = The Next Big Thing
Mobile Data Cloud Next Big Thing
Couchbase Mobile
The only NoSQL database for mobile
Mobile – The Next GeneraLon of Apps
Couchbase Server
Single User Interac?on -‐ Voice, Text -‐ Personal Apps
Mul?-‐User Interac?ons -‐ Group and Social (Facebook, Games, Video)
Local Sensor Applica?ons e.g., Medical
Interac?ng with Enterprises
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 GatewayLiteJS N
JS N
JS N
• JSON on the device Developers increasingly prefer NoSQL database
The Complete Mobile SoluLon
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
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
Couchbase Lite Full Feature List
Features Benefits
NaLve 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 rouLng 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
AuthenLcaLon plug-‐ins Use popular exis?ng third-‐party authen?ca?on services like Facebook and Mozilla Persona instead of wri?ng your own
AZachment 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
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
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
Collaborate using Channels
• For each document, you specify a set of channels it belongs to
• 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 authenLcate users
Doc 1 Channel A
Doc 2 Channel A
Channel B
Channel A & B
Channel B
Doc 1 Doc 2
Doc 2
Sync Gateway
Dat
a D
ata
Sync Gateway
Dat
a
Data
Dat
a
Sync Gateway
Data
Dat
a D
ata
Sync Gateway
Dat
a Da
ta
Sync Gateway
Data
Data
Dat
a D
ata
Sync Gateway
Data
Dat
a D
ata
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.
JSONJSONJSON
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
Customers in Beta We are in BETA and we already have customers
Confirms a need for NoSQL on mobile
Infinite Campus Classroom management plaeorm
In-‐classroom management Course material distribu?on
Picsolve Theme park image-‐capturing system
Ge^ng Up And Running
• Download Couchbase Lite • Download ToDo Lite sample code
• Copy framework into sample app folder
• Build & Run
IntegraLons 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
IntegraLons 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/
IntegraLons Couchbase Lite Titanium
• Build rich na?ve apps for iOS & Android using JavaScript SDK
• Now available on the Appcelerator Marketplace
h]ps://github.com/couchbaselabs/couchbase-‐lite-‐?tanium/
h]ps://marketplace.appcelerator.com/apps/6706?1396013098
Get Started
mobile.couchbase.com
Sample App
hZps://github.com/couchbaselabs/TodoLite-‐iOS
AddiLonal Resources
Webinar Series: www.couchbase.com/webinars Developing with Couchbase Lite iOS
Developing with Couchbase Lite Android Couchbase Lite Under the Hood
Community Forum
hZps://groups.google.com/forum/#!forum/mobile-‐couchbase
1. Download Couchbase Lite
www.couchbase.com/download
2. Download ToDo Lite for iOS github.com/couchbaselabs/ToDoLite-‐iOS
3. Plug In The Framework
• option
Thank you!
mobile.couchbase.com