<p><a href="https://hasura.io" rel="nofollow noreferrer">Hasura</a> is a cloud service where you can deploy <code>cardano-graphql</code> in a very easy and straight forward way, since it is oriented to <code>graphql</code> APIs.</p>
<p>So no, you don't need both.</p>
<p><code>cardano-graphql</code> is very expensive to use in matter of resources so depending on the type of queries you want to do to the blockchain, maybe you need a service like <a href="https://www.blockfrost.io/" rel="nofollow noreferrer">Blockfrost</a>.</p>

CC BY-SA 4.0
2023-03-28T12:40:35.673Z
2023-11-15T14:47:57.800Z
2023-11-15T14:47:57.800Z
Falcon Stakepool
<p>I'm in the process of writing some software that will connect to the Cardano networking such as signing transactions &amp; querying historical chain data. During my search for a solution I came across Hasura, which I planned to hook up postgres (using cardano-db-sync as well) to.</p>
<p>Later down the road I found <code>Cardano-graphql</code> in the inputoutput github account &amp; noticed in the reference docker file <a href="https://github.com/input-output-hk/cardano-graphql/blob/610424b95053078c20be121d823ef0dd035711f0/docker-compose.yml#L76" rel="nofollow noreferrer">here</a> that the developers have also chosen to include Hasrua which is also a graphql api.</p>
<p>What is the purpose of this? Do I need both? What is the benifit of using <code>cardano-graphql</code> &amp; <code>hasura</code> as shown in the <code>docker-compose.yml</code> file.</p>

<wallet><cardano-node><cardano-graphql>
What is the purpose of use using Cardano-graphql & hasura in the same stack?
# What is the purpose of use using Cardano-graphql & hasura in the same stack?

(Asked by: username_0 on 2022-06-30)

I'm in the process of writing some software that will connect to the Cardano networking such as signing transactions & querying historical chain data. During my search for a solution I came across Hasura, which I planned to hook up postgres (using cardano-db-sync as well) to.

Later down the road I found `Cardano-graphql` in the inputoutput github account & noticed in the reference docker file [here](https://github.com/input-output-hk/cardano-graphql/blob/610424b95053078c20be121d823ef0dd035711f0/docker-compose.yml#L76) that the developers have also chosen to include Hasrua which is also a graphql api.

What is the purpose of this? Do I need both? What is the benifit of using `cardano-graphql` & `hasura` as shown in the `docker-compose.yml` file.

**Tags:** wallet, cardano-node, cardano-graphql

---

## 1 answers

### Answer by username_1 on 2023-03-28. Score: 1 | Accepted answer

[Hasura](https://hasura.io) is a cloud service where you can deploy `cardano-graphql` in a very easy and straight forward way, since it is oriented to `graphql` APIs.

So no, you don't need both.

`cardano-graphql` is very expensive to use in matter of resources so depending on the type of queries you want to do to the blockchain, maybe you need a service like [Blockfrost](https://www.blockfrost.io/).


---

