Leveraging the power of GraphQL on DigitalOcean with Hasura

Leveraging the power of GraphQL on DigitalOcean with Hasura

Presenting DIY GraphQL BaaS (https://hasura.io/diy-graphql-baas) and a small intro to Hasura on DO, at DigitalOcean Tide Conference in Delhi.

0913331bcf360849ca2acec0612081b2?s=128

Shahidh K Muhammed

November 16, 2018
Tweet

Transcript

  1. shahidh_k Leveraging the power of GraphQL on DigitalOcean

  2. shahidh_k Hello! I AM SHAHIDH I am an Engineer at

    Hasura 2
  3. shahidh_k GraphQL Open sourced by Facebook in 2015 1 3

  4. shahidh_k “ GraphQL is a query language for your API,

    and a server-side runtime for executing queries by using a type system you define for your data. 4 - GraphQL.org
  5. shahidh_k REST vs GraphQL 5 Product Brand Category GET PUT

    POST PATCH DELETE GET PUT POST PATCH DELETE GET PUT POST PATCH DELETE ProductWithBrand
  6. shahidh_k Subscriptions - Realtime 6

  7. shahidh_k Subscriptions - Realtime 7

  8. shahidh_k Hasura + DigitalOcean Instant Realtime GraphQL on Postgres 8

    2 + = + =
  9. shahidh_k Hasura one-click app on DigitalOcean 9

  10. shahidh_k Hasura on DigitalOcean 10 Source

  11. shahidh_k Demo Time 11

  12. shahidh_k Demo - Async business logic - architecture 12 Database

    App Payment processing Restaurant approval Delivery assignment Async serverless functions Mutations/Subscriptions
  13. shahidh_k 3factor.app demo 13 https://serverless-demo.hasura.app/ https://github.com/shahidhk/hasura-serverless

  14. shahidh_k Hasura on DigitalOcean 14 3 Performance

  15. shahidh_k 18MB Docker Image 5$ DigitalOcean Droplet (1vCPU/1GB) 50MB RAM

    Consumption @1000 req/sec 15
  16. shahidh_k Architecture 16 App Database SQL JSON JSON

  17. shahidh_k Hasura on DO ◦ Droplet with Docker ▫ One-click

    App ◦ DigitalOcean Kubernetes ▫ Autoscale 17
  18. shahidh_k Thanks! QUESTIONS? Star us on GitHub https://github.com/hasura/graphql-engine 18 Slide

    template credits