SlideShare a Scribd company logo
RethinkDB, horizon
RethinkDB, horizon
Introduction to create
the real time web application.
RethinkDB, horizon
About me
@chuck0523
25yo like JavaScript
Junior Front-End developer
0
25
50
75
100
HTML CSS JavaSript Ruby PHP
RethinkDB, horizon
My skills
RethinkDB, horizon
My recent job
‣ Create SPA by React, Redux, CSS Modules,
PostCSS with Webpack, on Rails as API server.
RethinkDB, horizon
It’s on Medium
RethinkDB, horizon
That’s it about me
RethinkDB, horizon
Let’s dive into
RethinkDB & horizon!!
The open-source database
for the realtime web
RethinkDB, horizon
RethinkDB
RethinkDB, horizon
RethinkDB
‣ OpenSource NoSQL DB
‣ Since July 2009
‣ For realtime web app
‣ Written in C++
‣ Stores JSON
‣ 15000 stars on Github
RethinkDB, horizon
ReQL
RethinkDB is using ReQL (DSL)
Available in
Java, Ruby, Python, JavaScript
RethinkDB, horizon
SQL to ReQL
Insert in SQL
RethinkDB, horizon
SQL to ReQL
Insert in ReQL
RethinkDB, horizon
Select statement
SQL ReQL
RethinkDB, horizon
Update statement
SQL ReQL
RethinkDB, horizon
Delete statement
SQL ReQL
RethinkDB, horizon
Joins in ReQL
RethinkDB, horizon
Aggregation in ReQL
“Group by” in SQL
RethinkDB, horizon
Totally NoSQL.
Seems to be super
easy and fun!
RethinkDB, horizon
That’s all about ReQL
RethinkDB, horizon
How can we start ?
RethinkDB, horizon
$ brew install rethinkdb
RethinkDB, horizon
RethinkDB in Rails
https://www.rethinkdb.com/docs/rails/
RethinkDB, horizon
RethinkDB in Others
https://github.com/rethinkdb/?utf8=%E2%9C
You can also use
Angular, Express, Node…
The realtime JavaScript backend
RethinkDB, horizon
Horizon.js
RethinkDB, horizon
Horizon.js
‣ OSS JavaScript Framework
‣ Created by RethinkDB ppl
‣ On RethinkDB and Node.js
‣ Subscribes App state
‣ Using RxJS Internally
‣ Auth and Permission
RethinkDB, horizon
Let’s take a look at sample code
RethinkDB, horizon
Two core classes in
Horizon.js
RethinkDB, horizon
1. Horizon class
‣ Horizon class takes care of
instantiation and
management connection
‣ Pass a string to object of
Horizon class, then
collection is returned
RethinkDB, horizon
1. Horizon class
RethinkDB, horizon
2. Collection class
‣ Collection class deals with
create, read, update and
delete data
‣ Some methods return
RxObservable, which
enables us to use
RxObservable’s methods
RethinkDB, horizon
Collection.store
RethinkDB, horizon
Collection.watch
RethinkDB, horizon
Rx returnable methods
‣ Collection.watch returns RxObservable
‣ We can use RxObservable’s method
‣ map, filter, mergeMap, toArray…
RethinkDB, horizon
Collection.methods are for
Back-end (RethinkDB).
RxObservable.methods are for
Front-end (React or something).
RethinkDB, horizon
https://www.rethinkdb.com/docs/sharding-and-replication/
We got basic of
RethinkDB & Horizon.js now
http://horizon.io/docs/getting-started/
RethinkDB, horizon
It’s time to DEMO
RethinkDB, horizon
Thanks for listening
Codes of DEMO are on Github repo.
You can pull and try it.
https://github.com/chuck0523/learning-langs/tree/gh-pages/js/reChat

More Related Content

PDF
Fluentd and Docker - running fluentd within a docker container
PPTX
High Performance API Mashups with Node.js and ql.io
PDF
Introduction to GraphQL
PDF
Prisma api kick off: React-Native Seoul meetup
PDF
J-Day Kraków: Listen to the sounds of your application
PDF
Experience with C++11 in ArangoDB
PDF
Scala at foursquare
PPTX
Part Two: Building Web Apps with the MERN Stack
Fluentd and Docker - running fluentd within a docker container
High Performance API Mashups with Node.js and ql.io
Introduction to GraphQL
Prisma api kick off: React-Native Seoul meetup
J-Day Kraków: Listen to the sounds of your application
Experience with C++11 in ArangoDB
Scala at foursquare
Part Two: Building Web Apps with the MERN Stack

What's hot (20)

