MCPcopy Index your code
hub / github.com/duoan/mini-rpc

github.com/duoan/mini-rpc @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
74 symbols 144 edges 17 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rpc_learn

Spring + Netty + Protostuff + ZooKeeper 实现了一个轻量级 RPC 框架,使用 Spring 提供依赖注入与参数配置,使用 Netty 实现 NIO 方式的数据传输,使用 Protostuff 实现对象序列化,使用 ZooKeeper 实现服务注册与发现。使用该框架,可将服务部署到分布式环境中的任意节点上,客户端通过远程接口来调用服务端的具体实现,让服务端与客户端的开发完全分离,为实现大规模分布式应用提供了基础支持

Extension points exported contracts — how you extend this code

HelloService (Interface)
(no doc) [2 implementers]
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/modules/simple/HelloService.java
Constant (Interface)
(no doc)
rpc_common/src/main/java/xyz/anduo/rpc/common/Constant.java

Core symbols most depended-on inside this repo

create
called by 3
rpc_client/src/main/java/xyz/anduo/rpc/client/RpcProxy.java
getSchema
called by 2
rpc_common/src/main/java/xyz/anduo/rpc/common/SerializationUtil.java
serialize
called by 2
rpc_common/src/main/java/xyz/anduo/rpc/common/SerializationUtil.java
watchNode
called by 2
rpc_client/src/main/java/xyz/anduo/rpc/client/ServiceDiscovery.java
getParameterTypes
called by 2
rpc_client/src/main/java/xyz/anduo/rpc/client/RpcRequest.java
hello
called by 1
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/modules/simple/HelloService.java
register
called by 1
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/core/ServiceRegistry.java
connectServer
called by 1
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/core/ServiceRegistry.java

Shape

Method 57
Class 15
Interface 2

Languages

Java100%

Modules by API surface

rpc_client/src/main/java/xyz/anduo/rpc/client/RpcRequest.java11 symbols
rpc_client/src/main/java/xyz/anduo/rpc/client/RpcResponse.java8 symbols
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/core/ServiceRegistry.java6 symbols
rpc_common/src/main/java/xyz/anduo/rpc/common/RpcDecoder.java6 symbols
rpc_client/src/main/java/xyz/anduo/rpc/client/ServiceDiscovery.java6 symbols
rpc_client/src/main/java/xyz/anduo/rpc/client/RpcClient.java6 symbols
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/core/RpcServer.java5 symbols
rpc_sieve/src/main/java/xyz/anduo/rpc/sieve/core/RpcHandler.java5 symbols
rpc_common/src/main/java/xyz/anduo/rpc/common/SerializationUtil.java5 symbols
rpc_client/src/main/java/xyz/anduo/rpc/client/RpcProxy.java4 symbols
rpc_common/src/main/java/xyz/anduo/rpc/common/RpcEncoder.java3 symbols
rpc_simple/src/test/java/xyz/anduo/rpc/simple/HelloServiceTest.java2 symbols

For agents

$ claude mcp add mini-rpc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact