不同机器上的一个服务,第二个应用程序部署的同一台机器上的服务 [英] one service on differnt machine and second on same machine where application deployed

查看:69
本文介绍了不同机器上的一个服务,第二个应用程序部署的同一台机器上的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在一次面试中,面试官设定了一个场景并问我差异,但我无法回答这个问题,所以我问的是这里有问题。



假设我有两个(网络或wcf)服务。一个服务在另一个服务器上,第二个服务在我的Web应用程序部署的同一个服务器上并且消耗这两个服务他问我另一个服务器上的一个服务和同一个服务器上的一个服务有什么不同,那就是差异?



请帮助我解决这个问题,即哪个服务在应用程序所在的同一服务器上有所不同,第二个是在其他服务器和应用程序上service。

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.

推荐答案

i)显而易见的是,调用不同服务器所消耗的时间将超过同一个。

ii)您将无法对跨域方案进行ajax调用。
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.


这篇关于不同机器上的一个服务,第二个应用程序部署的同一台机器上的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