PPTX
Running Airflow Workflows as ETL Processes on Hadoop
KEY
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
PPTX
Airflow at WePay
PDF
Apache airflow
PDF
Apache Gobblin
PDF
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
PDF
How I learned to time travel, or, data pipelining and scheduling with Airflow
PDF
Spark Workflow Management
PDF
Airflow introduction
PDF
ArangoDB – A different approach to NoSQL
PPTX
Presto@Netflix Presto Meetup 03-19-15
PDF
Workflow Engines for Hadoop
PPTX
Lightning talk: elasticsearch at Cogenta
PPTX
Meetup#2: Building responsive Symbology & Suggest WebService
PPTX
presto-at-netflix-hadoop-summit-15
PPTX
Elastic Stack Introduction
PPTX
Apache Airflow overview
PDF
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
PDF
Using Embulk at Treasure Data
PDF
Fluentd and Docker - running fluentd within a docker container
Running Airflow Workflows as ETL Processes on Hadoop
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Airflow at WePay
Apache airflow
Apache Gobblin
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
How I learned to time travel, or, data pipelining and scheduling with Airflow
Spark Workflow Management
Airflow introduction
ArangoDB – A different approach to NoSQL
Presto@Netflix Presto Meetup 03-19-15
Workflow Engines for Hadoop
Lightning talk: elasticsearch at Cogenta
Meetup#2: Building responsive Symbology & Suggest WebService
presto-at-netflix-hadoop-summit-15
Elastic Stack Introduction
Apache Airflow overview
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
Using Embulk at Treasure Data
Fluentd and Docker - running fluentd within a docker container
Ad

Viewers also liked (17)

PDF
Redux, Relay, HorizonあるいはElm
PDF
Apolloを使って、React-Reduxの世界にGraphQLを持ち込む
DOCX
Tipos de herramientas
PDF
About_my_work[1]
PPT
серкеноваулжан+салонкрасоты+клиенты
PDF
Prezentacja firmy Gepol | Gepol company
PPTX
The split fake
PPTX
Indice
PDF
HGR April 2012
DOC
Vignesh Kumar C- TPI Coordinator
PDF
ConfBrochureOG254_4.7.13
DOC
Currículo...tema final
PPT
серкеноваулжан+кино+конкуренты
PPTX
RAH Med 4 Ortho - Limb Imaging 1
PDF
Features and Goals_96dpi
PPTX
生涯あんしんサポート紹介資料
Redux, Relay, HorizonあるいはElm
Apolloを使って、React-Reduxの世界にGraphQLを持ち込む
Tipos de herramientas
About_my_work[1]
серкеноваулжан+салонкрасоты+клиенты
Prezentacja firmy Gepol | Gepol company
The split fake
Indice
HGR April 2012
Vignesh Kumar C- TPI Coordinator
ConfBrochureOG254_4.7.13
Currículo...tema final
серкеноваулжан+кино+конкуренты
RAH Med 4 Ortho - Limb Imaging 1
Features and Goals_96dpi
生涯あんしんサポート紹介資料
Ad

Similar to Introduction to RethinkDB and Horizon.js (13)

PDF
Database Camp 2016 @ United Nations, NYC - Michael Glukhovsky, Co-Founder, Re...
PPTX
RethinkDB - the open-source database for the realtime web
PPTX
PDF
MongoDB Days Silicon Valley: Winning the Dreamforce Hackathon with MongoDB
PDF
Hacking for fun and profit
PDF
SF Elixir Meetup - RethinkDB
PDF
CouchDB Open Source Bridge
PDF
Java EE 6 and NoSQL Workshop DevFest Austria
PDF
Rethinkdb
ODP
PDF
Couchdb Nosql
PPT
​Fully Reactive - from Data to UI with OrientDB + Node.js + Socket.io
PDF
Reactive data analysis with vert.x
Database Camp 2016 @ United Nations, NYC - Michael Glukhovsky, Co-Founder, Re...
RethinkDB - the open-source database for the realtime web
MongoDB Days Silicon Valley: Winning the Dreamforce Hackathon with MongoDB
Hacking for fun and profit
SF Elixir Meetup - RethinkDB
CouchDB Open Source Bridge
Java EE 6 and NoSQL Workshop DevFest Austria
Rethinkdb
Couchdb Nosql
​Fully Reactive - from Data to UI with OrientDB + Node.js + Socket.io
Reactive data analysis with vert.x

Recently uploaded (20)

PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
This slide provides an overview Technology
PDF
Reimagining Insurance: Connected Data for Confident Decisions.pdf
PDF
Smarter Business Operations Powered by IoT Remote Monitoring
PDF
Software Development Methodologies in 2025
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
Why Endpoint Security Is Critical in a Remote Work Era?
PPTX
CroxyProxy Instagram Access id login.pptx
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
PDF
Doc9.....................................
PDF
DevOps & Developer Experience Summer BBQ
Chapter 2 Digital Image Fundamentals.pdf
NewMind AI Weekly Chronicles - August'25 Week I
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
This slide provides an overview Technology
Reimagining Insurance: Connected Data for Confident Decisions.pdf
Smarter Business Operations Powered by IoT Remote Monitoring
Software Development Methodologies in 2025
NewMind AI Weekly Chronicles - July'25 - Week IV
Event Presentation Google Cloud Next Extended 2025
Why Endpoint Security Is Critical in a Remote Work Era?
CroxyProxy Instagram Access id login.pptx
Revolutionize Operations with Intelligent IoT Monitoring and Control
Automating ArcGIS Content Discovery with FME: A Real World Use Case
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
ChatGPT's Deck on The Enduring Legacy of Fax Machines
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Doc9.....................................
DevOps & Developer Experience Summer BBQ

Introduction to RethinkDB and Horizon.js