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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Steve Faulkner
October 20, 2017
Technology
80
1
Share
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
390
Hitchhiker's Guide to Serverless @ QCon London
southpolesteve
0
48
Hitchhiker's Guide to Serverless - Node Interactive
southpolesteve
0
90
Full Stack Serverless @ DevOps Days Boston
southpolesteve
0
42
Full Stack Serverless Applications @ MidwestJS
southpolesteve
0
220
Other Decks in Technology
See All in Technology
Podcast配信で広がったアウトプットの輪~70人と音声発信してきた7年間~/outputconf_01
fortegp05
0
230
GitHub Actions侵害 — 相次ぐ事例を振り返り、次なる脅威に備える
flatt_security
13
7.6k
パワポ作るマンをMCP Apps化してみた
iwamot
PRO
0
300
【PHPカンファレンス小田原2026】Webアプリケーションエンジニアにも知ってほしい オブザーバビリティ の本質
fendo181
0
220
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
1k
ログ基盤・プラグイン・ダッシュボード、全部整えた。でも最後は人だった。
makikub
4
390
マルチモーダル非構造データとの闘い
shibuiwilliam
1
180
"まず試す"ためのDatabricks Apps活用法 / Databricks Apps for Early Experiments and Validation
nttcom
1
180
自分をひらくと次のチャレンジの敷居が下がる
sudoakiy
5
1.9k
ブラックボックス化したMLシステムのVertex AI移行 / mlops_community_62
visional_engineering_and_design
1
290
不確実性と戦いながら見積もりを作成するプロセス/mitsumori-process
hirodragon112
1
190
Webアクセシビリティは“もしも”に備える設計
tomokusaba
0
170
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.8k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
870
Making the Leap to Tech Lead
cromwellryan
135
9.8k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.5k
エンジニアに許された特別な時間の終わり
watany
106
240k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
From π to Pie charts
rasagy
0
160
Navigating Team Friction
lara
192
16k
Agile that works and the tools we love
rasmusluckow
331
21k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
150
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