github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/docs/v2/design/server/proxy.md (about)

     1  # Proxy
     2  
     3  The micro proxy is a microservice proxy which encapsulates the features of go-micro as a standalone proxy which can be used 
     4  to offload the distributed systems aspects of services. 
     5  
     6  ## Overview
     7  
     8  The proxy implements the server `router.ServeRequest` method so it can be replaced in a go-micro server. It can 
     9  then be used by setting the env var `MICRO_PROXY` to the proxy service name or `MICRO_PROXY_ADDRESS` to the proxy 
    10  address. Any requests are then routed through the proxy rather than using the selector/registry.
    11  
    12  The proxy makes use of the go-micro router which maintains routing information based on the registry and acts 
    13  as an aggregate for intelligent routing decisions. The proxy can use this directly or talk to a router service.
    14  
    15