Easiest way is to maintain delay equal to timeout to be specified at level P, Consolidate all responses till the time out to send the response, neglecting the late responses.
I prefer this since there wont be any additional communication overhead
I would suggest to go with Node.js implementation for the same. Here are the sequence of steps that would be useful :
-> Get the request in Node.js and validate
-> Respond back to the user the result of validation, success or failure ( with reason )
-> If the validation is successful, send the request back D1-D5 and aggregate all in the node code itself.
Using node will give you very good control over how you want to deal with the code and how to handle for errors for each of the system. Being non-blocking also gives an edge over performance vs doing the same in JS.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |