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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user