Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 598 Bytes

File metadata and controls

27 lines (20 loc) · 598 Bytes

Hello World

Quick Start

  1. compile and start layotto
go build -o layotto cmd/layotto/main.go
./layotto -c demo/rpc/http/example.json
  1. start echoserver
go run demo/rpc/http/echoserver/echoserver.go
  1. call runtime InvokerService api.
go run demo/rpc/http/echoclient/echoclient.go -d 'hello layotto'

rpchello.png

Explanation:

  1. configure mosn to match http request header id equals HelloService:1.0, forward to localhost:8889
  2. echoserver listen at localhost:8889
  3. echoclient call the InvokeService grpc api.