From f78518ab1731b7e7d529935097313bf35b88c8bb Mon Sep 17 00:00:00 2001 From: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> Date: Tue, 7 Jan 2020 11:48:25 +0530 Subject: [PATCH] add table of contents to subscriptions architecture doc (#3521) --- architecture/live-queries.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/architecture/live-queries.md b/architecture/live-queries.md index 689b1c6f..c92ef5f4 100644 --- a/architecture/live-queries.md +++ b/architecture/live-queries.md @@ -6,6 +6,16 @@ Hasura allows 'live queries' for clients (over GraphQL subscriptions). For examp This document describes Hasura's architecture which lets you scale to handle a million active live queries. +##### Table of Contents +- [TL;DR](#tldr) +- [GraphQL and subscriptions](#graphql-and-subscriptions) +- [Implementing GraphQL live-queries](#implementing-graphql-live-queries) + - [Refetching results for a GraphQL query](#refetching-results-for-a-graphql-query) + - [Hasura approach](#hasura-approach) +- [Testing](#testing) +- [Benefits of this approach](#benefits-of-this-approach) + + ## TL;DR: **The setup:** Each client (a web/mobile app) subscribes to data or a live-result with an auth token. The data is in Postgres. 1 million rows are updated in Postgres every second (ensuring a new result pushed per client). Hasura is the GraphQL API provider (with authorization).