20
Couchbase Mobile Use Cases Anish K. Mathew Software Architect, RedBlackTree Technologies Pvt. Ltd.

Couchbase Chennai Meetup 2 - Couchbase - Mobile

Embed Size (px)

Citation preview

Couchbase & BigData-Analytics

Couchbase Mobile Use CasesAnish K. MathewSoftware Architect, RedBlackTree Technologies Pvt. Ltd.

Mobile Applications2ObjectiveDelight customers with great mobile experiences by delivering applications that are always on and always work, with or without a network connectionBusiness requirementsAccess data with or without a network connection Fast time to market - rapidly develop and enhance appsSupport multiple device types and platforms The Couchbase SolutionCouchbase Lite embedded JSON database ensures data is always accessible, with or without a network connectionSync Gateway pre-built, secure two-way data synchronization simplifies development, minimizes coding required Push-button scalability fast, easy and inexpensive to scale to any sizeTechnical requirementsStore and access data on the deviceSync data between device and cloud serverScalability

2014 Couchbase Inc.

Couchbase Mobile Solution

Couchbase LiteSync GatewayCouchbase ServerFull featured embedded NoSQL databaseSecure data synchronization over the webOur flagship, highly scalable NoSQL database in the cloud

2014 Couchbase Inc.

This is the Couchbase Mobile stack.

The Couchbase Mobile product consists of 3 components:

Couchbase Lite: This is a full featured embedded version of our database that runs locally on the device. Offline support, multi-master replication, and conflict resolution are simply a feature of the database.Sync Gateway:This is an internet facing cloud component that manages secure synchronization over the internet.Couchbase Server:Our flagship, highly scalable, blazing fast NoSQL database in the cloud.

Couchbase Lite has all of the features of our server database plus some additional features around revision handling and conflict resolution.

Its super light. Weighing in at just 500kb on most platforms.

Were very focused on cross platform portability. And weve built from the ground up native for each platform.

We currently have support for a bunch of different platforms.We have an Objective-C version for all the Apple technologies. This includes iOS and OS10

Our Java version supports any platform that can run a J2SE compliant JVM. So:AndroidLinuxWindowsAnd a ton more.And our C# version supports all the .NET runtimes. Thats:MicrosoftMonoUnityXamarin

Its secure.

Your data-at-rest is secured using the devices local file system encryption.

And our next release includes data level encryption on top of that.If you provide us w/ a set of encryption keys well encrypt and decrypt data as you read and write it to and from the database.And data is secured during transport using TLS.

It has an awesome flexible JSON data modeljust like the server. So thats one modeling language throughout the stack w/ no transforms.

3

GE4

GE has made a massive investment in building software to manage the data explosion that is created by the increasing intelligence of industrial machines in a Cloud Base Platform for the Industrial Internet called Predix

2014 Couchbase Inc.

Also an IoT use case4

Mobile Applications on Predix @ GE5

Field Service ApplicationDamage Assessment Application

2014 Couchbase Inc.

Also an IoT use case5

Field Service Application6

Sensors on machines, super structures, pipelines where connectivity is not available.Field staff goes with their iPads or tablets to inspect them.Data gets stored on the devices which later syncs to the server when they come back into the network.

2014 Couchbase Inc.

Also an IoT use case6

Field Service Application @ GE7

CardContextOffline

Built around a message bus STOMP ClientRabbit MQ

2014 Couchbase Inc.

Also an IoT use case7

Field Service Application @ GE8Existing systemApplications built with Cards.Developed basic offline capabilityMessage bus using Rabbit MQJSON Object ModelOffline capabilities built inModular backend domain integration servicesiPadLessons LearnedConflicts resolution has to be builtFlexible data model is requiredCache needs to improveBig portion of engineering resources required to maintain offline capabilities

2014 Couchbase Inc.

Also an IoT use case8

Field Service Application @ GE9

CardContextCouchbase-LiteCouchbaseServer

IntegrationDomainData

CouchbaseMobile Sync

2014 Couchbase Inc.

Also an IoT use case9

Field Service Application @ GEObjectives & ChallengesThe Predix platform required full offline capabilities to ensure applications always work, regardless of network availabilityIndustrial sites have very limited network connectivityPredix apps did not have offline access to their data Building offline support internally required a significant portion of engineering resources10

GE Predix software platform for the Industrial InternetData availability is mission criticalOffline capabilities are crucial

SolutionCouchbase Mobile gives Predix the full offline capabilities needed to power mission-critical machines and applicationsIntegrated offline capabilities with Couchbase Mobile in 90 daysEliminates network dependencyEngineering team no longer required to develop and maintain their own offline solutionThe Couchbase AdvantageGE produced full offline support in 90 days and saved close to 1 year in development time

2014 Couchbase Inc.

Also an IoT use case10

Ryanair11

Europes No 1 traffic 100m customers/ yearEuropes No 1 coverage 73 bases1600 daily flights190 destinations in 30 countriesFleet of 330 Boeing 737-800 (380 new)

2014 Couchbase Inc.

