Spring integration TCP服务器和高容量

Spring integration TCP服务器和高容量,spring-integration,Spring Integration,我在当前的项目中使用SI服务器,并且对此非常满意。我基本上直接从示例中获取服务器。通信应为请求/响应。我真的没有注意到任何问题,但考虑到潜在的高连接量,我应该以不同的方式处理传入连接吗?最好让民意调查机构的频道控制得更好一点,还是让我来处理这一切 <ip:tcp-connection-factory id="server" type="server" port="${port}" using-nio="true" so-tcp

我在当前的项目中使用SI服务器,并且对此非常满意。我基本上直接从示例中获取服务器。通信应为请求/响应。我真的没有注意到任何问题,但考虑到潜在的高连接量,我应该以不同的方式处理传入连接吗?最好让民意调查机构的频道控制得更好一点,还是让我来处理这一切

<ip:tcp-connection-factory id="server"
        type="server"
        port="${port}"
        using-nio="true"
        so-tcp-no-delay="true"/>

<ip:tcp-inbound-gateway connection-factory="server"
        request-channel="toSA"
        error-channel="errorChannel"/>

<int:channel id="toSA" 
        datatype="java.lang.String"/>

<int:service-activator input-channel="toSA" 
        ref="Controller" 
        method="handle"/>

<int:transformer id="errorHandler"
        input-channel="errorChannel"
        expression="payload.failedMessage.payload + ':' + payload.cause.message"/>

您可以通过限制可用于处理连接和I/O的线程数量来间接控制连接和吞吐量。请参阅-务必阅读所有注释

有关更多信息,请参见

我不建议为此目的尝试使用频道/轮询器