Realm (database)

Open-source object database management system From Wikipedia, the free encyclopedia

Realm is an open source object database management system, initially for mobile operating systems (Android/iOS)[1] but also available for platforms such as Xamarin,[2] React Native,[3] and others,[4][5] including desktop applications (Windows[6]). It is licensed under the Apache License.

Quick Facts Original author(s), Developer(s) ...
Realm
Original author(s)Alexander Stigsen and Bjarne Christiansen
Developer(s)MongoDB Inc.
Initial releaseJanuary 2017; 8 years ago (2017-01)
Repositorygithub.com/realm
Written inC++
TypeObject database
LicenseApache License 2.0
Websiterealm.io
Close

In September 2016, the Realm Mobile Platform was announced, followed by the first stable release in January 2017. It allows two-way synchronization between the Realm Object Server[7][8] and the client-side databases that belong to the given logged-in user. Both a developer and a commercial edition[9] was released, along with a business license[10] for integrating with other database management systems such as PostgreSQL.[11][12]

In Spring 2019, MongoDB acquired Realm for 39 million USD.[13]

In September 2023, the Realm database was rebranded to be called "Atlas Device SDKs". However, in the following year, September 2024, MongoDB announced the deprecation of the Atlas Device Sync service, synchronizing Realm with MongoDB. While the proprietary sync service wil be discontinued, the database will still be available as open-source, but will no longer be maintained by the MongoDB team.[14] In October 2024, MongoDB announced several options that will offer a sync service for MongoDB instead, e.g. Ditto, ObjectBox and Powersync.

History

Realm's development began in the end of 2010 by Alexander Stigsen, along with Bjarne Christiansen,[15] under the name TightDB. The company started in 2011 at Y Combinator.[16] It was promoted as NoSQL with configurable durability, and the ability to share the same groups of data across multiple processes, but also even multiple devices and clusters.

TightDB renamed its product to Realm in September 2014, and released it for public testing. In March 2015, funding of about $20 million was disclosed.[16][17]

Realm was mentioned in some trade press,[18][19] including by other firms such as IBM.[20]

Realm announced version 1.0 in June 2016, and released a platform for real-time two-way synchronization (beta in 2016 September, release in 2017 January),[21] and provided a Node.js SDK for server-side applications.[22]

In May 2017, UWP support was announced.

In September 2024, MongoDB announced the deprecation of their sync service that was tied to Realm DB and their discontinuation of Realm DB support.

Features

Summarize
Perspective

The most notable features of Realm are the following:

  • As Realm is an object store, its typed language-specific APIs map typed objects directly into the Realm file – therefore classes are used as the schema definition.
  • Relationships between objects are allowed via "links". Each "link" creates a "backlink" as an inverse relationship to whichever objects are linking to the current object.
  • The query results returned by Realm are thread-local views to the current "database version" (as Realm handles concurrency with MVCC architecture), and these views "automatically update" when a transaction is committed from any thread, as long as Realm is able to update its instance version (which is possible on threads that are able to receive change notifications). When this happens, Realm calls change listeners that are added to its query results (if they've changed).
  • Each thread-local view returns proxy objects that only read from/write to the database when an accessor method is called, meaning all database access is lazy-loaded. Writes are allowed only while in a write transaction.
  • As each query result and each proxy object is a view to the underlying data, any change made to the database is reflected in all objects that point to the same data. Realm generally calls this behavior "zero-copy architecture" (along with the previously mentioned lazy-loaded data access).

Programming language support

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.