fuzhengwei / fuzhengwei/blog.github.io

手写RPC框架第三章《RPC中间件》 - bugstack虫洞栈

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
2267021d51e2010b08a95ff5a86a0794 gitment
Dominant language
HTML
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

https://fuzhengwei.github.io/itstack-demo-netty-3/2019/09/03/%E6%89%8B%E5%86%99RPC%E6%A1%86%E6%9E%B6%E7%AC%AC%E4%B8%89%E7%AB%A0-RPC%E4%B8%AD%E9%97%B4%E4%BB%B6.html

案例介绍
结合上面两章节,本章将实现rpc的基础功能;提供一给rpc中间件jar给生产端和服务端。
技术点;
1、注册中心,生产者在启动的时候需要将本地接口发布到注册中心,我们这里采用redis作为注册中心,随机取数模拟权重。
2、客户端在启动的时候,连接到注册中心,也就是我们的redis。连接成功后将配置的生产者方法发布到注册中心{接口+别名}。
3、服务端配置生产者的信息后,在加载xml时候由中间件生成动态代理类,当发生发放调用时实际则调用了我们代理类的方法,代理里会通过netty的futuer通信方式进行数据交互。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked chapter, which describes the RPC middleware, Redis registry, client, server, XML loading, dynamic proxies, and Netty communication. The issue does not name repository files, tests, or a specific requested change, so the completion criteria need to be clarified before work begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis
Domain
backend-api-design, distributed-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.