Skip to content
/ la-rpc Public

A simple rpc framework based on Netty,Protobuf and Protostuff.

Notifications You must be signed in to change notification settings

bysoul/la-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Features:

  • High Performance Networking Based on Netty
  • High Performance Serializing Based on Protobuf and Protostuff
  • Register and Discover Services Using ZooKeeper
  • HeartBeat and Reconnection
  • Solve Packet Fragmentation and Assembly
  • Multiplexing of Client Channel
  • Integrate Spring
  • Methods Called in Server ThreadPool

Usage:

Interface rpc=(Interface) new RpcProxy().get("InterfaceImpl",Interface.class);  
Object res=rpc.method(Object... args);

Proto:

syntax = "proto2";
option java_outer_classname = "RpcProto";
message RequestMessage {
  required int32 requestId = 1;
  required string className = 2;
  required string methodName = 3;
  repeated string argTypes = 4;
  optional bytes args = 5;
}
message ResponseMessage {
  required int32 requestId = 1;
  required bool status=2;
  optional bytes result = 3;
}

About

A simple rpc framework based on Netty,Protobuf and Protostuff.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages