wwbmmm commented on PR #2123:
URL: https://github.com/apache/brpc/pull/2123#issuecomment-1436229573

   > @wwbmmm @serverglen 
之前理解错了,ConsulNamingService其实不是PeriodicNamingService,不是简单的轮询,而是[长轮询](https://brpc.incubator.apache.org/zh/docs/client/basics/#consulservice-name),每次rpc成功后,立即发起下一次长轮询。只有失败了,才会sleep。
 [Blocking 
Queries](https://developer.hashicorp.com/consul/api-docs/features/blocking):
   > 
   > > Many endpoints in Consul support a feature known as "blocking queries". 
A blocking query is used to wait for a potential change using long polling.
   > 
   > 这个pr可能需要回退一下或者重新提一个pr将ConsulNamingService改回去。
   
   要不重新提一个pr把ConsulNamingService改回去?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to