-
Couldn't load subscription status.
- Fork 3
Description
I have a use case and DON'T know if the new Hive Router supports this yet.
I couldn't immediately find anything in the docs.
The use case is "simple".
I have one router and 2 instances of the same service. One instance is in the US and the other is in the EU.
I want to have the router dynamically route to either the US instance or the EU instance. In my case it would be off of either a REGION header OR a JWT claim in the JWT token.
I achieved this with the Apollo router using Rhai plugin to overwrite the subgraph request URL based on the REGION header.
Is this possible with the new Hive Router?
I know I could instantiate a new router in each region as an alternative solution, but currently that solution path is not possible for me.
Any comments are appreciated. Thank you.