I need to implement a Java REST Web Service (we use Jersey framework) which can basically either
a. block waiting for some event (or poll for the event), before returning the response b. provide some kind of aysnc behaviour to notify the client when the request has been processed.
I was thinking of returning a transationID, and having a /status endpoint which the client should poll to determine if the request was processed and get a specific result.
Any ideas?