$30 off During Our Annual Pro Sale. View Details »

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.

Shahidh K Muhammed

November 16, 2018
Tweet

More Decks by Shahidh K Muhammed

Other Decks in Technology

Transcript

  1. shahidh_k
    Leveraging the
    power of GraphQL
    on DigitalOcean

    View Slide

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

    View Slide

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

    View Slide

  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

    View Slide

  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

    View Slide

  6. shahidh_k
    Subscriptions - Realtime
    6

    View Slide

  7. shahidh_k
    Subscriptions - Realtime
    7

    View Slide

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

    View Slide

  9. shahidh_k
    Hasura one-click app on DigitalOcean
    9

    View Slide

  10. shahidh_k
    Hasura on DigitalOcean
    10 Source

    View Slide

  11. shahidh_k
    Demo Time
    11

    View Slide

  12. shahidh_k
    Demo - Async business logic - architecture
    12
    Database
    App
    Payment processing
    Restaurant approval
    Delivery assignment
    Async serverless functions
    Mutations/Subscriptions

    View Slide

  13. shahidh_k
    3factor.app demo
    13
    https://serverless-demo.hasura.app/
    https://github.com/shahidhk/hasura-serverless

    View Slide

  14. shahidh_k
    Hasura on DigitalOcean
    14
    3
    Performance

    View Slide

  15. shahidh_k
    18MB
    Docker Image
    5$
    DigitalOcean Droplet (1vCPU/1GB)
    50MB RAM
    Consumption @1000 req/sec
    15

    View Slide

  16. shahidh_k
    Architecture
    16
    App
    Database
    SQL
    JSON
    JSON

    View Slide

  17. shahidh_k
    Hasura on DO
    ◦ Droplet with Docker
    ▫ One-click App
    ◦ DigitalOcean Kubernetes
    ▫ Autoscale
    17

    View Slide

  18. shahidh_k
    Thanks!
    QUESTIONS?
    Star us on GitHub
    https://github.com/hasura/graphql-engine
    18 Slide template credits

    View Slide