zoukankan      html  css  js  c++  java
  • Hosting the service in Internet Information

    Conception Overview:

    It is a better option to host a WCF service within Internet Information Services Server
    (IIS) because IIS provides a robust, efficient, and secure host for the WCF services.
    IIS also has better thread and process execution boundaries handling (in addition
    to many other features) compared to a regular managed application.

    The main drawback of hosting the service within IIS prior to version 7.0 is the tight
    coupling between ASP.NET and web services, which limits the transport protocol
    to HTTP/HTTPs. But with IIS 7.0, in addition to HTTP, you can now host a WCF
    service with TCP, Named pipe, or MSMQ. You are no longer limited to HTTP.

    Another thing you need to pay particular attention to when hosting WCF in IIS is
    that the process and/or application domain may be recycled if certain conditions
    are met. By default the WCF service session state is saved in memory so that
    each recycle will lose all such information. This will be a big problem if you run a
    website in a load-balanced or web-farm (web-garden) environment. In this case,
    you might want to turn on the ASP.NET compatibility mode (add the attribute,
    AspNetCompatibilityRequirements, to your WCF service) so that the session
    state can be persisted in a SQL Server database or in the ASP.NET State Server.

    技术改变世界
  • 相关阅读:
    cent os 6.8 php 5.6 安装ffmpeg扩展
    Linux查找目录下文件包含关键字
    python生成随机验证码
    zabbix添加任务计划和sshd文件修改key
    OS模块
    python模块
    python内建函数
    python3 爬煎蛋ooxx妹子图
    ssm整合-Sping整合Mybatis框架配置事务07
    ssm整合-Sping整合Mybatis框架06
  • 原文地址:https://www.cnblogs.com/davidgu/p/2405978.html
Copyright © 2011-2022 走看看