Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Start a service and set the proxy
- - Client will send all requests to the proxy
- - If MICRO_PROXY is set the client looks up the registry for the proxy
- - If MICRO_PROXY_ADDRESS is set it calls the proxy directly
- ```
- MICRO_PROXY=go.micro.proxy run service
- ```
- ## Start the proxy and specify the router
- - Proxy will call the router to get routes for a service
- - Same variable definitions as proxy for the client
- - Proxy will receive equivalent to selector Next nodes
- ```
- MICRO_ROUTER=go.micro.router run proxy
- ```
- ## Start the router with network gateway/address
- - Router maps local routes to the network gateway
- - Router gossips with other routers to advertise routes
- - Router gives proxy next hop as network gateway for things outside local network
- ```
- MICRO_NETWORK=go.micro.network run router
- ```
- ## Start the network and join other network nodes
- - Network is gateway with embedded proxy and router
- - Network receives requests from proxy and uses router to forward to next node
- ```
- MICRO_NETWORK=micro.mu run network
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement