【文件属性】:
文件名称:NettyRpc:一个基于Netty,ZooKeeper和Spring的简单RPC框架
文件大小:84KB
文件格式:ZIP
更新时间:2021-04-29 00:22:10
spring netty zookeeper rpc-framework Java
NettyRpc
基于Netty,ZooKeeper和Spring的RPC框架中文详情:
特征:
简单的代码和框架
ZooKeeper的服务注册表/发现支持
高可用性,负载平衡和故障转移
支持不同的负载均衡策略
支持异步/同步调用
支持不同版本的服务
支持不同的串行器/解串器
使用心跳检测无效的TCP连接
设计:
使用方法(netty-rpc-test)
定义一个接口:
public interface HelloService {
String hello(String name);
String hello(Person person);
}
用注解@NettyRpcService实现接口:
@NettyRpcService(HelloService.class, version = "1.0")
public class HelloServiceImpl
【文件预览】:
NettyRpc-master
----.gitignore(1KB)
----picture()
--------NettyRpc-design.png(15KB)
----netty-rpc-client()
--------src()
--------pom.xml(734B)
----netty-rpc-test()
--------src()
--------pom.xml(1KB)
----pom.xml(5KB)
----README.md(2KB)
----netty-rpc-common()
--------src()
--------pom.xml(510B)
----netty-rpc-server()
--------src()
--------pom.xml(735B)