How openshift-service-mesh/envoy works
Envoy is a cloud-native edge, middle, and service proxy. Its principal runtime path accepts downstream connections, processes HTTP streams through configured filters and routing, then uses upstream clusters and connection pools to reach services; it also supports dynamic xDS configuration, access logging, and mobile-engine embedding. The graph reflects these documented capabilities and sampled interfaces/implementations. Several runtime links are dashed because the relevant dispatch or call sites were not excerpted.
Main entry points: conn_manager_impl.cc HTTP connection manager · cluster_manager_impl.cc Cluster management · xds_manager_impl.cc xDS manager · main.cc Envoy process
Components 17
Proxy Runtime
- Envoy process
source/exe/main.cc - Listener manager
source/common/listener_manager/listener_manager_impl.cc - Connection handling
envoy/network/connection_handler.h - HTTP connection manager
source/common/http/conn_manager_impl.cc - HTTP routing
api/envoy/config/route/v3/route_components.proto - Cluster management
source/common/upstream/cluster_manager_impl.cc - Upstream services
envoy/upstream/cluster_manager.h
Configuration Control
- xDS manager
source/common/config/xds_manager_impl.cc - Bootstrap config
api/envoy/config/bootstrap/v3/bootstrap.proto - Listener config API
envoy/server/listener_manager.h
Filters and Telemetry
- HTTP filters
api/envoy/extensions/filters/http - RBAC engine
source/extensions/filters/common/rbac/engine_impl.cc - Access logging
source/common/http/conn_manager_impl.cc
Mobile Engine
- Mobile engine builder
mobile/library/cc/engine_builder.cc - Mobile internal engine
mobile/library/common/internal_engine.cc
Other components
- Downstream clients
- Mobile app
Connections 17
- Downstream clients → Envoy process: sends traffic
README.md - Envoy process → Listener manager: starts runtime
- Listener manager → Connection handling: accepts connections
- Connection handling → HTTP connection manager: dispatches HTTP
- HTTP connection manager → HTTP routing: routes requests
- HTTP connection manager → Access logging: logs streams
source/common/http/conn_manager_impl.cc - HTTP connection manager → HTTP filters: runs filters
- HTTP filters → RBAC engine: checks policy
- HTTP routing → Cluster management: selects cluster
- Cluster management → Upstream services: manages pools
source/common/upstream/cluster_manager_impl.cc - Bootstrap config → Cluster management: configures clusters
source/common/upstream/cluster_manager_impl.cc - Cluster management → xDS manager: initializes manager
source/common/upstream/cluster_manager_impl.cc - xDS manager → Bootstrap config: reads config
- xDS manager → Listener config API: updates listeners
- Mobile app → Mobile engine builder: configures engine
- Mobile engine builder → Mobile internal engine: builds engine
- Mobile internal engine → HTTP connection manager: uses HTTP client
mobile/library/common/internal_engine.cc