You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several of our microservices have a command line argument telling them an exchange address to support. The ingest service has a hard-coded list of supported exchanges.
These all predate the Exchanges table in the database, so that was the only way to find out about available exchanges. Now that we have that information in the database, microservices should be able to get it from there.
I think the easy way to handle it would be for the microservices to use their RPC connections to find out what network they're attached to, query the database for all exchanges pertaining to that network, then start goroutines for each supported exchange. That would enable us to support multiple exchanges on a single network without having to run multiple instances of each service.
I think the only service that cares about an exchange but doesn't have an RPC connection is the ingest service, which would want to accept all supported exchanges regardless of network anyway.
Several of our microservices have a command line argument telling them an exchange address to support. The ingest service has a hard-coded list of supported exchanges.
These all predate the Exchanges table in the database, so that was the only way to find out about available exchanges. Now that we have that information in the database, microservices should be able to get it from there.
I think the easy way to handle it would be for the microservices to use their RPC connections to find out what network they're attached to, query the database for all exchanges pertaining to that network, then start goroutines for each supported exchange. That would enable us to support multiple exchanges on a single network without having to run multiple instances of each service.
I think the only service that cares about an exchange but doesn't have an RPC connection is the ingest service, which would want to accept all supported exchanges regardless of network anyway.