Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.16 KB

File metadata and controls

24 lines (20 loc) · 1.16 KB

netty-rpc2.0

nettp rpc learning project 2.0

structure

  • contract: for test purpose, including interfaces and beans that client and server will use
  • rpc-core: core bean definition and serialize
  • rpc-client
  • rpc-server
  • src: springboot test project

design

  • no service discovery, keep the learning project as simple as possible

key point compare with former project

  • change request from sync to async by RpcFuture. Implements Future<T> interface
  • send async method through method definitions instead of InvocationHandler
  • achieve callback function with AsyncRpcCallback

reference:

degraded project