我有以下代码,不是那么慢,也不是那么快。有没有办法改善这一点?我目前在 5 到 10 秒内收到 1000 条消息,我认为这还不理想。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<netMsmqBinding>
<binding name="NetMsmqBinding_IProductService"
deadLetterQueue="System"
maxReceivedMessageSize="524288">
<readerQuotas maxDepth="32"
maxStringContentLength="524288"
maxBytesPerRead="524288"/>
<security mode="None"/>
</binding>
</netMsmqBinding>
</bindings>
<client>
<endpoint address="net.msmq://localhost/private/Products" binding="netMsmqBinding"
bindingConfiguration="NetMsmqBinding_IProductService" contract="Products.IProductService"
name="NetMsmqBinding_IProductService" />
</client>
</system.serviceModel>
</configuration>
请与处理器无关的答案,我的意思是配置方面如何使其更快