# redis-rpc **Repository Path**: xuyun-java/redis-rpc ## Basic Information - **Project Name**: redis-rpc - **Description**: 基于redis的rpc框架,目前仅供学习使用。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2018-06-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # redis-rpc #### 项目介绍 基于redis的rpc框架,目前仅供学习使用。 #### 看看这个实现思路(简单实现为主,不需要去想性能这些事) 三个角色 * 服务提供者 * 服务消费者 * Redis 核心思路:**基于redis pub/sub机制** 1. 提供者启动后监听指定的channel,不同实例不同的channel > provider@com.dongnaoedu.service.HelloService@say@uuid > provider@类名@方法@实例唯一ID 2. 消费者启动后监听指定的channel,不同实例不同的channel > consumer@com.dongnaoedu.service.HelloService@say@uuid > consumer@类名@方法@实例唯一ID 3. 服务发现:**pubsub channels命令** 4. 负载均衡: **客户端负载均衡** 5. 调用过程:client ---publish--> providerChannel ---subscribe--> provider 6. 响应过程:provider ---publish---> consumerChannel ---subscribe--> consumer #### 安装教程 cd redis-rpc mvn install 然后运行redis-rpc-example-provider、redis-rpc-example-consumer即可 #### 使用说明 必须依赖RedisServer #### 参与贡献 1. Fork 本项目 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 0.0.1版本任务 - RedisRpcClient注解功能完善和持续跟进(要注意此处需要consumerListener的结合) - RedisRpcEndpoint注解功能完善和持续跟进 - RedisRpcProducer注解功能完善和持续跟进 - ProviderListener收到调用请求后的处理逻辑完善 - ConsumerListener收到响应内容后的处理逻辑完善 - 用户文档和开发文档编写 - 闲的没事的框架设计方案审核小组