News for hackers. Stuff that matters.
Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by devit on Monday October 08, 2018 @10:37AM (#18167829)
Is this Hasura GraphQL Engine open source? What's the business model? Are there any features missing if you don't pay anything?

How does it get notified by PostgreSQL when the result of a query changes, since AFAIK PostgreSQL has no such built-in functionality? (it works if other apps change the database, right?)

Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by DataInSolutions on Monday October 08, 2018 @11:45AM (#18168480)
That's a great question. I've been considering Hasura for an upcoming app and have been prototyping things with great success. I hadn't really considered how it implements the subscriptions, and had assumed it worked only by observing mutations that came in through GraphQL. However that doesn't really explain how it works with subscriptions against a view.

I dug into the code a bit and think it all happens here: https://github.com/hasura/graphql-engine/blob/master/server/... Which if my fledgling Haskell is correct digs into the subscription to find the sources and then adds a trigger on them.

On a related note, I've been very impressed with the Hasura GraphQL server. In particular how the authentication works with a JWT token and it's access restrictions seem pretty well thought out and flexible.

I have not yet used it in production but :fingers-crossed: it performs as well there as it has in testing and development

Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by spaceheeder on Monday October 08, 2018 @10:45AM (#18167916)
Hasura's homepage[0] links to their Github[1], so it's definitely open source. The "Enterprise" section of the website seems a bit lite and all the pricing information is on the "Support" tab, so the business model seems to be support-based. I only skimmed so I can't speak to what missing features there might be if you roll-your-own.

[0]: https://hasura.io/

[1]: https://github.com/hasura/graphql-engine

Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by zawerf on Monday October 08, 2018 @03:01PM (#18170279)
> AFAIK PostgreSQL has no such built-in functionality

Postgres actually has basic pubsub via "LISTEN" and "NOTIFY". I was planning on trying out rethinkdb as a real-time database but found that approach instead described in this blog post:

http://blog.sagemath.com/2017/02/09/rethinkdb-vs-postgres.ht...

which also had a huge comment thread with related links(800+ upvotes):

https://news.ycombinator.com/item?id=13610146