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

Hasura Con'21 Recap - GraphQL subscriptions

Hasura Con'21 Recap - GraphQL subscriptions

9733730b7cb400f72ed99aa28fc1d210?s=128

Hiroaki KARASAWA

July 08, 2021
Tweet

Transcript

  1. HASURA CON 21 Recap Part 1 karszawa

  2. @karszawa Engineering Lead at dinii Inc. TypeScript, React, GraphQL

  3. Hasura Con 2 1 SQL Server subscriptions: Up and running

    Delivering real-time statistics for the 2 021 Olympics
  4. GraphQL subscription Hasura WebSocket query Firestore onSnapshot Hasura onSnapshot

  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
  6. KD KD

  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
  8. KD 1 
 
 
 Cloud Run Hasura 50 10

    Cloud SQL PostgreSQL CPU 90 60% 🤔 multiplexing 💡
  9. multiplexing 😔 
 
 Cloud Run 80 80 250 WebSocket

  10. WebSocket Cloud Run

  11. Hasura NG 🙅 ⾒ Hasura DB 
 Cloud Run App

    Engine 
 Hasura Cloud っ DB GCP
  12. KD 30 🤯 
 DB Hasura KD subscription 1,2s 30s

    
 1,2s
  13. Hasura 1 1 SQL 1 ⾒ Cloud SQL 


  14. PostgreSQL 🎉 
 subscription 🙅 Hasura Haskell

  15. 👋 Hasura multiplexing っ 100 
 っ 1 っ 


    
 MySQL PostgreSQL MySQL