Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can’t ever go back to REST from something like Hasura. It’s just too easy, too fast, and too flexible.

Some of the comments about performance and security are obviously from people who haven’t taken the time to do a proper deep dive. I’m sure there were similar arguments against REST from the SOAP crowd.



Same but Postgraphile, the whole ecosystem of migrate and worker too. Allowed me to iterate so damn quick.


Won't such an approach lead to tight coupling between database and API?


You're right if you're directly exposing your Databse-driven-GraphQL API to the client. If you use GraphQL to power your REST APIs this is less of an issue. On the other hand, tightly coupling your database to a client doesn't always have to be a bad thing. If you outscale a single Postgres Database with Hasura you can add read replicas. If that still doesn't work you can add Yugabyte to the mix to scale further.


It can do, however you can also use views, custom query functions for whole queries or for specific columns, custom mutation functions, or simply extend the schema at the Node application level to do a lot more than just the structure of the DB tables. For me it just means I don't have to write any code other than the schema to simply expose CRUD actions with filter and sort and such things - the escape hatches have been perfectly adequate for more complex behaviour.


I like hasura too. But honestly absolutely the same result could be achieved with REST too.

GraphQL is not that different from REST.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: