paint-brush
How we manage live 1M GraphQL Websocket Subscriptionsby@tigranbs
1,409 reads
1,409 reads

How we manage live 1M GraphQL Websocket Subscriptions

by Tigran Bayburtsyan6mAugust 16th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How we manage live 1M GraphQL Websocket Subscriptions
Tigran Bayburtsyan HackerNoon profile picture
Tigran Bayburtsyan

Tigran Bayburtsyan

@tigranbs

Founder of https://treescale.com, Software scalability expert!

About @tigranbs
LEARN MORE ABOUT @TIGRANBS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Tigran Bayburtsyan HackerNoon profile picture
Tigran Bayburtsyan@tigranbs
Founder of https://treescale.com, Software scalability expert!

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Graphqlweekly