<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.4</li>
<li>Operating System version: 2.6.32-504.el6.x86_64</li>
<li>Java version: 1.8.0_45</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">1.偶然发现，无法重现</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">1: 偶然发现，我重启dubbo项目，有个dubbo服务没有刷新，其时间戳tamp没有刷新，其节点<br>
值都正常。<br>
2: 调用这个dubbo服务，发现其报拒绝服务错误。<br>
3: 解决办法：在zookeeper删除这个节点，然后重启项目，项目恢复。<br>
4: 我无法判断，这个bug是zookeeper还是dubbo？<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13092208/61849008-847ae800-aee2-11e9-91a7-6c903e81acb3.png"><img width="1152" alt="企业微信截图_08dd1ecd-6588-4f40-94e4-04b01a9ee02e(1)" src="https://user-images.githubusercontent.com/13092208/61849008-847ae800-aee2-11e9-91a7-6c903e81acb3.png" style="max-width: 100%;"></a></p>
<p dir="auto">In my scenario, some methods in the provider return a large amount of data each time, because the response is internally duplicated, so the serialization and transmission performance can be improved by implementing a new Serialization (protostuff+snappy).I hope that the remaining services or methods in the provider continue to use the default Hessian2 Serialization, however， the Serialization configuration supports only the protocol level.<br>
In dubbo-remoting-netty, NettyServer, when the tcp connection is established, the response serialization type is specified through the NettyCodecAdapter's final url, it seems that Serialization configuration can not support the service or method level now.<br>
Does dubbo subsequently plan to support serialization configuration to service or method?</p>
<p dir="auto">在我们的使用场景中，provider中有些接口返回数据量较大，在M级别，因为数据内部重复数据多，通过实现新的Serialization插件（protostuff+snappy）可以提高序列化和传输的性能。我们希望provider中其余service或者method继续使用默认hessian2 Serialization，但是现有Serialization配置只支持到protocol级别。</p>
<p dir="auto">netty通讯方式中，NettyServer当中，当tcp连接被建立，response序列化方式通过NettyCodecAdapter的final url被指定下来，Serialization配置不能支持到service或者method级别。</p>
<p dir="auto">dubbo后续有计划将Serialization配置支持到service或者method么？</p>