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

From: Jan Algermissen <>
Date: Wed, 7 Nov 2012 17:50:56 +0100


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?