i want to publish two instance of ocelot at different servers but the under the same domain
and if the user called my domain/{upstreamRoute}
one of ocelot instances should achieve the request but also the two instances should achieve the rate limit of any one of them called
for example
"Routes": [
{
"DownstreamPathTemplate": "/product",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "products.com",
"Port": 44322
}
],
"UpstreamPathTemplate": "/api/product",
"UpstreamHttpMethod": [ "POST" ],
"RouteIsCaseSensitive": true,
"RateLimitOptions": {
"ClientWhitelist": [],
"EnableRateLimiting": true,
"Period": "60s",
"PeriodTimespan": 60,
"Limit": 1
}
}
]
"GlobalConfiguration": {
"BaseUrl": "https://api.products",
"RateLimitOptions": {
"DisableRateLimitHeaders": false,
"QuotaExceededMessage": "Too Many Requests At Short Duration!",
"HttpStatusCode": 429
}
}
what should happen is
if there is more than one request reach my ocelot domain during current 60s
one of ocelot instance should achieve the request and also at the same time the two ocelot instances should know that the remaining allowed request is 0
Expected Behavior / New Feature
i want to publish two instance of ocelot at different servers but the under the same domain and if the user called my domain/{upstreamRoute} one of ocelot instances should achieve the request but also the two instances should achieve the rate limit of any one of them called for example "Routes": [ { "DownstreamPathTemplate": "/product", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host": "products.com", "Port": 44322 } ], "UpstreamPathTemplate": "/api/product", "UpstreamHttpMethod": [ "POST" ], "RouteIsCaseSensitive": true, "RateLimitOptions": { "ClientWhitelist": [], "EnableRateLimiting": true, "Period": "60s", "PeriodTimespan": 60, "Limit": 1 } } ] "GlobalConfiguration": { "BaseUrl": "https://api.products", "RateLimitOptions": { "DisableRateLimitHeaders": false, "QuotaExceededMessage": "Too Many Requests At Short Duration!", "HttpStatusCode": 429 } }
what should happen is