1 of 22

Slide Notes

DownloadGo Live

Serverless Apps Backed w/ GraphQL

Published on Apr 12, 2016

No Description

PRESENTATION OUTLINE

Serverless React Apps

Cloud cloud cloud cloud cloud with @ryan_sb

Engineer @ Red Hat

Formerly Ops & Automation @ Hudl

Agenda

  • Serverless?
  • REST vs. GraphQL
  • Single Page Apps
  • Build a thing

No server is easier to manage than no server

Photo by camknows

IaaS

  • Hardware handled
  • BYO network architecture
  • BYO applications
  • BYO deploy tools
  • BYO code

PaaS

  • Heroku, OpenShift
  • Ops handled
  • Deploys handled
  • Scaling sometimes handled
  • BYO code

Serverless

  • Networking & Ops handled
  • Framework handled
  • Scaling handled
  • BYO code

Lambda

  • Runtime as a Service
  • Parallelism builtin
  • Loads of event sources
Photo by david drexler

Cheap

162.5 femtodollars/byte-second
Photo by massmatt

More pricing

  • $0.000000834 per 100ms for 512MB env
  • First million are free

Protocols

REST

  • GET /api/user/123
  • Request per resource
  • Queries as "query=foo"

Click to add more text here

RESTful Problems

  • Many round-trips
  • Adding more fields
  • Merging data to a view
  • Mobile networks

GraphQL

  • Huge single query
  • Request only what you need
  • Single round trip

Untitled Slide

Untitled Slide

API Gateway

  • HTTP to Lambda events
  • Request/reply mapping
  • Staging environments

Untitled Slide

Stop, Demo Time

Untitled Slide

Untitled Slide