1
4 Comments

Hasura - developers with experience what are pro & cons?

Hey,
I recently learned about Hasura. As far as I understand it, it is a graphql engine which gives you instant, realtime GraphQL APIs over Postgres. You can build CRUD applications without coding, but if you need to add custom business logic you can set up actions that handles these by communicating with an API you set up.

I imagine that PostgreSQL + Hasura with serverless functions or go microservices gives a dream team. And all the boilerplate code to just make a CRUD application work is gone.

So I haven't work with Hasura yet, but this all sound too good to be true. So developers with experience what are the pro and cons?

on December 1, 2020
  1. 1

    This thread is relevant since I'm building Nhost (https://nhost.io) and we try to provide exactly that.

    It's as easy as creating a project and you get:

    • Postgres
    • Hasura
    • Authentication
    • Storage
    • Serverless functions

    All services are highly integrated with each other for maximum support.

    The developer velocity is unlike anything I ever tried (php/mysql, MeteorJS, Firebase, Custom backend with React Redux)

    As an example:
    Ben Awad built a reddit clone in 14 hours (https://www.youtube.com/watch?v=I6ypD7qv3Z8)
    I did the same with Nhost in 2.5 hours: https://www.youtube.com/watch?v=A7rAGsN6WYc

    Let me know if you got any specific questions. I've been using Hasura since 2018 :)

    1. 1

      nhost looks really interesting, is it also possible to add serverless functions?

      I have two questions regarding Hasura:

      • are the postgresql migrations handled only via Hasura and if yes does this means I don't have any migrations files in a git repo -> how do I handle different versions e.g. if I want to reproduce a specific commit/version on another system
      • Hasura looks amazing and I will definitely check it out, but what are the cons?

      Edit: just saw it's part of your beta, nice job +1

      1. 1

        Yea we just released serverless functions in beta together with our CLI + Github integration TODAY :D.

        I published a video about it here: https://youtu.be/Qt03T2MBDXQ

        • Postgres migrations are handled by Hasura via the Hasura console. I show how in the video above. You get specific migration versions that you can down/up migrate from/to.

        • Hasura is very flexible. There is no major downside as I see it. You can always pass through Hasura and write custom code using either Hasura Actions or Event triggers. I'd say one downside with Hasura is that it's complicated to get started with together with authentication, database, storage etc. But that's why Nhost exists :D

        1. 2

          Thanks, nice video. NHost looks really promising, I also really appreciate the no vendor lock-in because this is one thing I really care about.