I am looking to achieve something like this:

To have one input json request, which will encapsulate what to do than:

- split that input into 3 or more sub-requests depending on json, like put in database
- an agent will wake up since he is processing one part of that request, like putting data to some server
- another agent will woke up since the request is for him too, he will like upload data to some other server

I don't know it really well, but it seems that could be achieved with JavaBean + JavaServlet + Database as a layer between, or even Django and Celery.

Main goal is to with one request serve parts independently, so like when processing request when waiting for the server in one part of request will not ommiting other part of request which will be processed without any lag.