Easy realtime apps without SQL
Sunjay Varma
RethinkDB vs. Firebase, PubNub, Pusher
RethinkDB Query Language
r.db('test').tableCreate('tv_shows').run(conn, (err, res) => {
if (err) throw err;
r.table('tv_shows').insert({name: 'Star Trek TNG'}).run(conn, (err, res) => {
if(err) throw err;
console.log(res);
});
});
// authors table
{
"id": "7644aaf299284231",
"name": "William Adama",
"posts": [
{"title": "Decommissioning speech"},
{"title": "We are at war"},
{"title": "The new Earth"}
]
}
// authors table
{
"id": "7644aaf299284231",
"name": "William Adama"
}
// posts table
{
"id": "064058b6cea94117",
"author_id": "7644aaf299284231",
"title": "Decommissioning speech"
}
Advantages:
Advantages:
Disadvantages:
Disadvantages:
RethinkDB at NASA: https://rethinkdb.com/blog/nasa-case-study/
Questions?
Sunjay Varma