-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for simulating timeout of a request #21
Comments
How? failure percentage on endpoints / requests? |
Failure percentages could be configured as a responseTransformation maybe... I would also expect it to be useful in scenarios. Where you follow a path and want a certain request to timeout. |
Is this feature planned already? We need it for our load testing setup. |
There is delay functionality included, which will delay a response from Nocca to the calling client. If your client has a timeout of 30 seconds, you could set a delay of 30+ seconds on the Nocca request causing a timeout in your app. Would that be an option? |
We can use the delay option. However, as I understand it, it gives all responses the same delay. I would like to set a delay for each url or url pattern that is cached. Is that possible? Our app talks to a collection of api's where one api has an average response of 1 second and another api of 7 seconds. |
Do you use multiple endpoints in the nocca config? You can set the delay config for each endpoint. |
Yes, but within one endpoint we also have multiple urls that we cache. Jasper Kaizer On Tue, Aug 18, 2015 at 9:44 PM, KrekkieD [email protected] wrote:
|
It may be better to split it up to multiple endpoints, but hard to say without knowing in more detail. Nonetheless the issue may be valid. Any ideas on how you would want to be able to configure this? I suppose those urls would need to be identifiable and groupable by meeting some condition, so the delay config could be added to any request on that endpoint that fulfills that condition. But what would be a logical way to set that up? RequestKey generation is all the same for each incoming request on a specific endpoint. This is also why it may be better to split the single endpoint into multiple endpoints. Additional question; in your case, how do you (as a person) determine the delay value of an incoming request? Is it part of the url path? Or query params? Or something else? |
No description provided.
The text was updated successfully, but these errors were encountered: