# grpc_demo **Repository Path**: dinochang/grpc_demo ## Basic Information - **Project Name**: grpc_demo - **Description**: gRPC的简单实现 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2024-07-13 - **Last Updated**: 2024-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Grpc, Java ## README # gRPC的简单实现 [博客地址](https://blog.csdn.net/weixin_43785688/article/details/128100768) 1. Client 调用以本地调用方式调用服务; 2. Client Stub 接收到调用后负责将方法、参数等组装成能够进行网络传输的消息体(桩代码是未实现的接口,此处使用动态代理); 3. Client Stub 找到服务地址,并将消息发送到服务端; 4. Server Stub 收到消息后进行解码; 5. Server Stub 根据解码结果调用本地的服务; 6. 本地服务执行并将结果返回给 Server Stub; 7. Server Stub 将返回结果打包成消息并发送至消费方; 8. Client Stub 接收到消息,并进行解码; 9. Client 得到最终结果。