hrpc

A common interface based RPC framework


Keywords
hrpc, rpc, rpc-client, rpc-framework, rpc-library
License
Apache-2.0
Install
pip install hrpc==1.0.9

Documentation

hrpc

Common interface definition based rpc implementation (基于公共接口定义的rpc实现).

+-----------------------------+                                 +------------------------------+
|                             |                                 |                              |
| runtime 1                   |                                 | runtime 2                    |
|                             |                                 |                              |
|                             |                                 |                              |
|                             |                                 |                              |
|                             |                                 |                              |
|                             |                                 |                              |
|                             |                                 |                              |
|                             |                                 |                              |
|       +---------------------+   call remote method            |          +-------------------+
|       | objproxy.methodA()  | +---------------------------->  |          | obj.methodA()     |
|       |                     |                                 |          |                   |
|       |                     |                                 |          |                   |
|       |                     |                                 |          |                   |
+-------+---------^-----------+                                 +----------+---------^---------+
                  |                                                                  |
                  |                                                                  |
                  |                                                                  |
                  +-----------------------------+------------------------------------+
                                                |
                                                |
                                                |
                               +----------------+----------------+
                               |                                 |
                               |  CommonInterface                |
                               |                                 |
                               |                                 |
                               +---------------------------------+
                               |                                 |
                               | + methodA()                     |
                               |                                 |
                               +---------------------------------+
                               |                                 |
                               | + methodB(arg1, arg2)           |
                               |                                 |
                               +---------------------------------+