koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

Idiotmatic way to use a Router as a gateway #229

Closed ralphking closed 4 years ago

ralphking commented 5 years ago

I am using Kite to communicate between microservices. I have a gateway service that passes a kite instance to the handlers, and use a router (Chi) to serve the public API.

As kite is blocking, I am starting the gateway kite with go kite.Run() during the main process in my gateway.

Is there a better way to do this? Any patterns that people are using?