Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fighting Legacy Codebases with GraphQL and Rails

Fighting Legacy Codebases with GraphQL and Rails

GraphQL is one of the hottest technologies of the past year or two. Still, very little is talked about GraphQL outside of the realm of front-end applications.

We used a different approach at IFTTT and applied GraphQL as an integration layer for different backends and client apps.

This talk goes beyond the basic configuration of a GraphQL endpoint with Rails. I’ll cover topics such ActiveRecord Query optimization, performance monitoring, batching and share some of the challenges we ran into while building a GraphQL API that serves over 10 thousand queries per minute.

Ivayr Farah Netto

March 18, 2017
Tweet

More Decks by Ivayr Farah Netto

Other Decks in Programming

Transcript

  1. Technical Challenge • Build an entirely new website and mobile

    apps • Iterate fast (9 months deadline)
  2. { "data": { "rubygem": { "name": "rails", "downloads": 89321853 },

    “current_user": { "login": "nettofarah", "email": “[email protected]" } } }
  3. RubyGems API - use cases • list all available rubygems

    • search one specific rubygem by name
  4. GraphQL API ☁ A P I 
 G
 A
 T

    E
 W
 A Y Service A Service B Service C
  5. GraphQL API ⛈ A P I 
 G
 A
 T

    E
 W
 A Y Service A Service B Service C
  6. Where to go next? • graphql.org • graphql.slack.com (#ruby -

    I hang out there) • https://github.com/rmosolgo/graphql-ruby