Couchbase Lite is an ultra-lightweight, reliable, secure JSON database built for online/offline mobile application needs and is part of Couchbase's Mobile product.
As a lightweight, document-oriented NoSQL database engine, Couchbase Lite supports data synchronization and is suitable for embedding into mobile applications.
Lightweight means:
- Embedded – the database engine is a library linked into the app, not a separate server process
- Small code size – important for mobile apps because they’re often downloaded over cell networks
- Quick startup time – important because mobile devices have relatively slow CPUs
- Low memory usage – typical mobile data sets are relatively small, but some documents might have large multimedia attachments
- Good performance – exact figures depend on your data and application
Document-oriented means:
- Stores records in flexible JSON format instead of requiring predefined schemas or normalization
- Documents can have arbitrary-sized binary data, such as multimedia content
- Application data format can evolve over time without any need for explicit migrations
- Language native query builder API provides fast lookups without needing special query languages
Syncable means:
- Any two copies of a database can be brought into sync via an efficient, reliable, and proven replication algorithm
- Sync can be on demand or continuous
- Devices can sync with a subset of a large database on a remote server
- The sync engine supports intermittent and unreliable network connections
- Conflicts can be detected and resolved
- Revision trees allow for complex replication topologies – including server-to-server (for multiple data centers) and peer-to-peer – without data loss or false conflicts
Couchbase Lite provides native APIs for:
- Seamless iOS (Objective-C and Swift), Android (Java), and .NET development
- Frameworks such as Xamarin
- Embedded platforms
Resources:
- Couchbase Mobile - getting started tutorial
- Couchbase Lite documentation
- Couchbase Mobile 2.1 new features
- See Ryanair mobile app running on Couchbase Mobile