How DeepL keeps closest-exit routing during maintenance with AWS Cloud WAN
DeepL drains a single AWS Direct Connect link for maintenance by prepending AS_PATH on that link's virtual interface. The prepend shifts only the affected Region's egress to a peer core network edge, and every other Region keeps its closest exit. Local preference communities don't work for this because the Direct Connect gateway evaluates them before AS_PATH, and they would re-rank exits for all Regions at once. The core network edge, by contrast, picks paths by AS_PATH length. Use at least two prepends (DeepL uses five), since one prepend ties and Cloud WAN then still prefers the gateway path. Lower on-premises local preference so inbound traffic moves too, keep flows symmetric if a stateful firewall sits in the path, and budget for inter-Region transfer charges during the drain.
Related posts
- Building the Next Evolution of Cloud Networks at Slack – A Retrospective
Slack Engineering mediumAdeptA year after launching Whitecastle, its AWS network redesign built on Transit Gateway, Slack found that proxy environment variables (http_proxy/no_proxy) were the biggest migration drag. Languages honor them inconsistently: Java ignores them, and CIDR support differs between Ruby, Go and Python. Partial migrations pushed huge, bursty traffic through Transit Gateway, which required CloudWatch attachment-level monitoring and help from AWS to scale. The team replaced VPC peering with Transit Gateway without downtime by adding a less-specific 10.0.0.0/8 route before deleting the peering routes. Later improvements included multiple workload VPCs per region, cross-account private Route53 zone associations, a self-discovering network tester backed by DynamoDB, and a Slack bot for looking up network details.
- Traffic 101: Packets Mostly Flow
Slack Engineering mediumAdeptA Slack request reaches its main region in AWS us-east-1 through a chain of hops. DNS answers come from Route53, or from NS1 for websocket records, and use edns-client-subnet to pick the nearest edge PoP. From there, Layer 4 NLBs pass traffic to Envoy-based Layer 7 tiers (envoy-wss for websockets, envoy-edge for API traffic), which route to internal services like Gatewayserver, Applink, Flannel, Imgproxy and Supra/Miata. Traffic from a PoP to the main region rides the AWS backbone, encrypted by Nebula. Failure handling is layered: a backup websocket domain uses an NS1 filter chain that shuffles among the three nearest regions to avoid thundering herds, a Degraded Mode falls back to the HTTP API when websockets fail, an Edge Pop Drain tool flips DNS to drain unhealthy PoPs automatically, and CloudFront has a backup CDN domain with client-side failover.
- How Mux Routed Around a Major Network Outage | Mux
Mux mediumAdept
During the June 24 Verizon BGP route leak (AS701), Mux Video's dynamic CDN selection, built on Citrix ITM and Radar RTT data, automatically shifted affected viewers from Fastly to Stackpath/Highwinds. Fastly RTT on AS701 jumped from 11ms to 80ms while Highwinds rose only from 12ms to 26ms, which overrode a cost-based handicap favoring Fastly. The cutover was limited to the impacted ASNs and geographies, and because Highwinds still pulled through the Fastly origin shield, origin egress did not increase.
- MagicRoute: Routing without physical routers
Tailscale easyNovice
MagicRoute replaces Tailscale's DERP-region-based regional routing with per-client scoring of subnet routers, app connectors and Service hosts, currently using coarse geographic distance rather than latency. Regional routing caused connectors on well-connected backbones to flap between DERP regions with near-identical latency, which broke SSH sessions and triggered cascading client switches. MagicRoute keeps clients on their preferred connector while it stays healthy, spreads ties evenly, fails over down a ranked list, and works with custom DERP servers. It is in beta for Premium and Enterprise tailnets as a single tailnet-wide setting, with reachability checks and more scoring signals under consideration.
- Using mathematics to validate network configurations
Amazon Science easyNoviceAWS validates Cloud WAN network segmentation statically by translating route tables, attachments and policy documents into logical rules and facts, then querying its automated-reasoning engine Tiros for which attachments can reach which others with which destination IPs. Each satisfying assignment corresponds to a path, so the absence of any path between segments the policy declares isolated (e.g. production and development VPCs sharing 10.0.0.0/16) demonstrates the segmentation holds across all modeled paths. This replaces packet-based sampling, which cannot exhaustively cover large networks, and can run as often as hourly, alerting operators when actual reachability diverges from policy.