GraphQL and time-series data: Using TimescaleDB with Hasura for real-time data analysis
Read the tutorial here: Using TimescaleDB with Hasura GraphQL
As some background, Hasura (GitHub) makes developer tools that simplify and accelerate product development. Its GraphQL engine gives users instant, high performance GraphQL for any Postgres app without having to write any backend code. GraphQL was originally developed by Facebook, and released publicly in 2015 (GitHub).
From the website:
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
As we’ve mentioned before, if a technology works with Postgres, it works with TimescaleDB. And since the Hasura GraphQL engine gives you GraphQL APIs instantly on any Postgres database, it operates seamlessly with TimescaleDB.
Why should you check out Hasura’s tutorial? It covers how to:
- Create a DigitalOcean Droplet and install Docker and Docker Compose
- Run Hasura with TimescaleDB using Docker Compose
- Learn about hypertables
- Run GraphQL queries on hypertables
- Run GraphQL subscriptions and get real-time data
The result? By using TimescaleDB and Hasura GraphQL engine together, users are able to query a Postgres database for real-time data using GraphQL APIs in under 10 minutes! And this makes building powerful, real-time dashboard extremely simple.