graphql-engine/server/src-lib/Hasura/Server
Vamshi Surabhi ce243f5899
multiplexed subscriptions (#1934)
* add types to represent unparsed http gql requests

This will help when we add caching of frequently used ASTs

* query plan caching

* move livequery to execute

* add multiplexed module

* session variable can be customised depending on the context

Previously the value was always "current_setting('hasura.user')"

* get rid of typemap requirement in reusable plan

* subscriptions are multiplexed when possible

* use lazytx for introspection to avoid acquiring a pg connection

* refactor to make execute a completely decoupled module

* don't issue a transaction for a query

* don't use current setting for explained sql

* move postgres related types to a different module

* validate variableValues on postgres before multiplexing subs

* don't user current_setting for queries over ws

* plan_cache is only visible when developer flag is enabled

* introduce 'batch size' when multiplexing subscriptions

* bump stackage to 13.16

* fix schema_stitching test case error code

* store hashes instead of actual responses for subscriptions

* internal api to dump subscriptions state

* remove PlanCache from SchemaCacheRef

* allow live query options to be configured on server startup

* capture metrics for multiplexed subscriptions

* more metrics captured for multiplexed subs

* switch to tvar based hashmap for faster snapshotting

* livequery modules do not expose internal details

* fix typo in live query env vars

* switch to hasura's pg-client-hs
2019-04-17 15:18:41 +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 multiplexed subscriptions (#1934) 2019-04-17 15:18:41 +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 multiplexed subscriptions (#1934) 2019-04-17 15:18:41 +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 multiplexed subscriptions (#1934) 2019-04-17 15:18:41 +05:30
SchemaUpdate.hs multiplexed subscriptions (#1934) 2019-04-17 15:18:41 +05:30
Telemetry.hs multiplexed subscriptions (#1934) 2019-04-17 15:18:41 +05:30
Utils.hs read version from env var during server build time (close #1398) (#1897) 2019-04-11 09:41:48 +05:30
Version.hs read version from env var during server build time (close #1398) (#1897) 2019-04-11 09:41:48 +05:30