GraphQL-AnyCable

AnyCable is fast because it does not execute any Ruby code. But the default subscription implementation shipped with graphql gem requires to do exactly that: re-evaluate GraphQL queries in ActionCable process. AnyCable doesn’t support this (it’s possible but hard to implement).

Differences

  • Subscription information is stored in the Redis database configured to be used by AnyCable. Expiration or data cleanup should be configured separately (see below).
  • GraphQL queries for all subscriptions are re-executed in the process that triggers the event (it may be a web server, async jobs, rake tasks).

Compatibility

  • Should work with ActionCable in the development environment.
  • Should work without Rails via LiteCable.
Authors

In the same orbit

Explore more open source projects

Let's solve your hard problems

Martians at a glance
18
years in business

We're experts at helping developer products grow, with a proven track record in UI design, product iterations, cost-effective scaling, and much more. We'll lay out a strategy before our engineers and designers leap into action.

If you prefer email, write to us at surrender@evilmartians.com