- netty4
- 4.1.*, 默认采用内存池
- 采用hession序列化
- 注意内存溢出问题,记得释放ByteBuf。 重要!!!
- 粘包拆包
- 调用样例:
- server 启动入口见:DeamonRunner, 启动脚本见 start.sh,停机脚本见:stop.sh
- 服务自动治理, 见 RpcServer
- 是否注册到zk上,见参数:registryFlag, 入口在 resources/server.properties。
- client 调用样例:ServiceTest, ServiceSpringTest, ServiceSpringZKTest
- zk 负载均衡,zk 配置文件见:com/netty4/rpc/core/registry/impl/zookeeper/zk.properties
- 支持本地绑环境测试, 如 -Dnetty4.hosts.com.netty4.rpc.demo.api.UserService=localhost:9301
- netty 同步调用
- server 启动入口见:DeamonRunner, 启动脚本见 start.sh,停机脚本见:stop.sh
参考NettyRpc
- 采用 protostuff 序列化