@@ -42,10 +42,10 @@ service Echo {
42
42
43
43
The four methods included in the example IDL correspond to four scenarios:
44
44
45
- 1 . Client streaming : the client sends multiple messages, the server returns one message, and then closes the stream.
46
- 2 . Server streaming : The client sends one message, the server returns multiple messages, and then closes the stream. It's suitable for LLM scenarios.
47
- 3 . Bidirectional streaming : The sending and receiving of client/server are independent, which can be organized in arbitrary order.
48
- 4 . Unary: non streaming .
45
+ 1 . Client Streaming : the client sends multiple messages, the server returns one message, and then closes the stream.
46
+ 2 . Server Streaming : The client sends one message, the server returns multiple messages, and then closes the stream. It's suitable for LLM scenarios.
47
+ 3 . Bidirectional Streaming : The sending and receiving of client/server are independent, which can be organized in arbitrary order.
48
+ 4 . Unary: In gRPC, this is a single call mode without using streams, similar to the Ping Pong mode in Thrift .
49
49
50
50
First of all, please initialize the streaming client. Here is an example of streaming client initialization.
51
51
@@ -100,11 +100,11 @@ service TestService {
100
100
101
101
The four methods included in the example IDL correspond to four scenarios:
102
102
103
- 1 . Client streaming : the client sends multiple messages, the server returns one message, and then closes the stream.
104
- 2 . Server streaming : The client sends one message, the server returns multiple messages, and then closes the stream. It's suitable for LLM scenarios.
105
- 3 . Bidirectional streaming : The sending and receiving of client/server are independent, which can be organized in arbitrary order.
106
- 4 . Unary (gRPC): Non-streaming. With ` streaming.mode ` annotation. Not recommended due to performance loss.
107
- 5 . Unary (KitexThrift): Non-streaming. Recommended .
103
+ 1 . Client Streaming : the client sends multiple messages, the server returns one message, and then closes the stream.
104
+ 2 . Server Streaming : The client sends one message, the server returns multiple messages, and then closes the stream. It's suitable for LLM scenarios.
105
+ 3 . Bidirectional Streaming : The sending and receiving of client/server are independent, which can be organized in arbitrary order.
106
+ 4 . Unary (gRPC): Non-streaming with ` streaming.mode ` annotation. Not recommended due to performance loss.
107
+ 5 . Ping Pong mode (KitexThrift): Traditional Thrift request-response pattern without using streams. Better performance, recommended .
108
108
109
109
Here is an example of streaming client initialization.
110
110
0 commit comments