Use GQL schema stitching to proxy queries to multiple watchers (#18)

* Use apollo federation router to proxy gql queries to multiple watchers

* Use graphql stitch to proxy requests to all watchers

* Load watcher endpoints and prefixes from json

* Transpile typescript and setup lint

* Change conflicting metrics ports

* Add comments
This commit is contained in:
2023-05-02 18:14:30 +05:30
committed by GitHub
parent a44de433b7
commit 86fe1c03af
19 changed files with 1639 additions and 51 deletions
@@ -1,6 +1,6 @@
[server]
host = "127.0.0.1"
port = 3009
port = 3007
kind = "lazy"
# Checkpointing state.
@@ -32,9 +32,9 @@
[metrics]
host = "127.0.0.1"
port = 9000
port = 9012
[metrics.gql]
port = 9001
port = 9013
[database]
type = "postgres"
@@ -48,8 +48,8 @@
[upstream]
[upstream.ethServer]
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
rpcProviderEndpoint = "http://127.0.0.1:8081"
gqlApiEndpoint = "http://127.0.0.1:8083/graphql"
rpcProviderEndpoint = "http://127.0.0.1:8082"
[upstream.cache]
name = "requests"