Mobile Travel App @ Ryanair12Existing systemRyanair Mobile App with 3+ million usersSemi-static data: gate information, routes, seating mapsCross-platform (iOS, Android)Mobile bookings took over 5 minutes to complete 1MB/ booking of semi-static data dayREST services backed by Oracle and Coherence architecture, request/response processing caused long booking timesHeavy roaming charges when abroad, travellers could not use the app

2014 Couchbase Inc.

Mobile Travel App @ Ryanair13Lessons Learned

Conflicts resolution has to be builtFlexible data model is requiredCache needs to improveBig portion of engineering resources required to maintain offline capabilities

2014 Couchbase Inc.

Also an IoT use case13

Requirements for Mobile App Reduce booking time Reduce data traffic for mobile app Deliver different data to different versions of the app Spend less time/ manpower to build this feature Enable app to handle different schemas of data without having to upgrade the app

14Mobile Travel App @ Ryanair

2014 Couchbase Inc.

How Couchbase Fits in

2014 Couchbase Inc.

Performance ImprovementSolution

Semi-static assets are packaged within the app and sync updates as they changeBookings went from 5 min to 2 minData traffic reduced from 80GB/day to 10GB/dayAble to route specific data to versions of the app using channels

2014 Couchbase Inc.

Live comparison

2014 Couchbase Inc.

Mobile Travel App @ RyanairObjectives & ChallengesSolve user experience issues associated with time to complete a bookingMobile bookings took over 5 minutes to complete Each booking required 1MB of semi-static data to drive the process, resulting in 80GB of data being delivered to mobile devices dailyDue to traditional REST services backed by Oracle and Coherence architecture, request/response processing significantly contributed to the long booking times18

Ryanair Mobile App with 3+ million usersSemi-static data: gate information, routes, seating mapsCross-platform (iOS, Android)

SolutionCouchbase Mobile provides the performance needed to support an amazing user experience, without requiring re-architecture of the appSemi-static assets are packaged within the app and sync updates as they changeBookings went from 5 min to 2 min and data transfer from 80GB/day to 10GB/dayThe Couchbase AdvantageIntegrate Couchbase Mobile to manage your semi-static data without a significant re-architecture

2014 Couchbase Inc.

Mobile @ Disney19Objectives & ChallengesProvide a robust and customized experience for Disney Park guestsNetwork dependency leads to slow and inconsistent app performanceGuests dont have Internet connectivity at all times, so app needs to work offlineRide wait times and customizable maps arent always accurateGetting Fast Pass to work is cumbersome and not always dependable

My Disney Experience Mobile AppOnline/Offline capabilitiesCross-platform (iOS, Android)

The Couchbase AdvantageNetwork independence and local data storage enables a consistent and fast user experience

SolutionCouchbase Mobile provides local data storage with complete read/write capabilities and syncEnables data access online or offline, eliminating network dependency Stores guest data on device and syncs with backend database when network is available, giving guests accurate park data

2014 Couchbase Inc.

KEY POINT: COUCHBASE PROVIDES THE DATABASE SOLUTION FOR VERIZONS IOT SERVICE ENABLING ENTERPRISES TO MONITOR AND MANAGE ANY DEVICE ON THE CUSTOMERS NETWORK.

Verizon is a great example of an Internet of Things use case. Theyre using Couchbase to support a new service that allows their enterprise customers to monitor and manage all types of devices running on the customers corporate network. The service gives enterprise customers insights that can help optimize device and network usage.

For this use case, Verizon needed to address requirements that a relational database like Oracle could not easily meet:Collect and store data in real time from 10Ks-100Ks of devices on the customers networkAnalyze data for usage statistics and patternsProvide near real-time insights and reports about device usage

[CLICK TO BUILD]

They chose Couchbase as the solution, both to capture and store the data as well as serve the reports, because it provided the capabilities they needed:Ingests data at scale and at high speed, from any kind of connected device Stream-based indexing that leverages memory to enable fast views and reports And it provides a JSON data model that easily handles any data structure and new data types

Net takeaway: Verizon chose Couchbase because it provided massive speed and scalability thats also easy to manage.

19

20Thank You

2014 Couchbase Inc.

KEY POINT: COUCHBASE PROVIDES THE DATABASE SOLUTION FOR VERIZONS IOT SERVICE ENABLING ENTERPRISES TO MONITOR AND MANAGE ANY DEVICE ON THE CUSTOMERS NETWORK.

Verizon is a great example of an Internet of Things use case. Theyre using Couchbase to support a new service that allows their enterprise customers to monitor and manage all types of devices running on the customers corporate network. The service gives enterprise customers insights that can help optimize device and network usage.

For this use case, Verizon needed to address requirements that a relational database like Oracle could not easily meet:Collect and store data in real time from 10Ks-100Ks of devices on the customers networkAnalyze data for usage statistics and patternsProvide near real-time insights and reports about device usage

[CLICK TO BUILD]

They chose Couchbase as the solution, both to capture and store the data as well as serve the reports, because it provided the capabilities they needed:Ingests data at scale and at high speed, from any kind of connected device Stream-based indexing that leverages memory to enable fast views and reports And it provides a JSON data model that easily handles any data structure and new data types

Net takeaway: Verizon chose Couchbase because it provided massive speed and scalability thats also easy to manage.

20