How we manage live 1M GraphQL Websocket Subscriptions

Written by tigranbs | Published 2019/08/16
Tech Story Tags: javascript | nodejs | graphql | apollo | websockets | latest-tech-stories | popularity-of-wbsockets | websocket-issues

TLDR Using WebSockets allows us to send data to UI whenever our tools are ready to respond. GraphQL subscriptions are the key part of our environment because it allows using the same schema/query based concept but with live WebSocket updates over multiple UI components. There are some downsides, specifically managing WebSocket connections could require a lot more resources than a standard request-response cycle. Each WebSocket connection on average takes about 4Kb memory, which is not a big deal, but if you calculate how many live connections and active website analysis we are doing, keeping live Web socket connections gets more and more expensive.via the TL;DR App

no story

Written by tigranbs | Founder of https://treescale.com, Software scalability expert!
Published by HackerNoon on 2019/08/16