github.com/outbrain/consul@v1.4.5/website/source/intro/vs/proxies.html.md (about) 1 --- 2 layout: "intro" 3 page_title: "Consul vs. Envoy and Other Proxies" 4 sidebar_current: "vs-other-proxies" 5 description: |- 6 Modern service proxies provide high-level service routing, authentication, telemetry, and more for microservice and cloud environments. Envoy is a popular and feature rich proxy. This page describes how Consul relates to proxies such as Envoy. 7 --- 8 9 # Consul vs. Envoy and Other Proxies 10 11 Modern service proxies provide high-level service routing, authentication, 12 telemetry, and more for microservice and cloud environments. Envoy is 13 a popular and feature rich proxy. 14 15 Proxies require a rich set of configuration to operate since backend 16 addresses, frontend listeners, routes, filters, telemetry shipping, and 17 more must all be configured. Further, a modern infrastructure contains 18 many proxies, often one proxy per service as proxies are deployed in 19 a "sidecar" model next to a service. Therefore, a primary challenge of 20 proxies is the configuration sprawl and orchestration. 21 22 Proxies form what is referred to as the "data plane": the pathway which 23 data travels for network connections. Above this is the "control plane" 24 which provides the rules and configuration for the data plane. Proxies 25 typically integrate with outside solutions to provide the control plane. 26 For example, Envoy integrates with Consul to dynamically populate 27 service backend addresses. 28 29 Consul is a control plane solution. The service catalog serves as a registry 30 for services and their addresses and can be used to route traffic for proxies. 31 The Connect feature of Consul provides the TLS certificates and service 32 access graph, but still requires a proxy to exist in the data path. As a 33 control plane, Consul integrates with many data plane solutions including 34 Envoy, HAProxy, Nginx, and more. 35 36 Consul provides a built-in proxy written in Go. This trades performance 37 for ease of use: by being built-in to Consul, users of Consul can get 38 started with solutions such as Connect without needing to install other 39 software. But the built-in proxy isn't meant to compete on features or 40 performance with dedicated proxy solutions such as Envoy. Consul enables 41 third party proxies to integrate with Connect and provide the data 42 plane with Consul operating as the control plane. 43 44 The Connect feature of Consul operates at layer 4 by authorizing a TLS 45 connection to succeed or fail. Proxies provide excellent solutions to 46 layer 7 concerns such as path-based routing, tracing and telemetry, and 47 more. Consul encourages using any proxy that provides the featureset required 48 by the user. 49 50 Further, by supporting a pluggable data plane model, the right proxy can be 51 deployed as needed. For non-performance critical applications, the built-in 52 proxy can be used. For performance critical applications, Envoy can be used. 53 For some applications that may require hardware, a hardware load balancer 54 such an F5 appliance may be deployed. Consul provides an API for all of these 55 solutions to be integrated.