https://github.com/muroon/grpctestsample
https://github.com/muroon/grpctestsample
grpc
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/muroon/grpctestsample
- Owner: muroon
- Created: 2018-09-01T02:58:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T09:14:31.000Z (over 7 years ago)
- Last Synced: 2025-10-11T18:35:14.664Z (6 months ago)
- Topics: grpc
- Language: C#
- Size: 44 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GrpcTestSample
## Description
This is gRPC test samples which get the throughput.
### Comparison pattern
|type |data format |server |client |client package |
|:---|:---|:---|:---|:---|
|gRPC Unary RPC |Protocol Buffers |Go |C# |[Google.Protobuf](https://www.nuget.org/packages/google.protobuf/) |
|gRPC Bidirectional streaming RPC |Protocol Buffers |Go |C# |[Google.Protobuf](https://www.nuget.org/packages/google.protobuf/) |
|REST API (Protocol Buffers) |Protocol Buffers |Go |C# |[Google.Protobuf](https://www.nuget.org/packages/google.protobuf/) |
|REST API (Json) |Json |Go |C# |[JsonUtility](https://docs.unity3d.com/ScriptReference/JsonUtility.html) |
There are four RPC types of gRPC.
[Here](https://grpc.io/docs/guides/concepts.html) is easy to understand.
Among them, Unary RPC for sending and receiving streams here,
Bidirectional streaming RPC that uses HTTP / 2 streams and can transmit and receive multiple times,
And I chose the REST API (Protocol Buffers format format) as a comparison object.
The purpose of this is to compare pure gRPC and REST API which do not depend on format format.
Also added Json style REST API for clarity. (The detailed explanation of ※ REST API of Json format will be omitted)
### Result

## Environment
- [Unity Client](unity-environment/)
- [Server Side(Go)](go-environment/)