ezrpc icon indicating copy to clipboard operation
ezrpc copied to clipboard

ezrpc

ezrpc is a micro service framework for server side rpc communication.

It's based on nats and thrift, using code-gen approach, supporting Go & .net(C#).

Service Definition

service Category {
	list<string> GetIDs(1:i32 offset, 2:i32 limit),
}

Usage

1 Generate language specified source files by thrift IDL

* C#

thrift --gen csharp -o ./sample/ ./sample/HelloWorld.thrift

* Go

generator ./sample/HelloWorld.thrift` ./sample/

2 Genrate source files which will be used for subscribing NATS messages

* C#

./ezrpc gen -l csharp -i ./sample/HelloWorld.thrift -o ./sample

* Go

./ezrpc gen -l go -i ./sample/HelloWorld.thrift -o ./sample