-
i played the simple version of proxy, it works well... so i wanted to do some customize to fulfill my own requirements. what i need are:
any pointer what is the easist way to make it with YARD lib would be really apperiacted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The built-in health checks don't treat slow destinations (high latency) as problematic. You could look into implementing a custom health check policy. Either active or passive depending on your needs.
Support for retries isn't built-in yet, but you can look at the discussion in #56 for how to go about implementing something like that.
See https://microsoft.github.io/reverse-proxy/articles/transforms.html E.g. .AddTransforms(context =>
{
context.AddResponseTransform(context =>
{
context.HttpContext.Response.Headers["X-Custom-Header"] = context.HttpContext.GetReverseProxyFeature().ProxiedDestination?.DestinationId;
return default;
});
}); |
Beta Was this translation helpful? Give feedback.
The built-in health checks don't treat slow destinations (high latency) as problematic. You could look into implementing a custom health check policy. Either active or passive depending on your needs.
See https://microsoft.github.io/reverse-proxy/articles/dests-health-checks.html
S…