[jax-rs-spec users] [jsr339-experts] Re: Overhead of AsyncResponse

From: Markus KARG <>
Date: Wed, 7 Nov 2012 19:08:36 +0100

I think only the vendors can tell what the actual impact is, but it would be
interesting if you could simply measure it and post the results here. :-)

> -----Original Message-----
> From: Jan Algermissen []
> Sent: Mittwoch, 7. November 2012 17:51
> To:
> Subject: [jsr339-experts] Overhead of AsyncResponse
> Hi,
> do you have an estimate what the overhead of using an AsyncResponse is,
> if you send back a sync. response for the majority of cases?
> Use Case:
> Implement a resource method that retains the opportunity for handling a
> request asynchronously but decides thatonly when the method is actually
> invoked. IOW, when the method determines that a synchronous response is
> fine, it simply invokes the async response right away.
> Does that significanly affect performance or resource usage?
> Jan