IProxyConfigProvider and 404 behavior #1846
-
Our service uses Reverse proxy for some really concurrent workloads and it's great to see the performance benefits we are getting with .NET Core and HTTP2. We are a Service Fabric based service and have implemented our own IProxyConfigProvider which probes SF periodically and also listens to notification changes to influence the Cluster/Route config. Recently, we ran into a live site issue where reverse proxy returned a 404 because it was not able to match the route. On digging deeper, we noticed that the request happened exactly at the same time when the old change token was cancelled. Some questions/discussion points
What would your recommendation be deterministically say if |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Config is updated atomically. If a request arrives for a new route before that route is fully loaded there's no way to distinguish that from requesting a non-existing route. |
Beta Was this translation helpful? Give feedback.
Config is updated atomically. If a request arrives for a new route before that route is fully loaded there's no way to distinguish that from requesting a non-existing route.