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
Going Serverless with GraphQL
Search
Steve Faulkner
October 20, 2017
Technology
83
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Going Serverless with GraphQL
Presented at O'Reilly Velocity London on 10/20/17
Steve Faulkner
October 20, 2017
More Decks by Steve Faulkner
See All by Steve Faulkner
Shipping TypeScript to npm
southpolesteve
2
410
Hitchhiker's Guide to Serverless @ QCon London
southpolesteve
0
51
Hitchhiker's Guide to Serverless - Node Interactive
southpolesteve
0
92
Full Stack Serverless @ DevOps Days Boston
southpolesteve
0
46
Full Stack Serverless Applications @ MidwestJS
southpolesteve
0
230
Other Decks in Technology
See All in Technology
モバイルアプリ開発概論2026
recruitengineers
PRO
5
570
カートの信頼性を担保するWireMockを使ったe2eテスト
ykagano
0
190
関東Kaggler会発表資料
takoi
1
220
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
520
同じWAFが、攻撃の“形”は弾く── 正当な“形”の不正は通す
kuroneko13
0
130
【CEDEC2026】『Relink』を拡張せよ - 『GRANBLUE FANTASY: Relink - Endless Ragnarok』の開発速度と品質を守るCI運用
cygames
PRO
0
150
AIコーディングの次。コードレビューと理解負荷を解消して組織の開発生産性を高める
moongift
PRO
2
2.5k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
事業価値と Engineering 2026年度版
recruitengineers
PRO
49
23k
【CEDEC2026】グラフィックスエンジニアのためのニューラルシェーディング入門
cygames
PRO
0
140
[しろおび夏祭り2026] チャットするAIから、作業するAIへ - 使われ方の変化と、その裏側で起きていること
kk0n
0
1.7k
Head First モブプログラミング / Head First Mobprogramming
takaking22
10
12k
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
240
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Prompt Engineering for Job Search
mfonobong
0
400
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
119
120k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
440
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
390
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
GraphQLとの向き合い方2022年版
quramy
50
15k
Raft: Consensus for Rubyists
vanstee
141
7.6k
Leo the Paperboy
mayatellez
8
2.1k
Transcript
Going Serverless with GraphQL
Steve Faulkner @southpolesteve
None
None
The Hitchhiker’s Guide to Serverless
None
“Could he have used more buzzwords?”
None
Going Serverless with GraphQL
An oral history of Bustle architecture
None
80+ million readers
2 Years
100% production serverless + graphQL
100% production serverless + graphQL * mostly *
An oral history of Bustle architecture
August 2013
Rails + Heroku
August 2015
None
Rails Redis Postgres Elasticsearch Sphinx
None
EC2 + Opsworks
Issues: Rails + Postgres EC2 Autoscaling
AWS API Gateway
AWS Lambda
AWS Lambda + AWS API Gateway
None
“serverless”
there are still servers…
servers platforms!
Episode 1: It Begins
Node.js Lambda API Gateway REST API
EC2 ~$2500/mo
lambda api gateway ~$400/mo
None
None
deployment :/
None
https://github.com/bustle/shep
None
November 2015
Episode 2: the serverless front end
None
None
Node.js + preact Lambda microservice-ish API Gateway HTML
None
the servers are down!
Pop Quiz: Default max # of redis connections
10,000
nothing is a silver bullet
None
Spring 2016
GraphQL
None
“A query language for your API”
“coalesce the sundry key-value store back-end APIs which existed at
the time”
Schema Query Data
type Query { me: User } type User { id:
ID name: String }
{ me { name } }
{ "me": { "name": “Steve" } }
None
None
types
APIs are contracts
Give me a vehicle
None
Give me a car. With 6 seats. That is red.
And has a bike rack. Include the bikes. Mountain Bikes. With tires.
“Sounds like WSDL with less ceremony”
Yup
GraphQL = Happy Developers
Summer 2016
Rails Redis Postgres Elasticsearch Sphinx Node.js Lambda API Gateway graphQL
purescript
“serverless”
serverless
“serverless” 2.0
servers platforms events!
API Gateway Dynamo Kinesis SNS S3 Cognito Elasticache
API Gateway Dynamo Kinesis SNS S3 Cognito Elasticache
FaaS = Cloud Glue
FaaS = Boring
September 2016
Episode 3: All In!
None
the serverless servers are down!
account level concurrency limit
None
November 2016
Episode 4: Let’s write a graph database
100% Lambda 100% GraphQL
“coalesce the sundry key-value store back-end APIs which existed at
the time”
Issues: too many databases :/
redis + graphQL
None
hexastores redis sorted sets graphQL dataloader
Recap
REST API
REST API REST API
REST API REST API GraphQL
June 2017
Episode 5: How do you buy a company?
+
REST API REST API GraphQL 3rd Party
REST API REST API GraphQL 3rd Party
REST API REST API GraphQL 3rd Party
REST API REST API GraphQL 3rd Party
REST API REST API GraphQL 3rd Party
REST API GraphQL REST API GraphQL 3rd Party
REST API GraphQL REST API GraphQL 3rd Party
3 Approaches…
1. Build new APIs
2. Wrap legacy APIs
Read through Copy on Read/Write Dual Writes Replace
Data Cruft?
3. Import data with mutations
input EliteDailyImport { id: ID name: String url: URL authorID:
Int! }
Runtime Types Crufty Legacy Data
None
What next?
tweetable controversial thoughts
containers
“Docker who?”
What is “serverless”?
No one wants Multi-Cloud FaaS
FaaS is boring
Evented architectures are fun!
Serverless Databases
Deployment frameworks are boring
Architecture frameworks are fun!
Infrastructure as Code
Infrastructure as Code
Infrastructure as Config Files
Infrastructure as Config Files
const domain = new AWS.Route53('www.example.com') const fn = new AWS.Lambda('render-html')
const cdn = new Fastly('example-cdn') domain.pipe(cdn).pipe(fn)
const domain = new AWS.Route53('www.example.com') const fn = new AWS.Lambda(‘render-html’,
() => { return ‘<p>hello world</p>’ }) const cdn = new Fastly('example-cdn') pipe(domain, cdn, fn)
questions? Steve Faulkner @southpolesteve