Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

How to handle requests sequentially for a given item

$
0
0
I need to only execute one route request at a time for a given item (ie
object processed by the route). So, if the second request with same item id
comes in, it waits until the first one completes before continuing with
processing.

I understand that I can use onCompletion and thread libraries to implement
this, but was wondering if there is a more elegant solution.

Viewing all articles
Browse latest Browse all 5648

Trending Articles