# S7 E20: Automating GraphQL APIs on Your Data with Tanmai Gopal of Hasura

Published: 2023-01-24
Duration: 1675s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/6343e592-ce3c-4f27-9264-0b6f43f5e2e7/stream.mp3

## Key Takeaways
- Two Jobs Inside Every API: Tanmai's team reduced API work to data mapping and transformation, plus domain-specific authorization. Hasura has developers declare models and security rules, then automates the API.
- A Compiler and Web Server: Hasura was written in Haskell because it had to compile domain configuration into data source queries while serving low-latency, highly concurrent traffic. Configuration changes apply at runtime, with no rebuild.
- Existing Data Over Greenfield: Hasura chose not to host the database, focusing on APIs over data companies already had. The team accepted losing some users to reach mission-critical production use faster.
- Performance Earns Behavior Change: Tanmai said automation alone wasn't enough; in production it had to beat hand-built work by experts. He claims Hasura APIs run 5x to 100x faster than hand-built ones.
- Cutting to the Data API: At launch time, the team saw that other pieces of its platform, though loved by developers, were getting in the way. Within a week it killed them and moved forward with only the data API.

**Instant GraphQL APIs: Tanmai Gopal of Hasura on generating secure, real-time APIs from Postgres and other databases without writing backend code.**

———

Tanmai Gopal studied computer science, and specialize in computer vision and machine learning. He found himself frustrated with the pace at which his research work was getting exposure, so he expedited his jump into industry, which help solidify the foundation for his current venture. Outside of tech, he reads a lot, hikes and travels. For the readers, he highly recommends N.K. Jemisin, Charlie Jane-Anders and Namoi Novak.

Tanmai and his colleagues became outright frustrated with building API's just to build products. He began wondering what it would take to not do that work anymore, and after breaking down the process to its simplest form - data mapping and security authorization - he had a bead on how to do that.

This is the creation story of [Hasura](https://hasura.io/).

Sponsors

- [Airbyte](http://airbyte.com/codestory)
- [Doppler](http://doppler.com/codestory)
- [Host.io](https://host.io/)
- [IPInfo](https://ipinfo.io/)
- [mabl](https://www.mabl.com/codestory)
- [SupportZebra](https://supportzebra.com/)

Links

- Website: [https://hasura.io/](https://hasura.io/)
- LinkedIn: [https://www.linkedin.com/in/tanmaig/](https://www.linkedin.com/in/tanmaig/)

  

Timestamps

00:00 – Intro

05:23 – Building the Hasura MVP

07:38 – Product Maturation and Roadmap

11:50 – Building the Hasura Team

14:31 – Scaling Hasura

16:45 – Proudest Moment

18:32 – Mistakes and Lessons Learned

21:00 – The Future of Hasura

22:27 – Tanmai's Influences

23:57 – What He'd Do Differently

25:47 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Tanmai Gopal from Hasura: [https://www.codestory.co/episodes/s7-e20-engineering-a-1b-graphql-data-federation-engine-real-time-db-queries-with-tanmai-gopal-of-hasura/](https://www.codestory.co/episodes/s7-e20-engineering-a-1b-graphql-data-federation-engine-real-time-db-queries-with-tanmai-gopal-of-hasura/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 5:23 — Building the Hasura MVP
- 7:38 — Product Maturation and Roadmap
- 11:50 — Building the Hasura Team
- 14:31 — Scaling Hasura
- 16:45 — Proudest Moment
- 18:32 — Mistakes and Lessons Learned
- 21:00 — The Future of Hasura
- 22:27 — Tanmai's Influences
- 23:57 — What He'd Do Differently
- 25:47 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** How does the Hasura GraphQL Engine automate API development? — **A:** Tanmai Gopal explained that developers define their data models and security rules, and Hasura provides the API from that configuration. His team started from the insight that in any API service, "there's essentially just two pieces of work that you're doing" [04:09]: mapping and transformation, and security and authorization.
- **Q:** Why was Hasura built in Haskell? — **A:** Tanmai said the system had to translate a description of a domain into upstream queries while also serving requests with low latency and high concurrency. As he put it, "what we were essentially building was a compiler that was simultaneously a web server" [06:02]. He also said the choice let a small team write robust code and move quickly.
- **Q:** Does Hasura host your database or work with existing data? — **A:** Tanmai said the team made an opinionated call not to host the database, so that companies could use data they already had. In his words, "It's a data API for your data, for existing data, right?" [10:26].
- **Q:** Why did performance matter so much for Hasura's adoption? — **A:** Tanmai said Hasura asks developers to change behavior, which is hard, so saving time was not enough on its own. He said that "in production, when you're running this, it needs to be 10x better than what an expert would have built by hand" [15:31]. He credits that focus with winning early mission-critical adoption.
- **Q:** What would Tanmai Gopal do differently if he started Hasura again? — **A:** Tanmai would treat go-to-market as measurable and hypothesis-driven from the start, while still letting early product work be instinct-driven. He said "GTM is science from day zero" [24:35], and believes learning this earlier would have put the company where it is today two years sooner.
