funky-eyes opened a new issue, #7406:
URL: https://github.com/apache/incubator-seata/issues/7406

   ### Why you need it?
   
   当前raft的元数据更新通知,通过http1的longpolling方式感知变化。而目前Seata 
Server已经支持http2协议,理论上稍加改造便可以支持http2方式,并且相对于longpolling方式而言,实时性更高。
   需求:
   1. 保留原本http1方式的watch接口
   2. 增加新的http2方式的watch接口
   3. client通过识别server版本号,决定使用http1或http2从而保证多版本兼容。
   你可以提交多个pr来逐步完成这个特性。
   
   Currently, Raft metadata update notifications rely on the long polling 
mechanism over HTTP/1 to detect changes. However, Seata Server now supports the 
HTTP/2 protocol, which, with some modifications, could enable support for 
HTTP/2-based notifications. Compared to long polling, HTTP/2 could provide 
better real-time performance.
   
   Requirements:  
   1. Retain the original watch interface based on HTTP/1.  
   2. Add a new watch interface that supports HTTP/2.  
   3. Clients should determine whether to use HTTP/1 or HTTP/2 for the watch 
interface based on the server version, ensuring compatibility across different 
versions.
   
   You can submit multiple PRs to gradually implement this feature.
   
   
https://github.com/apache/incubator-seata/blob/2.x/server/src/main/java/org/apache/seata/server/controller/ClusterController.java
   
   
https://github.com/apache/incubator-seata/blob/2.x/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryServiceImpl.java
   
   ### How it could be?
   
   _No response_
   
   ### Other related information
   
   _No response_


-- 
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: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to