WHat about receiving in my rest api service complex requests that need time to be satisfied ? Normally rest service responds to a request at a time and if i receive a complex request i stop all requests that are arriving after..... How can i do to not stop the work ? I can run multiple instance of my app (as com mode). Is this the solution ?
Not sure I understand your question. What are you asking exactly? How to scale?
Multiple instances is one way. YOu should always be running at least 2 instances of your servers or more. Typically 2 per processor is a good place to start for instance counts.
There's also single Instance mode (instancing=single
) to fire off a single COM server that runs outside of the Web Connection COM pool and thus won't tie up the COM pool (although this can be a problem if too many get fired as the CPU load becomes a problem).
+++ Rick ---
I try to better explain the problem.. I have a rest function that makes a complex elaboration.. When I call from my app this function my rest service begin to work... In the meanwhile if I receive other requests from other users these can't be satisfied up to when the first request has been completed... Is it so? If yes, how can I bypass these situations?