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

Hasura Con'21 Recap - GraphQL subscriptions

Hasura Con'21 Recap - GraphQL subscriptions

Hiroaki KARASAWA

July 08, 2021
Tweet

More Decks by Hiroaki KARASAWA

Other Decks in Technology

Transcript

  1. HASURA CON
    21
    Recap


    Part
    1
    karszawa

    View Slide

  2. @karszawa


    Engineering Lead at dinii Inc.


    TypeScript, React, GraphQL


    View Slide

  3. Hasura Con
    2 1

    SQL Server subscriptions: Up and running


    Delivering real-time statistics for the
    2
    021
    Olympics


    View Slide

  4. GraphQL subscription


    Hasura WebSocket


    query


    Firestore onSnapshot


    Hasura onSnapshot

    View Slide

  5. Delivering real-time statistics for the
    2
    0
    2 1
    Olympics
    The Washington Post


    non-Hasura


    AWS Step Function, Amazon Simple Queue Service, Pusher

    Hasura with subscription


    Simple & Easy

    View Slide

  6. KD
    KD

    View Slide

  7. Hasura subscription


    1 1 SQL


    WebSocket


    multiplexing



    🤨


    😄



    select *
    🤨
    from orde
    r

    where customerId = xxx
    select *
    🤨
    from orde
    r

    where customerId = yyy
    select *
    😄
    from orde
    r

    wher
    e

    customerId = xxx O
    R

    customerId = yyy

    View Slide

  8. KD 1




    Cloud Run Hasura 50


    10


    Cloud SQL PostgreSQL CPU 90


    60%




    🤔


    multiplexing 💡

    View Slide

  9. multiplexing
    😔



    Cloud Run 80


    80 250 WebSocket

    View Slide

  10. WebSocket Cloud Run

    View Slide

  11. Hasura NG 🙅


    ⾒ Hasura DB

    Cloud Run


    App Engine

    Hasura Cloud


    っ DB GCP

    View Slide

  12. KD 30 🤯



    DB


    Hasura


    KD subscription


    1,2s 30s



    1,2s

    View Slide

  13. Hasura 1 1 SQL


    1





    Cloud SQL

    View Slide

  14. PostgreSQL


    🎉

    subscription
    🙅
    Hasura


    Haskell

    View Slide

  15. 👋
    Hasura


    multiplexing


    っ 100



    っ 1





    
 

    MySQL PostgreSQL


    MySQL

    View Slide