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

What's hot (20)

PPTX
Running Airflow Workflows as ETL Processes on Hadoop
clairvoyantllc
 
KEY
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Jeremy Zawodny
 
PPTX
Airflow at WePay
Chris Riccomini
 
PDF
Apache airflow
Purna Chander
 
PDF
Apache Gobblin
Mike Frampton
 
PDF
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
Jeremy Zawodny
 
PDF
How I learned to time travel, or, data pipelining and scheduling with Airflow
PyData
 
PDF
Spark Workflow Management
Romi Kuntsman
 
PDF
Airflow introduction
Chandler Huang
 
PDF
ArangoDB – A different approach to NoSQL
ArangoDB Database
 
PPTX
Presto@Netflix Presto Meetup 03-19-15
Zhenxiao Luo
 
PDF
Workflow Engines for Hadoop
Joe Crobak
 
PPTX
Lightning talk: elasticsearch at Cogenta
Yann Cluchey
 
PPTX
Meetup#2: Building responsive Symbology & Suggest WebService
Minsk MongoDB User Group
 
PPTX
presto-at-netflix-hadoop-summit-15
Zhenxiao Luo
 
PPTX
Elastic Stack Introduction
Vikram Shinde
 
PPTX
Apache Airflow overview
NikolayGrishchenkov
 
PDF
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
Burasakorn Sabyeying
 
PDF
Using Embulk at Treasure Data
Treasure Data, Inc.
 
PDF
Fluentd and Docker - running fluentd within a docker container
Treasure Data, Inc.
 
Running Airflow Workflows as ETL Processes on Hadoop
clairvoyantllc
 
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Jeremy Zawodny
 
Airflow at WePay
Chris Riccomini
 
Apache airflow
Purna Chander
 
Apache Gobblin
Mike Frampton
 
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
Jeremy Zawodny
 
How I learned to time travel, or, data pipelining and scheduling with Airflow
PyData
 
Spark Workflow Management
Romi Kuntsman
 
Airflow introduction
Chandler Huang
 
ArangoDB – A different approach to NoSQL
ArangoDB Database
 
Presto@Netflix Presto Meetup 03-19-15
Zhenxiao Luo
 
Workflow Engines for Hadoop
Joe Crobak
 
Lightning talk: elasticsearch at Cogenta
Yann Cluchey
 
Meetup#2: Building responsive Symbology & Suggest WebService
Minsk MongoDB User Group
 
presto-at-netflix-hadoop-summit-15
Zhenxiao Luo
 
Elastic Stack Introduction
Vikram Shinde
 
Apache Airflow overview
NikolayGrishchenkov
 
Intro to Airflow: Goodbye Cron, Welcome scheduled workflow management
Burasakorn Sabyeying
 
Using Embulk at Treasure Data
Treasure Data, Inc.
 
Fluentd and Docker - running fluentd within a docker container
Treasure Data, Inc.
 

Viewers also liked (17)

PDF
Redux, Relay, HorizonあるいはElm
chuck h
 
PDF
Apolloを使って、React-Reduxの世界にGraphQLを持ち込む
chuck h
 
DOCX
Tipos de herramientas
Diana Marcela Bedoya Fernandez
 
PDF
About_my_work[1]
ioana Cristina Ghinea
 
PPT
серкеноваулжан+салонкрасоты+клиенты
Улжан Серкенова
 
PDF
Prezentacja firmy Gepol | Gepol company
Gepol Sp. z o. o.
 
PPTX
The split fake
Brendon Pritchard
 
PPTX
Indice
0986389405
 
PDF
HGR April 2012
Aurette Bowes
 
DOC
Vignesh Kumar C- TPI Coordinator
Vignesh Kumar C
 
PDF
ConfBrochureOG254_4.7.13
STEPHANIE C HART
 
DOC
Currículo...tema final
Walter Valenzuela
 
PPT
серкеноваулжан+кино+конкуренты
Улжан Серкенова
 
