Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
React + Relay + GraphQL is the Future
Search
Keith Pitt
November 26, 2015
Programming
2.2k
13
Share
React + Relay + GraphQL is the Future
Keith Pitt
November 26, 2015
More Decks by Keith Pitt
See All by Keith Pitt
Buildkite loves Golang
keithpitt
3
470
Keith and Mario's Guide to Continuous Deployment
keithpitt
18
2.6k
Buildbox - Lessons Learned
keithpitt
1
460
Practical Backbone Patterns
keithpitt
16
1.7k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Desktoppr - Lessons Learned
keithpitt
6
830
VendorKit - An Introduction
keithpitt
2
590
A basic introduction to Mustache
keithpitt
3
470
UI Testing with Frank
keithpitt
1
350
Other Decks in Programming
See All in Programming
【ディップ|26年新卒研修資料】TDD実装演習
dip_tech
PRO
0
180
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
630
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
350
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
200
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
450
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.8k
AI-DLC Deep Dive
yuukiyo
9
5.8k
Building on Bluesky's AT Protocol with Ruby
mackuba
0
110
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
140
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
150
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
ハーネスエンジニアリングとは?
kinopeee
13
6.9k
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
120
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
280
Optimizing for Happiness
mojombo
378
71k
Agile that works and the tools we love
rasmusluckow
331
21k
Prompt Engineering for Job Search
mfonobong
0
300
We Are The Robots
honzajavorek
0
230
Raft: Consensus for Rubyists
vanstee
141
7.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
360
Navigating Weather and Climate Data
rabernat
0
190
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.3k
Transcript
None
@keithpitt
None
None
I’m excited! ⚡
But first…history
+ Probably the Future +
Glad I said “probably”
+ Probably the Future +
+ Probably the Future +
+ + Is the future.
React
None
None
Just the UI Lots of people use React as the
V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
None
+ Backbone
+ Flux
+
None
None
None
None
None
None
None
Too many random “Restful” JSON endpoints
The server and the client were coupled
Inefficient and slow
Too much code
Lots of boiler plate
Hard to get started
Telstra
None
None
GraphQL
Relay
GraphQL
None
None
CURL -X POST https://api.buildkite.com/v1/organizations/buildkite/ projects/buildkite/23
None
CURL -X POST https://api.buildkite.com/v1/organizations/buildkite/ projects/buildkite/23?expand=comments
CURL -X POST https://api.buildkite.com/v1/organizations/buildkite/ projects/buildkite/23/comments
None
None
None
A specification
It’s represents data how we think about it
It looks like JSON
Simple HTTP Post
You control what data is returned
Typed
Introspection
None
None
IDE integration
Before commit hook validation
None
None
None
Relay
The glue between GraphQL and React
None
None
None
Demo
Relay
Batched requests
Partial data fetching
Telstra
Things I skipped:
Things I skipped: Webpack + Rails Mutations Security + Authorisation
Routes Subscriptions ES6,7,8,9,10,xx Probably more…
Get excited ⚡
+ + Is the future.
None
None
Demo
None
None
None
None
None
None
None
CURL -X POST \ -H "Authorization: Bearer xxx" \ https://graphql.buildkite.com/v1
\ -d '{ "query": "query AwesomeQuery { viewer { user { name } } }" }'
Fin ❤ @keithpitt