Added more useful information into readme

This commit is contained in:
Lei Du
2017-10-11 19:42:28 +09:00
parent a3ac88572e
commit 3fad082e73
+37 -2
View File
@@ -1,6 +1,15 @@
## 功能
这是RPC引擎,使用Apache Thrift 作为容器, Google Protocol Buffer 作为输入输出。相对于dubbo、 纯Apache Thrift等RPC容器,优势在于:
jigsaw-thrift-protobuf模块目前主要负责一下功能:
1. 内部服务间的通信, Thrift or HTTP/JSON
2. 服务注册, Zookeeper or Consul
3. 服务发现
4. 服务治理
6. 服务负债
## 技术栈
使用Apache Thrift 作为容器, Google Protocol Buffer 作为输入输出。相对于dubbo、 纯Apache Thrift等RPC容器,优势在于:
1. 高性能,Apache Thrift是已知RPC容器中性能最好的。
2. 传输效率高, Google Protocol Buffer 的压缩率相对Apache Thrift 的strut 结构 可以节省20% 空间。
@@ -8,7 +17,33 @@
这个引擎是对Apache Thrift 的极简轻量级封装,可靠,易于使用。 和Spring 良好集成,易于开发。
## 结构
.
├── src/main
│ ├── gen # 由rpc_service.thrift自动编译出来的代码
│ │ └── ..
│ ├── org/jigsaw/payment/rpc
│ │ ├── register # 服务注册
│ │ ├── server # 服务器端的实现框架
│ │ └── sharder # 客户端的rpc连接池
│ └── resources
│ ├── META-INF
│ │ └── srping.factories
│ └── rpc_service.thrif
├── CHANGELOG.md
├── jigsaw-thrift-protobuf.iml
├── pom.xm
└── README.md
## 关联模块
这两个模块是用来测试这个模块的服务端和客户端
jigsaw-rpc-example-client
jigsaw-rpc-example-server
## TODO
|No.|功能|负责人|github 账号|
|---------|---------|---------|---------|
|1|需要支持consul作为服务注册中心|梁燕东|liangyd1024|
@@ -22,4 +57,4 @@
## Finished
1. 使用zookeeper作为服务注册中心。
2. 支持简单的轮询式分片访问。
2. 支持简单的轮询式分片访问。