---
title: "Traffic 101: Packets Mostly Flow"
description: "A Slack request reaches its main region in AWS us-east-1 through a chain of hops."
url: "https://swe.quest/articles/traffic-101-packets-mostly-flow-e9828aceea724731"
canonical: "https://slack.engineering/traffic-101-packets-mostly-flow/"
source: "Slack Engineering"
published: "2023-08-28"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 9
tags: ["networking","load-balancing","dns","resilience","cdn-edge"]
---

# Traffic 101: Packets Mostly Flow

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2023-08-28, 9 min read, Deep dive. Original: [https://slack.engineering/traffic-101-packets-mostly-flow/](https://slack.engineering/traffic-101-packets-mostly-flow/)

## Summary

A 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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [DNS](https://swe.quest/tags/dns.md) (Infrastructure)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)

## Prerequisites

- DNS resolution basics ([easy posts on DNS](https://swe.quest/tags/dns.md?difficulty=easy))
- L4 vs L7 load balancing ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))
- WebSockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))

## Keywords

Envoy, NS1, Amazon Route53, AWS NLB, CloudFront, edns-client-subnet, Nebula

## Related posts

- [Incident Report: October 16th, 2025](https://swe.quest/articles/incident-report-october-16th-2025-6eb111a489b39aef.md): Railway · 2025-10-16 · Easy · 3 min read · Incidents & postmortems, Load balancing, Resilience, CDN & edge
  A traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization.
- [Self-service regional failover with Amazon Application Recovery Controller Region Switch and centralized ingress controls](https://swe.quest/articles/self-service-regional-failover-with-amazon-application-recovery-controller-437af76811f71074.md): AWS Architecture Blog · 2026-11-10 · Medium · 17 min read · Resilience, Cloud platforms, DNS, Networking, System design
  Application teams in regulated enterprises can run self-service multi-Region failover behind a centralized ingress proxy fleet by owning a Route 53 Private Hosted Zone failover recordset while a central team owns peered Transit Gateways and VPC attachments.
- [Hello, World: We’re Railway](https://swe.quest/articles/hello-world-we-re-railway-63540b1cb9b8fafa.md): Railway · 2023-09-25 · Medium · 17 min read · Networking, CDN & edge, Load balancing, Infrastructure as code, Storage systems
  Railway launches US-East, EU-West and Southeast Asia regions alongside its original US-West GCP zone, with one-click region moves that need no URL or DNS changes.
- [Migrating Millions of Concurrent Websockets to Envoy](https://swe.quest/articles/migrating-millions-of-concurrent-websockets-to-envoy-b99b542be70019c3.md): Slack Engineering · 2021-03-15 · Medium · 11 min read · Load balancing, Real-time systems, Deployment, Configuration management, Networking
  Slack moved its websocket ingress tier, serving millions of concurrent connections, from HAProxy to Envoy Proxy.
- [Modal's serverless Servers](https://swe.quest/articles/modal-s-serverless-servers-c4c4d9aad435b2d6.md): Modal · 2026-06-25 · Medium · 10 min read · Load balancing, Serverless, Inference & serving, Rust, Performance engineering
  Modal Servers are a low-latency HTTP/WebSocket/gRPC serving primitive that cut p50 request latency from 39ms to 6ms versus Modal Web Functions by dropping platform-managed queueing and keeping network calls off the hot path.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
