Forum Discussion
HTTP_REPONSE event triggering behaviour
Hi, I am using the "HTTP_RESPONSE" event in an iRule, because i need to know the response time (i mean : the time for the request to be served)
Does the " HTTP_RESPONSE " event is triggered when the data content of the response starts to be sent, or doest it wait for the end the transmission of the complete data stream ?
The purpose of the question is that we could have a delta according to the size of the data of the response, if it is triggered when the response starts to be sent. We could for example think that the response time is short, whereas the client still waiting for the complete response of its request.
Thank you in advance for your reply Aurel
4 Replies
- JRahm
Admin
Should fire when the headers have been parsed. What specifically are you wanting to measure?
- Aurel
Cirrus
Well, it seems that "response time" (time for the request to be served or processed) calculation is based on : http_request time - http response_time = response time. I'm wondering if that's always relevant. This is because it could be a time window between the server starts to send the data of the response, and between the end of the data of the response. This for one given request. I hope that looks more clear to you.
- JRahm
Admin
I guess it depends on what you really want to measure. The server's responsiveness or the delivery of all the data? If you want the former, that calculation is fine. If you want the latter, you might be better with http_request time - http_response_release = response time. - Aurel
Cirrus
That's it. The latter will measure the time of the complete delivery of the data from the server side. Will remains then the time for the data to reach the client but that's something else. Thanks for your reply.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com