github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/roundrobin/README.md (about) 1 # Round Robin 2 3 An example of using a round robin client wrapper with the greeter application. 4 5 ## Contents 6 7 - api.go - a modified version of the greeter api to include roundrobin 8 9 ### Micro 10 11 ``` 12 go get github.com/micro/micro 13 ``` 14 15 ## Run 16 17 ### Greeter Service 18 19 Run multiple copies of the greeter 20 21 ``` 22 cd ../greeter 23 go run srv/main.go 24 ``` 25 26 ### Greeter API 27 28 ``` 29 go run api.go 30 ``` 31 32 ### Micro API 33 34 ``` 35 micro api 36 ``` 37 38 ### Call API 39 40 ```shell 41 curl http://localhost:8080/greeter/say/hello?name=John 42 ``` 43