Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.12/5 (3 votes)
Hi All,

In one of interview the interviewer set a scenario and ask me the difference but i was unable to answer that question, so i am asking same question here.

Let say I Have two (web or wcf) services. one service is on another server and second service is on the same server where my web application is deployed and consuming both services he ask me that what is the difference of one service on another server and one service on same server, is that thing make any difference ?

Please help me out on this query that what make the difference of one service on same server where application is there and second is on other server and application consuming both service.
Posted
Updated 10-Jul-14 20:31pm
v2
Comments
Sergey Alexandrovich Kryukov 4-Jul-14 3:30am    
The difference is: one service is hosted on the same host as the Web application and another one on the different host. :-)

Don't you feel the idiocy of this interview question? Again... What is mean by "difference"? All such questions are incorrect.

—SA

1 solution

i) obvious thing is the time consumed to make the call to a different server will be more than same one.
ii) You will not be able to make ajax call to cross domain scenario.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900