Gqlgen: Support for external PubSub Engine

Created on 10 Sep 2018  路  1Comment  路  Source: 99designs/gqlgen

Hi guys, great project ! I was wondering if it could be possible to add support for external PubSub Engine more suitable fro production than In Memory, like apollo did with their package I started working on one but I'm still new to golang and it will take me some time to have a good working code for a PR. I started with Postgres with listen/notify and go routines). I know some people started working on graph-gophers/graphql-go subscription with that idea in mind like @matiasanaya with his PR or @mikeifomin with his repo.

Most helpful comment

The api apollo exposes (resolver functions that return asyncIterators) is functionally equivalent to the one gqlgen uses (resolver functions that return channels).

The pubsub engine isn't specified at all by gqlgen, its up to you to bring your own. Use whatever makes sense for your stack.

>All comments

The api apollo exposes (resolver functions that return asyncIterators) is functionally equivalent to the one gqlgen uses (resolver functions that return channels).

The pubsub engine isn't specified at all by gqlgen, its up to you to bring your own. Use whatever makes sense for your stack.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JulienBreux picture JulienBreux  路  3Comments

imiskolee picture imiskolee  路  3Comments

lynntobing picture lynntobing  路  3Comments

steebchen picture steebchen  路  3Comments

huanghantao picture huanghantao  路  3Comments