Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

GraphQL subscriptions with Redis Pub Sub

Blog post from Apollo

Post Details
Company
Date Published
Author
David Yahalomi
Word Count
1,497
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

The author of the text is David Yahalomi and he implemented Redis Pub/Sub system for GraphQL subscriptions as part of the Apollo project. The implementation allows for easy integration of external Pub/Sub systems like Redis, enabling consistent propagation of published events to their subscribers. The package `graphql-redis-subscriptions` makes it easy to connect Redis with GraphQL subscriptions by providing a `RedisPubSub` class that can be used in place of the default pub/sub system. The author tested the performance of the system and found that it scales well, but noted that running a GraphQL query for each subscriber and each event could become a bottleneck if not optimized. To improve scalability, the author suggests implementing shared execution for subscribers with the same query. The package has been updated to include options for passing configuration to each call of subscribe, allowing pub/sub engines to reduce their subscription set using the best method of that engine.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 223 63 23 +86%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.