{"id":21593357,"url":"https://github.com/ppzxc/go-grpc-example","last_synced_at":"2025-07-08T19:33:56.854Z","repository":{"id":144465062,"uuid":"329234807","full_name":"ppzxc/go-grpc-example","owner":"ppzxc","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-22T15:32:11.000Z","size":267,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T06:39:22.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppzxc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-13T07:59:53.000Z","updated_at":"2024-06-19T10:24:23.194Z","dependencies_parsed_at":null,"dependency_job_id":"8f371f30-01e6-4aa0-9d18-332e7f1d1876","html_url":"https://github.com/ppzxc/go-grpc-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ppzxc/go-grpc-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppzxc%2Fgo-grpc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppzxc%2Fgo-grpc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppzxc%2Fgo-grpc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppzxc%2Fgo-grpc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppzxc","download_url":"https://codeload.github.com/ppzxc/go-grpc-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppzxc%2Fgo-grpc-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260072729,"owners_count":22954919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T17:12:15.851Z","updated_at":"2025-06-16T00:08:15.839Z","avatar_url":"https://github.com/ppzxc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple throughput check on real machine using grpc\n- using grpc/grpc-go\n- https://github.com/grpc/grpc-go\n\n## usage\n1. git clone https://github.com/ppzxc/go-grpc-example\n2. cd go-grpc-examples\n3. make all\n4. echo\n```shell\nserver side\n - ./echo_server -port 9990\n \nclient side\n - ./echo_client -ip 192.168.0.65 -port 9990 -len 512 -conn 1 -worker 1\n```\n5. client Stream\n```shell\nserver side\n - ./clientStream_server -port 9990\n \nclient side\n - ./clientStream_client -ip 192.168.0.65 -port 9990 -len 512 -conn 1 -worker 1 -count 10000\n```\n6. server Stream\n```shell\nserver side\n - ./serverStream_server -port 9990 -count 1000 -len 512\n \nclient side\n - ./serverStream_client -ip 192.168.0.65 -port 9990 -conn 1 -worker 1\n```\n7. bidirectional Stream\n```shell\nserver side\n - ./biStream_server -port 9990\n \nclient side\n - ./biStream_client -ip 192.168.0.65 -port 9990 -len 512 -conn 1 -worker 1\n```\n## flags\n\n```protobuf\nmessage Request {\n  uint64 uid = 1;\n  bytes message = 2;\n  int32 len = 3;\n  int32 connNumber = 4;\n  int32 workerNumber = 5;\n}\n```\n\n - ip\n - port\n - len =\u003e protobuf bytes message size\n - conn =\u003e connection count\n - worker =\u003e connection per worker count\n\n## grpc/grpc-go\n```\nD:\\go\\go-grpc-examples-benchmark\\proto\\unary\u003eprotoc --version\nlibprotoc 3.14.0\nD:\\go\\go-grpc-examples-benchmark\\proto\\unary\u003eprotoc --go_out=plugins=grpc:. *.proto\n```\n\n## reference\n- https://developers.google.com/protocol-buffers/docs/gotutorial\n- https://github.com/grpc/grpc-go\n- https://github.com/gogo/protobuf\n- https://github.com/gogo/grpc-example\n\n## todo\n- stream\n\n---------------\n---------------\n---------------\n![du](./1.JPG)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppzxc%2Fgo-grpc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppzxc%2Fgo-grpc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppzxc%2Fgo-grpc-example/lists"}