jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Overhead of AsyncResponse

From: Markus KARG <markus_at_headcrashing.eu>
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 [mailto:jan.algermissen_at_nordsc.com]
> Sent: Mittwoch, 7. November 2012 17:51
> To: jsr339-experts_at_jax-rs-spec.java.net
> 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
>