Web Connection
Complex requests and rest API service
Gravatar is a globally recognized avatar based on your email address. Complex requests and rest API service
  Michele
  All
  Aug 9, 2018 @ 07:12am

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 ?

Gravatar is a globally recognized avatar based on your email address. re: Complex requests and rest API service
  Rick Strahl
  Michele
  Aug 9, 2018 @ 12:22pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Complex requests and rest API service
  Michele
  Rick Strahl
  Aug 9, 2018 @ 02:31pm

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?

Gravatar is a globally recognized avatar based on your email address. re: Complex requests and rest API service
  Rick Strahl
  Michele
  Aug 13, 2018 @ 10:04am

My last response answers your questions. You need to run multiple instances of Web Connection...

+++ Rick ---

© 1996-2024