【问题标题】:WSO2 Enterprise Integrator 6.3.0 cache mediatorWSO2 Enterprise Integrator 6.3.0 缓存中介
【发布时间】:2020-04-06 14:09:37
【问题描述】:

我正在使用缓存中介来存储来自后端的大响应,以便在后续调用中减少时间。 在调用之前,我已经添加了具有此配置的缓存中介:

<cache collector="false" maxMessageSize="100000" timeout="20">
    <protocol type="HTTP">
        <methods>*</methods>
        <headersToExcludeInHash/>
        <responseCodes>2[0-9][0-9]</responseCodes>
        <enableCacheControl>false</enableCacheControl>
        <includeAgeHeader>false</includeAgeHeader>
        <hashGenerator>org.wso2.carbon.mediator.cache.digest.HttpRequestHashGenerator</hashGenerator>
    </protocol>
    <implementation maxSize="100000"/>
</cache>

在回复之前我已经添加了这个

<cache collector="true"/>

我已按照此处Cache Mediator的文档完成此操作

如果我在没有第二个缓存中介的情况下调用 api,它会回答我但不缓存,如果我用两个缓存中介调用 api,它会出错:

“无法在收集器缓存中处理请求消息”

我错了什么? 谢谢你

【问题讨论】:

    标签: caching wso2 wso2ei mediator


    【解决方案1】:

    当在请求流中定义了具有收集器 true 的缓存中介时,会出现此错误。 (即在从 ESB 调用后端服务器之前使用缓存收集器)。请确保流程正确。

    如果问题没有解决,请分享突触配置,以便我们提供帮助。

    【讨论】:

      【解决方案2】:

      我尝试在响应流中插入带有收集器 true 的中介,但没有任何更改。 这是我的突触配置

      【讨论】:

      • 我解决了,在通话后缺少这样的属性:""。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-15
      • 1970-01-01
      相关资源
      最近更新 更多