Set up Hasura GraphQL engine with YugabyteDB distributed SQL

Vladimir Novick
InstructorVladimir Novick
Share this video with your friends

Social Share Links

Send Tweet

In this lesson we will see how you can run Hasura GraphQL engine on top of YugabyteDB Distributed SQL

YugabyteDB is an open source, high-performance distributed SQL database for powering global, internet-scale applications.YugabyteDB is also a cloud-native database, so it can be deployed across both public and private clouds, including Kubernetes environments. In regards to serving as a backend for microservices, YugabyteDB brings together three must-haves: a PostgreSQL-compatible SQL API, low-latency read performance, and globally distributed write scalability. YugabyteDB with its global data distribution brings data close to users for multi-region and multi-cloud deployments.

Vladimir Novick: [0:00] To get started, Yugabyte bin Hasura, we'll first create local Yugabyte cluster with a replication factor of three. We'll provide specific tserver flags, specify that we did want to suppress unsupported errors.

[0:27] Now that Hasura's on top of Yugabyte, I can use the docker run and specify port 8080. I also want to specify variance variable Hasura graphQL, database URL so I can point it to my postgres database.

[1:00] I will use both 5433 and Yugabyte database. I also need to specify another environment variable called Hasura graphQL, enable console. If I won't specify that, I won't be able to access the console locally.

[1:26] Now I want to specify the docker image that I wanted to use for this container so it will be Hasura/graphQL-engine:v1.2.1 or it can be latest image. Now if I go to docker ps, I will see that I have the engine is running.

[1:51] It started so I can now access to localhost:8080 and see it there. Let's go to localhost:8080 and I will see our Hasura Console is loaded.