You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "manzhizhen (GitHub)" <gi...@apache.org> on 2019/01/15 15:45:40 UTC

[GitHub] [incubator-dubbo] manzhizhen commented on issue #3204: 通过 API 编程进行泛化调用后如何销毁Consumer(ReferenceConfig)所关联的线程

@xcorpio 

In fact, I think you are worried that the thread should not be destroyed, but should it be a long link? The link of the generalization call is saved in the ReferenceConfig. Like the scenario of the gateway, the ReferenceConfig needs to be cached. We can manage the ReferenceConfig in the LRU mode to prevent the long connection maintained by the gateway from being too much. When destroying, directly the ReferenceConfig.destory () can be, I hope to help you.

其实我认为你担心应该不是线程有没有被销毁,而应该是长链接吧?泛化调用的链接是在ReferenceConfig中保存的,像网关这种场景,ReferenceConfig是需要缓存的,我们可以将ReferenceConfig以LRU的方式管理起来,以防止网关维护的长连接过多,销毁时直接ReferenceConfig.destory()即可,希望对你有帮助。


[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3204 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org