Over a million developers have joined DZone.

Realm: A Memory-Efficient Mobile Database

· Java Zone

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

If you're a mobile developer looking for a database that won't crush devices more thoroughly than Play Services 5.0, SQLite isn't the only option anymore. Now there's Realm, currently available for iOS (and Android, soon). It runs in phones, tablets, wearables, and so on, and aims to improve performance by maintaining a small footprint.

According to the homepage, Realm gets some performance boost largely from efficient use of memory:

...a custom C++ core is used to provide memory-efficient access to your data by using Realm objects, which usually consume less RAM than native objects. The core also provides an optional persistence layer that can automatically save and retrieve your objects from disk.

In particular, Realm claims performance advantages over SQLite - I haven't seen any benchmarks yet, so it's hard to say, but an interesting possibility nonetheless. They also describe it as offering easy queries and persistence, thread-safety, and easy-to-understand Realm objects, among other things. Take a look at the intro video for more details:


Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}