vs

MMKV vs ObjectBox

MMKV: Tencent's mmap-backed key-value store for mobile apps, built as a faster SharedPreferences/NSUserDefaults. ObjectBox: Fast on-device object database with built-in HNSW vector search and an optional commercial sync server.

key differences

  • MMKV is primarily a key-value database; ObjectBox is object.
  • Licensing: MMKV is open source (permissive) (BSD 3-Clause License); ObjectBox is proprietary (Free closed-source core; Apache-2.0 language bindings).
  • Transactions: MMKV offers none ACID; ObjectBox offers full.
  • Only MMKV has ttl / expiry, encryption at rest.
  • Only ObjectBox has transactions, secondary indexes, vector search, in-memory, offline sync.

choose mmkv for

  • +Replacing SharedPreferences, NSUserDefaults or AsyncStorage
  • +Feature flags and user settings
  • +Small session and token caches on device

best at · Embedded, Coordination, Cache

choose objectbox for

  • +Offline-first Android and Flutter apps
  • +On-device AI features needing local vector search
  • +IoT gateways and embedded Linux devices
  • +Replacing Realm after the Device Sync shutdown

best at · Embedded, Mobile/offline, IoT

overview
Primary model
Key-Value
Object
Also supports
–
Vector
Type
Embedded library
Embedded library
Status
Active
Active
Developer
Tencent
ObjectBox Ltd.
First release
2018
2017
Latest version
2.4.3 (Oct 16, 2026)
Java 5.4.2 (May 6, 2026)
License
Open source (permissive)BSD 3-Clause License
ProprietaryFree closed-source core; Apache-2.0 language bindings
Free tier
✓
✓
popularity
WhichDB Score
6.3
12.4
Rank
#364
#269
GitHub stars
18.8K
4.6K
Stack Overflow questions
–
416
scale & guarantees
Comfortable data size
Small (≤ 100 GB)
Small (≤ 100 GB)
Horizontal scaling
None
None
Multi-region
None
None
ACID
None
Full
Consistency
Strong
Strong
Schema
Schemaless
Strict
Architecture
Embedded
Embedded
deployment
Self-hosted
✓
✓
Vendor-managed cloud
—
—
Serverless
—
—
Embedded
✓
✓
Edge
—
✓
Clouds
–
–
capabilities
Transactions
—
✓
Joins
—
—
Secondary indexes
—
✓
Full-text search
—
—
Vector search
—
✓
Geospatial
—
—
JSON
—
—
Change data capture
—
—
Triggers
—
—
Stored procedures
—
—
Materialized views
—
—
TTL / expiry
✓
—
Pub/Sub
—
—
Columnar storage
—
—
In-memory
—
✓
Durable persistence
✓
✓
Compression
—
—
Encryption at rest
✓
—
Role-based access
—
—
Time travel
—
—
Branching
—
—
Online schema changes
—
—
Streaming ingest
—
—
Offline sync
—
✓
Runs in WebAssembly
—
—
interfaces
Query languages
Key-value API
ObjectBox Query Builder API
Client languages
C++, Java, Kotlin, Objective-C, Swift, Dart, Python, Go
Java, Kotlin, Dart, Swift, C, C++, Go, Python
Best for
Embedded, Coordination, Cache, Sessions
Embedded, Mobile/offline, IoT, Vector search

MMKV vs ObjectBox: FAQ

What is the difference between MMKV and ObjectBox?

MMKV: Tencent's mmap-backed key-value store for mobile apps, built as a faster SharedPreferences/NSUserDefaults. ObjectBox: Fast on-device object database with built-in HNSW vector search and an optional commercial sync server. MMKV is primarily a key-value database; ObjectBox is object. Licensing: MMKV is open source (permissive) (BSD 3-Clause License); ObjectBox is proprietary (Free closed-source core; Apache-2.0 language bindings). Transactions: MMKV offers none ACID; ObjectBox offers full.

When should I choose MMKV over ObjectBox?

Choose MMKV for replacing SharedPreferences, NSUserDefaults or AsyncStorage; feature flags and user settings; and small session and token caches on device. Choose ObjectBox for offline-first Android and Flutter apps; on-device AI features needing local vector search; and IoT gateways and embedded Linux devices.

Is MMKV or ObjectBox more popular?

ObjectBox ranks #269 on the WhichDB Score (12.4/100) and MMKV ranks #364 (6.3/100). Popularity is not fit: check the requirements that matter for your project.

Are MMKV and ObjectBox open source?

Yes. MMKV is open source. License: BSD 3-Clause License. No. ObjectBox is proprietary, closed-source software. License: Free closed-source core; Apache-2.0 language bindings.