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
1
79
Going Serverless with GraphQL
Presented at O'Reilly Velocity London on 10/20/17
Steve Faulkner
October 20, 2017
Tweet
Share
More Decks by Steve Faulkner
See All by Steve Faulkner
Shipping TypeScript to npm
southpolesteve
2
380
Hitchhiker's Guide to Serverless @ QCon London
southpolesteve
0
42
Hitchhiker's Guide to Serverless - Node Interactive
southpolesteve
0
79
Full Stack Serverless @ DevOps Days Boston
southpolesteve
0
40
Full Stack Serverless Applications @ MidwestJS
southpolesteve
0
220
Other Decks in Technology
See All in Technology
Claude Codeが働くAI中心の業務システム構築の挑戦―AIエージェント中心の働き方を目指して
os1ma
9
1.6k
【CEDEC2025】現場を理解して実現!ゲーム開発を効率化するWebサービスの開発と、利用促進のための継続的な改善
cygames
PRO
0
730
LIFF CLIとngrokを使ったLIFF/LINEミニアプリのお手軽実機確認
diggymo
0
240
OPENLOGI Company Profile for engineer
hr01
1
37k
Findy Freelance 利用シーン別AI活用例
ness
0
340
Jamf Connect ZTNAとMDMで実現! 金融ベンチャーにおける「デバイストラスト」実例と軌跡 / Kyash Device Trust
rela1470
0
170
【新卒研修資料】数理最適化 / Mathematical Optimization
brainpadpr
25
12k
VLMサービスを用いた請求書データ化検証 / SaaSxML_Session_1
sansan_randd
0
220
AIのグローバルトレンド 2025 / ai global trend 2025
kyonmm
PRO
1
120
LTに影響を受けてテンプレリポジトリを作った話
hol1kgmg
0
320
マルチモーダル基盤モデルに基づく動画と音の解析技術
lycorptech_jp
PRO
4
550
Bet "Bet AI" - Accelerating Our AI Journey #BetAIDay
layerx
PRO
4
1.6k
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Optimizing for Happiness
mojombo
379
70k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
6k
Building Applications with DynamoDB
mza
95
6.5k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Done Done
chrislema
185
16k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Typedesign – Prime Four
hannesfritz
42
2.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The Pragmatic Product Professional
lauravandoore
36
6.8k
A designer walks into a library…
pauljervisheath
207
24k
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