toraritte / knowledge-gaps

All the stuff I don't know, but would like to (or should)
0 stars 0 forks source link

GraphQL subscriptions and/or PostgreSQL LISTEN/NOTIFY ? #26

Open toraritte opened 6 years ago

toraritte commented 6 years ago

https://blog.lelonek.me/listen-and-notify-postgresql-commands-in-elixir-187c49597851 https://www.howtographql.com/basics/2-core-concepts/

As I understand it right now, GraphQL is basically a proxy standing in front of the web server and translating queries. Subscriptions are possible because, being a central service, all request go through it therefore it has context.

Is GraphQL subscriptions enough or could it be complemented with PostgreSQL LISTEN/NOTIFY features? What if the service is distributed? How to coordinate the multiple nodes then?

toraritte commented 6 years ago

https://github.com/toraritte/aquir/issues/2

Confused this issue with another one in the above commit, so only the first comments are relevant. I think.