Skip to content

Good practice of gRPC, client communicates with the server in full duplex stream, and the server can request the client.

License

Notifications You must be signed in to change notification settings

opc-source/opc-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opc-Rpc

Good practice of gRPC

  • 核心逻辑借鉴 Nacos,client 与 server 全双工通讯,使得 server 可主动请求 client,感谢如此优秀的项目。
  • 更多做 gRPC 的最佳实践

模块说明

  • rpc-api 抽象模型模块
  • rpc-core 通用能力模块
  • rpc-client 客户端仅需它
  • rpc-server 服务端仅需它
    +---------+          +------------+          +------------+
    | rpc-api |  <-----  |  rpc-core  |  <-----  | rpc-client |
    +---------+          +------------+          +------------+
                               个
                               |
                               |                +---—--------+ 
                               |--------------  | rpc-server | 
                                                 +------------+ 

开发说明

  • 若遇到 io.opc.rpc.core.grpc.auto.* 类不存在的问题,请先执行 mvn compile 生成 grpc 相关类

License

Apache License Version 2.0

About

Good practice of gRPC, client communicates with the server in full duplex stream, and the server can request the client.

Topics

Resources

License

Stars

Watchers

Forks

Languages