Category: retarder
-
Retarder–Fixed and Random strategy and Tests-part 4
Now I want to make a second strategy : the random strategy between a min and a max value. This is only to minimize the impact on the extension that uses the Random – it is good to be hidden inside. For Random Strategy it is better to re-use the Fixed Strategy – and this…
-
Retarder – Making a strategy to wait–part 3
Now I want to make the await configurable. To remind,first is just a random delay ( or static delay). The others are Delay execution of some endpoints,based on how frequent are their uses Delay execution based on headers / query string / routes Delay execution based on client IP Delay execution based on the response…
-
Retarder- reorganizing the project to easy use- part 2
Now it is the moment to start reorganizing the project to be easy to use by other programmers. I want,instead of registering the services manually,to can use .AddRetarder and .UseRetarder. So I create a new project,NetCoreRetarderCore.csproj,and move there the RetarderMiddleware . The only new thing is the extension class RetarderExtensions [code lang=”csharp”] using Microsoft.AspNetCore.Builder;…
-
Retarder- idea and POC–part 1
I was thinking about a new project in .NET Core – Retarder ( Delayer seems to be better,but I digress ). What about a middleware in .NET Core,that delays execution of any request with 1 second ( or something between 1 millisecond and 1 second )? That way,if someone wants to improve the project,just remove…