您的位置:首页 > 其它

Note--three ways to host a service

2011-06-06 23:58 99 查看
there are three ways available to host a service, here is just a summary, no more theroies and no demos.

Self-hosting

self-hosting is a technique that the developer is responsible for managing the service both in lunching the service and managing the life cycle of the serive, we can host the service in any other windows applications, auch as winform application, windows NT service.

advantage: we can use any other bindings(protocols both http and tcp)

disadvantage:we should be responsible for the life managing of the service and the hosting process must be ruunning before the client calls the service.

IIS-Hosting

iis-hosting means that we host the service in the iis, make the service look like a webservice or website.

advantage:the service is lunched automatically when the first client calls the service, we can rely on the iis to manage the life cycle of the hosting process.

disadvantage:we can only use http in iis-hosting, as we know.

WAS hosting

WAS: windows activation service is part of iis 7, but we can install it separately.when we use the was to host a service, all we should do is to supply a .svc file ,just as we do in iis-hosting.

the difference between iis-hosting and was-hosting is that was is not limited to http, was is also available to tcp and queue.

so was is an inheritance from the benefit of the iis-hosting and sel-hosting
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: