Skip to content
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

Open
jhkuperus opened this issue Mar 6, 2015 · 8 comments
Open

add support for simulating timeout of a request #21

jhkuperus opened this issue Mar 6, 2015 · 8 comments

Comments

@jhkuperus
Copy link
Collaborator

No description provided.

@KrekkieD
Copy link
Owner

KrekkieD commented Mar 6, 2015

How? failure percentage on endpoints / requests?

@jhkuperus
Copy link
Collaborator Author

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.

@qamil
Copy link

qamil commented Jul 9, 2015

Is this feature planned already? We need it for our load testing setup.
Could you elaborate a bit on what needs to be done to implement this? Maybe we can collaborate on implementing it, depending on how much work it is.

@KrekkieD
Copy link
Owner

KrekkieD commented Jul 9, 2015

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?

@jkaizer
Copy link

jkaizer commented Aug 18, 2015

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.

@KrekkieD
Copy link
Owner

Do you use multiple endpoints in the nocca config? You can set the delay config for each endpoint.

@jkaizer
Copy link

jkaizer commented Aug 18, 2015

Yes, but within one endpoint we also have multiple urls that we cache.

Jasper Kaizer
Q42 | tel +31 70 44523 42 | mob +31 6 39 65 52 76 |
http://q42.nl | @Q42

On Tue, Aug 18, 2015 at 9:44 PM, KrekkieD [email protected] wrote:

Do you use multiple endpoints in the nocca config? You can set the delay
config for each endpoint.


Reply to this email directly or view it on GitHub
#21 (comment).

@KrekkieD
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants