5 Star 19 Fork 5

zhiming999 / rpcf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 5.07 KB
一键复制 编辑 原始数据 按行查看 历史

[中文]

rpc-frmwrk badge

This is an asynchronous and event-driven RPC implementation for embeded system with small system footprint. It is targeting at both IOT platforms and mainstream servers with high-throughput and high availability. It features highly easy to use with a versatile skeleton generator, to generate C++, Python, Java or JavaScript skeleton code instantly. Welcome to use!

Concept

Here is an introduction to the concept of rpc-frwmrk.

Features

  1. Synchronous/asynchronous request handling
  2. Active/passive request canceling.
  3. Server-push events
  4. Keep-alive for time-consuming request.
  5. Simultaneous object access over network and IPC.
  6. Peer online/offline awareness.
  7. Publishing multiple local/remote object services via single network port.
  8. Full-duplex streaming channels
  9. Both OpenSSL and GmSSL support
  10. Websocket support
  11. Object access via Multihop routing
  12. Authentication support with Kerberos 5
  13. Node Redudancy/Load Balance
  14. A skeleton generator for CPP, Python and Java
  15. A GUI config tool for rpcrouter
  16. rpcfs - filesystem interface for rpc-frmwrk

Building rpc-frmwrk

Installation

  1. Run sudo make install from the root directory of rpc-frmwrk source tree.
  2. Configure the runtime parameters for rpc-frwmrk as described on this page.
  3. Start the daemon process rpcrouter -dr 2 on server side, and on start daemon process rpcrouter -dr 1 on client side. And now we are ready to run the helloworld program. For more information about rpcrouter, please follow this link.
  4. Smoketest with HelloWorld. Start the hwsvrsmk, the helloworld server on server side. And start the hwclismk on the client side.
  5. This wiki has some detail information.

Development

rpc-frmwrk can generate skeleton systems for different system architectures.

  1. The micro-service RPC. rpc-frmwrk has an interface description language, ridl to help you to generate the skeleton code in one second. Examples can be found here. The advantage is that you can deploy new services on the fly, as well as shutting down some of them.
  2. The single-app RPC. ridlc can also generate skeleton code in the form of the classic client/server program. The advantage is it has much better performance.
  3. Programming with rpcfs. The ridlc can generate a pair of filesystems for server and client respectively with the ridl file. And all the rpc traffic goes through file read/write and other file operations. And moreover rpcfs hosted by the rpcrouter provides information for runtime monitoring and management.

Runtime Dependency

This project depends on the following 3rd-party packags at runtime:

  1. dbus-1.0 (dbus-devel)
  2. libjson-cpp (jsoncpp-devel)
  3. lz4 (lz4-devel)
  4. cppunit-1 (for the test cases, cppunit and cppunit-devel)
  5. openssl-1.1 for SSL communication.(optional)
  6. MIT krb5 for authentication and access control.(optional)
  7. c++11 is required, and make sure the GCC is 5.x or higher.
  8. python 3.5+ is required for Python support.(optional)
  9. Java OpenJDK 8 or higher for Java support.(optional)
  10. npm 9.0 and webpack(optional)
  11. FUSE-3 for rpcfs support(optional)
  12. GmSSL 3.0(optional)

Todo

  1. Please refer to issues.
C++
1
https://gitee.com/zhiming999/rpcf.git
git@gitee.com:zhiming999/rpcf.git
zhiming999
rpcf
rpcf
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891