# nacos-grpc-gin
**Repository Path**: xiaonqedu/nacos-grpc-gin
## Basic Information
- **Project Name**: nacos-grpc-gin
- **Description**: 使用golang语言+gin+grpc(加权轮训) + nacos + viper热加载配置
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 2
- **Forks**: 0
- **Created**: 2021-12-09
- **Last Updated**: 2023-05-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
- `1)拉取模块到本地`
```golang
go mod tidy
```
- `2)生成protobuf文件`
```bash
cd proto
protoc -I=. common/common.proto --go_out=plugins=grpc:. ./hello/helloTest.proto
```
- `3)运行server`
- 修改 `helloService/Configs/configs.yml` 端口号为 `5502`
```go
cd helloService
go run main.go
```
- `4)运行client`
```go
cd allClient
go run main.go
```
- `5)postman测试负载均衡`
```js
http://127.0.0.1:9009/api/v1/helloTest
```
- `6)负载均衡效果截图`
