Mental Model for Updating YARP Dynamically #2182
-
I having a pretty good amount of success with YARP, and using the I'm currently using YARP in a manner where I define the routes in my appsettings file (included below). I then later want to use a service discovery mechanism to find matching destinations. I query my service discovery, I find some instances, then I create the Cluster with CusterId With that kind of context in mind, I'm curious about a broader scoped question about how to best use YARP. I'm starting to think that once you go "dynamic" you really want the whole thing to be dynamic. Specifically meaning that if I'm using In-Memory I should probably do all of it using the InMemory provider to avoid this kind of collision. Any ways, Thank you. appsettings.yaml
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Merging individual routes/clusters is too complex, we didn't want to try it.
That's certainly the case for any given entity. E.g. if a cluster is discovered dynamically then you should never try to define that same cluster from some other source like config. Having multiple sources is fine so long as they don't overlap. |
Beta Was this translation helpful? Give feedback.
Merging individual routes/clusters is too complex, we didn't want to try it.
That's certainly the case for any given entity. E.g. if a cluster is discovered dynamically then you should never try to define that same cluster from some other source like config. Having multiple sources is fine so long as they don't overlap.