Architecture Intermediate
Ambassador Pattern — proxy pro externí služby¶
AmbassadorProxyPatterns 3 min read
Ambassador jako proxy mezi aplikací a externími službami. Retry, circuit breaking, monitoring.
Principle¶
Speciální typ sidecar pro komunikaci s externími službami. Centralizuje retry, circuit breaking, logging.
Example¶
Aplikace se připojuje k localhost:6379, ambassador řeší TLS a retry k externímu Redis.
# Envoy ambassador config
clusters:
- name: redis_cluster
connect_timeout: 5s
type: STRICT_DNS
load_assignment:
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address: {address: redis.external.com, port_value: 6379}
circuit_breakers:
thresholds:
- max_connections: 100
Summary¶
Ambassador = podmnožina sidecar patternu. Jednotné řešení pro retry, monitoring a circuit breaking k externím službám.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.