The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
1.3 KiB

## easyDemo for using GRPC in Python
###主要是介绍了在Python中使用GRPC时, 进行数据传输的四种方式。
###This paper mainly introduces four ways of data transmission when GRPC is used in Python.
- ####简单模式 (Unary)
```text
没啥好说的,跟调普通方法没差
There's nothing to say. It's no different from the usual way.
```
- ####客户端流模式 (Client Streaming)
```text
在一次调用中, 客户端可以多次向服务器传输数据, 但是服务器只能返回一次响应.
In a single call, the client can transfer data to the server several times,
but the server can only return a response once.
```
- ####服务端流模式 (Server Streaming)
```text
在一次调用中, 客户端只能一次向服务器传输数据, 但是服务器可以多次返回响应
In a single call, the client can only transmit data to the server at one time,
but the server can return the response many times.
```
- ####双向流模式 (Bidirectional Streaming)
```text
在一次调用中, 客户端和服务器都可以向对方多次收发数据
In a single call, both client and server can send and receive data
to each other multiple times.
```
----
Author: Zhongying Wang
Email: kerbalwzy@gmail.com
License: MPL2
DateTime: 2019-08-13T23:30:00Z
PythonVersion: Python3.6.3