Software:Realm (database)

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

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.

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]

History

Realm's development began in the end of 2010 by Alexander Stigsen, along with Bjarne Christiansen,[14] under the name TightDB. The company started in 2011 at Y Combinator.[15] 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.[15][16]

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

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),[20] and provided a Node.js SDK for server-side applications.[21]

In May 2017, UWP support was announced.

Features

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

  1. "Realm: Object Centric Present Day Database for Mobile Applications". https://news.realm.io/news/realm-object-centric-present-day-database-mobile-applications/. 
  2. "Realm mobile database platform now has support for Microsoft's Xamarin" (in en). Gooroo. https://gooroo.io/GoorooTHINK/Article/16722/Realm-mobile-database-platform-now-has-support-for-Microsofts-Xamarin/22117. 
  3. "Realm: Introducing Realm React Native". https://news.realm.io/news/introducing-realm-react-native/. 
  4. "Realm: Microsoft Xamarin 1.0, Azure, Windows Desktop". https://news.realm.io/news/realm-microsoft-xamarin-1-0-azure-windows-desktop/. 
  5. "Realm Mobile Platform Supports Xamarin, Microsoft Azure – ADTmag" (in en). https://adtmag.com/articles/2017/02/14/realm-microsoft.aspx. 
  6. "Using Realm Mobile Database in a converted desktop app with the Desktop Bridge" (in en-US). App Consult Team. https://blogs.msdn.microsoft.com/appconsult/2017/02/28/using-realm-mobile-database-in-a-converted-desktop-app-with-the-desktop-bridge/. 
  7. Kepes, Ben. "Realm broadens its mobile database offering with Object Server" (in en). Network World. http://www.networkworld.com/article/3120398/mobile-apps/realm-broadens-its-mobile-database-offering-with-object-server.html. 
  8. "Realm broadens its mobile database offering with Object Server | The Diversity Blog – SaaS, Cloud & Business Strategy" (in en-US). https://www.diversity.net.nz/realm-broadens-its-mobile-database-offering-with-object-server/2016/09/27/. 
  9. "Realm launches commercial edition of its mobile database – SiliconANGLE" (in en-US). SiliconANGLE. 2017-01-19. http://siliconangle.com/blog/2017/01/19/1bn-installs-realm-launches-commercial-edition-mobile-database/. 
  10. "Realm Open Sources Mobile Database, Grows It into Enterprise Platform – ADTmag" (in en). https://adtmag.com/articles/2016/09/27/realm-mobile-platform.aspx. 
  11. "Realm Makes PostgreSQL Real-Time with New Connector" (in en-US). Database Trends and Applications. 2017-03-21. http://www.dbta.com/Editorial/News-Flashes/Realm-Makes-PostgreSQL-Real-Time-with-New-Connector-117066.aspx. 
  12. "Realm's Mobile Development Platform Links to PostgreSQL to Tie into Enterprise Data – The New Stack" (in en-US). The New Stack. 2017-03-21. https://thenewstack.io/realms-mobile-development-platform-links-postgresql-tie-enterprise-data/. 
  13. Miller, Ron. "MongoDB to acquire open-source mobile database Realm for $39 million" (in en-US). https://techcrunch.com/2019/04/24/mongodb-to-acquire-open-source-mobile-database-realm-startup-that-raised-40m/. 
  14. "A startup launched 9 months ago by these former Nokia engineers is going absolutely bonkers" (in en). Business Insider. http://www.businessinsider.com/realm-started-by-former-nokia-engineers-is-going-bonkers-2015-3. 
  15. 15.0 15.1 Ron Miller (March 24, 2015). "Realm Can Expand Its Reach With $20M Investment". Tech Crunch. https://techcrunch.com/2015/03/24/realm-can-expand-its-reach-with-20m-investment/. 
  16. "Form D: Notice of Exempt Offering of Securities". March 30, 2015. https://www.sec.gov/Archives/edgar/data/1582311/000158231115000001/xslFormDX01/primary_doc.xml. 
  17. Krill, Paul. "Realm revives object database for mobile dev" (in en). InfoWorld. http://www.infoworld.com/article/3159174/mobile-development/realm-revives-object-database-for-mobile-dev.html. 
  18. Thomas Claburn (September 29, 2016). "Realm – a database you may not have heard of but app devs have – touts cloudy platform". The Register. https://www.theregister.co.uk/2016/09/29/realm_floats_realtime_database/. 
  19. "Visual Recognition Mobile App with Watson, Realm, and Swift – IBM OpenTech" (in en-US). IBM OpenTech. 2016-12-12. https://developer.ibm.com/opentech/2016/12/12/visual-recognition-mobile-app-with-watson-realm-and-swift/. 
  20. "Realm: Introducing the Realm Mobile Platform". https://news.realm.io/news/alexander-stigsen-introducing-the-realm-mobile-platform/. 
  21. "Realm Releases Object Database for Node.js". https://www.infoq.com/news/2016/11/Realm-database-nodejs. 

External links