PPTX
RAH Med 4 Ortho - Limb Imaging 1
Luke Oakden-Rayner
 
PDF
Features and Goals_96dpi
Rosa Ruggeri
 
PPTX
生涯あんしんサポート紹介資料
seniorlifesupport
 
Redux, Relay, HorizonあるいはElm
chuck h
 
Apolloを使って、React-Reduxの世界にGraphQLを持ち込む
chuck h
 
Tipos de herramientas
Diana Marcela Bedoya Fernandez
 
About_my_work[1]
ioana Cristina Ghinea
 
серкеноваулжан+салонкрасоты+клиенты
Улжан Серкенова
 
Prezentacja firmy Gepol | Gepol company
Gepol Sp. z o. o.
 
The split fake
Brendon Pritchard
 
Indice
0986389405
 
HGR April 2012
Aurette Bowes
 
Vignesh Kumar C- TPI Coordinator
Vignesh Kumar C
 
ConfBrochureOG254_4.7.13
STEPHANIE C HART
 
Currículo...tema final
Walter Valenzuela
 
серкеноваулжан+кино+конкуренты
Улжан Серкенова
 
RAH Med 4 Ortho - Limb Imaging 1
Luke Oakden-Rayner
 
Features and Goals_96dpi
Rosa Ruggeri
 
生涯あんしんサポート紹介資料
seniorlifesupport
 
Ad

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

PDF
Integrating React.js Into a PHP Application: Dutch PHP 2019
Andrew Rota
 
PDF
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
 
PPTX
GDSC NITS Presents Kickstart into ReactJS
Pratik Majumdar
 
PDF
RxSwift to Combine
Bo-Young Park
 
PDF
React on rails v4
Justin Gordon
 
PDF
Integrating React.js Into a PHP Application
Andrew Rota
 
PPTX
React js basics
Maulik Shah
 
PDF
Full-Stack Reactive with Spring WebFlux + Angular - Oracle Code One 2018
Loiane Groner
 
PDF
Building framework with shared code on Android and iOS using React Native. UA...
UA Mobile
 
PDF
React JS - Introduction
Sergey Romaneko
 
PDF
Intro Couchdb
selvamanisampath
 
PDF
Using React with Grails 3
Zachary Klein
 
KEY
Ruby on Rails survival guide of an aged Java developer
gicappa
 
PDF
Using redux
Jonas Ohlsson Aden
 
PDF
RxSwift to Combine
Bo-Young Park
 
PDF
Full-Stack Reactive with Spring WebFlux + Angular - JConf Colombia 2019
Loiane Groner
 
PDF
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
 
PDF
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
 
PDF
Bringing JAMStack to the Enterprise
C4Media
 
PDF
Boost your APIs with GraphQL 1.0
Otávio Santana
 
Integrating React.js Into a PHP Application: Dutch PHP 2019
Andrew Rota
 
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
 
GDSC NITS Presents Kickstart into ReactJS
Pratik Majumdar
 
RxSwift to Combine
Bo-Young Park
 
React on rails v4
Justin Gordon
 
Integrating React.js Into a PHP Application
Andrew Rota
 
React js basics
Maulik Shah
 
Full-Stack Reactive with Spring WebFlux + Angular - Oracle Code One 2018
Loiane Groner
 
Building framework with shared code on Android and iOS using React Native. UA...
UA Mobile
 
React JS - Introduction
Sergey Romaneko
 
Intro Couchdb
selvamanisampath
 
Using React with Grails 3
Zachary Klein
 
Ruby on Rails survival guide of an aged Java developer
gicappa
 
Using redux
Jonas Ohlsson Aden
 
RxSwift to Combine
Bo-Young Park
 
Full-Stack Reactive with Spring WebFlux + Angular - JConf Colombia 2019
Loiane Groner
 
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
 
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
 
Bringing JAMStack to the Enterprise
C4Media
 
Boost your APIs with GraphQL 1.0
Otávio Santana
 
Ad

Recently uploaded (20)

PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 

Introduction to RethinkDB and Horizon.js