常见提高并发量的方式

1、避免锁表操作

2、缓存常用数据

3、Redis使用时,连接串参数设置

  <add key="RedisTest"  WriteServer="127.0.0.1:6379,password=123456,connectTimeout=1000,connectRetry=1,syncTimeout=1000"/>

4、修改IIS设置

  a. 调整IIS应用程序池队列长度

  b. 调整IIS的appConcurrentRequestLimit设置,在%systemroot%System32inetsrvconfigapplicationHost.config中可以查看到该设置:

    <serverRuntime appConcurrentRequestLimit="100000" />

  c. 调整machine.config中的processModel>requestQueueLimit的设置

    <configuration> <system.web> <processModel enable="true" requestQueueLimit="100000"/>

  d. 修改注册表,调整IIS 7支持的同时TCPIP连接数

    reg add HKLMSystemCurrentControlSetServicesHTTPParameters /v MaxConnections /t REG_DWORD /d 100000

  e. 参考文章http://technet.microsoft.com/en-us/library/dd425294(office.13).aspx

5、技术上扩展

  a. 垂直扩展:

    增加单机性能,增加数据库缓存,减少IO开销。

  b. 水平扩展:

    增加服务器数量负载均衡。

  c. 读写分离:

  d. 分库分表:

  e. 消息队列

原文地址:https://www.cnblogs.com/windy2008/p/12605987.html