Hi,
 
I am currently trying to design a custom sampler upon an asynchronous
request-response API and I haven't found enough detailed discussion on
that topic.
I basically want to measure the time from sending the request to its
received response.
 
As far as I understand, there may be a need for even-driven sampler in
the future but what's the best way to do it today?
 
I have first tried to add subresults on the SampleResult of each request
when receiving responses (in another thread) without success.
Tree of results were not correctly updated and I haven't found the way
to publish them as new SampleResult instead of subresult.
 
So I'm thinking a bit more now :-) ... about separating completely the
request sampler from the response sampler.
 
I would typically have 2 thread groups, one for request, the other for
response.
The request sampler would send its request, not waiting for anything.
The response sampler would listen for a response until some is received
(using a shared lock with the listener initiated in request sampler),
then return it as SampleResult.
In theory, I would obtain on one side, all my request data, and on the
other side, my response data, that I would be able to correlate with my
request...and then proceed naturally with all JMeter powerful stuff on
both groups.
 
Before starting, I'd like to know if this seems possible to you.
Any advice, or another way to implement?
 
Thanks,
Fabrice
 

Reply via email to