English | 中文
Quickly experience the service registration and service discovery capabilities of Arctic Stars
Build provider
# linux/mac
cd ./provider
go build -o provider
# windows
cd ./provider
go build -o provider.exe
Build consumer
# linux/mac
cd ./consumer
go build -o consumer
# windows
cd ./consumer
go build -o consumer.exe
Create a corresponding service through the Arctic Star Console, if you are installed by a local one-click installation package, open the console directly on the browser through 127.0.0.1:8080
Specify the Arctic Star server address, you need to edit the Polaris.yaml file, fill in the server address.
global:
serverConnector:
addresses:
- 127.0.0.1:8091
Run the built provider executable
# linux/mac
./provider
# windows
./provider.exe
Run the built consumer executable
# linux/mac
./consumer
# windows
./consumer.exe
curl http://127.0.0.1:18080/echo
Hello, I'm DiscoverEchoServer Provider, My host : %s:%d