5 ms·
The First Object Database for Node: Introducing Realm Node.js
- quotewall 10y agoDoes this work with the new syncing stuff?
- bigfish24 10y ago(Adam from Realm) No this version does not include sync functionality, it is just for use with Realm locally. We wanted to expose it to the Node.js community as we think it has value on its own--such as interprocess communication as mentioned in the article. However, stay tuned more updates around sync very soon!
- reallarry 10y agoHmm, interesting.
- snay 10y agoWhat's the performance like? Hard to believe this could compete with SQL.
- bigfish24 10y agoWe haven't done any formal benchmarks against other SQL databases used server-side. Usually Realm is compared against SQLite since it is also an embedded data store. For example, you can see some benchmarks with our Android version here: https://github.com/realm/realm-java-benchmarks https://github.com/realm/realm-java-benchmarks
- bryanlarsen 10y agoRealm is very cool technology, but the lack of a browser variant is a show-stopper for us. Our clients want web, iOS and Android versions of the apps we build. We really don't want to build our own CRDT syncing, I'd love to evaluate your stuff.
- bigfish24 10y agoThanks for the kind words and feedback! We are very interested in exposing Realm in the browser, especially in the context of Realm Mobile Platform to sync with mobile devices. However, right now we don't have any specific details. The Node.js SDK is first step in that direction since it can power REST API from Realm data.
- marknadal 10y agoDisclosure: We're a competitor. If you need browser support check out https://github.com/amark/gun https://github.com/amark/gun , it runs on all major browsers and can be embedded into native apps and has realtime CRDT sync out of the box. Fully MIT / ZLIB / Apache 2 licensed.
- HodGreeley 10y agoCheck out PouchDB, too. Open-source, cross-browser, and quite mature. Works in Node as well. Syncs with Couchbase. Couchbase also has an embedded native database for Android, iOS and several other platforms that can coexist with PouchDB. https://pouchdb.com/ https://pouchdb.com/ http://www.couchbase.com/nosql-databases/couchbase-mobile http://www.couchbase.com/nosql-databases/couchbase-mobile (Disclosure: I work for Couchbase.)
- mwcampbell 10y agoI think this would be particularly useful for Sandstorm applications. Since Sandstorm's grain-based model means that you have many small databases instead of a single big one (or a relatively small number of big shards), an embedded database like Realm seems like a particularly good fit here. I wonder if kentonv or any of the other Sandstorm developers have any thoughts on this.
- kentonv 10y agoI don't know much about Realm, but what you say sounds correct. Generally we like Sandstorm apps to use sqlite because it is well-optimized for the use case of a "small" (100k-1G) database on local storage with only one process accessing the database at a time. In this use case it doesn't make sense to have a separate process dedicated to the database, clustering is irrelevant, etc. If Realm has similar properties then indeed it would work great for Sandstorm apps.
- thinkloop 10y agoIs this a pure JavaScript implementation of realm, or a js wrapper around a realm process?
- brmunk 10y agoIt's the same C++ core used in the other Realm SDKs that is wrapped in JavaScript. The same API as what has been available in the ReactNative SDK for a while.
- bigfish24 10y agoThis is still using Realm Core: https://github.com/realm/realm-core https://github.com/realm/realm-core but exposed via JavaScript API
- zubairq 10y agoI'm not sure it is fair to say that Realm is the first Javascript object database. What about GunDB or PouchDB?
- zubairq 10y agoGunDB also runs in Node by the way, AND the browser
- HodGreeley 10y agoI think the key is "object" database. PouchDB is a NoSQL document database. It certainly predates Realm.