1 Star 1 Fork 0

Alvin / couler

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

couler

Stream-based high-performance RPC framework

  • couler is a simple and high-performance RPC framework.It use socket stream to transfer serilized object.
  • couler is so fast because of it is a pure RPC framework that has no extra features.
  • couler can be simple and fast.Easy to use.

How to use?

  • See the code in test.
  • Server
RPCServer<RequestPojo, ResponsePojo> server = new RPCServer<RequestPojo, ResponsePojo>(9008, 3000,new MyProcessor(),protostuffSerializer);
try {
    server.open();
} catch (IOException e) {
    e.printStackTrace();
}
  • Client
SyncRPCClient<RequestPojo, ResponsePojo> client = new SyncRPCClient<RequestPojo, ResponsePojo>("localhost",9008, 5,protostuffSerializer);
client.open();
RequestPojo request = new RequestPojo();
ResponsePojo response = client.call(request,10000);

Repository Comments ( 0 )

Sign in to post a comment

About

No description expand collapse
Java
Apache-2.0
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/nathanial/couler.git
git@gitee.com:nathanial/couler.git
nathanial
couler
couler
main

Search

103111 552b83b3 1850385 103110 ed87a847 1850385