graphql-engine/server/src-lib/Hasura/Server
Rakesh Emmadi e32f5a1fb1 sync metadata cache across multiple instances connected to same db (closes #1182) (#1574)
1. Haskel library `pg-client-hs` has been updated to expose a function that helps listen to `postgres` notifications over a `channel` in this [PR](https://github.com/hasura/pg-client-hs/pull/5)
2. The server records an event in a table `hdb_catalog.hdb_cache_update_event` whenever any `/v1/query` (that changes metadata) is requested. A trigger notifies a `cache update` event via `hasura_cache_update` channel
3. The server runs two concurrent threads namely `listener` and `processor`. The `listener` thread listens to events on `hasura_cache_update` channel and pushed into a `Queue`. The `processor` thread fetches events from that `Queue` and processes it. Thus server rebuilds schema cache from database and updates.
2019-03-12 11:16:27 +05:30
..
Auth allow x-hasura- req headers for jwt unauth role, closes #1686 (#1689) 2019-03-05 17:54:47 +05:30
App.hs sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
Auth.hs allow x-hasura- req headers for jwt unauth role, closes #1686 (#1689) 2019-03-05 17:54:47 +05:30
CheckUpdates.hs refactor to remove warnings especially with orphan instances (#1163) 2018-12-13 12:56:15 +05:30
Cors.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Init.hs sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
Logging.hs sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
Middleware.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Query.hs sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
SchemaUpdate.hs sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
Telemetry.hs add functions to server telemetry (#1500) 2019-01-28 22:16:44 +05:30
Utils.hs revert "forward response headers from remote servers (#1664)" 2019-02-28 17:20:56 +05:30
Version.hs add anonymous telemetry (#1401) 2019-01-28 19:25:28 +05:30