Forum Discussion

Aurel's avatar
Aurel
Icon for Cirrus rankCirrus
Sep 04, 2013

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

  • Should fire when the headers have been parsed. What specifically are you wanting to measure?

     

  • 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's avatar
      JRahm
      Icon for Admin rankAdmin
      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's avatar
      Aurel
      Icon for Cirrus rankCirrus
      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.