performance - Do calling one web api method by more users will slow down the server? -


do calling 1 web api method more users slow down server ? have 2 functionality. , can combine 1 using single parameter. have doubt whether slow down when join method number of calls 1 web api method more. please on this.

am asking same web server , comparing performance between these 2 scenarios.

**case 1:**  commonapi(string param) {   if(param)     x;   else      y  }  **case 2:**     api1()      {       x;      }      api2()      {       y;       } 

which case have more performance in case 1, single api method being called both functionalities. , in case 2, separate calls have been done. traffic method halved. difference

do calling 1 web api method more users slow down server?

yes

the more simultaneous calls server slower get, how , extent unknown. build system cleanly 1 eye on speed once it's built load test , optimize based on results.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -