Peering automation at Facebook
Facebook replaced its manual, email-driven public peering process with a self-service portal at facebook.com/peering, where networks authenticate via PeeringDB OAuth and request BGP sessions at internet exchanges. Approved requests trigger a workflow that validates peer data (IPs, max-prefix) against PeeringDB and internal tables, configures Facebook's routers, emails the peer, and checks daily for session establishment, sending reminders on days 2, 3, 7 and 13. The system has pushed over 1,400 sessions from 149 approved requests, saving more than eight hours of engineer time per week, and Facebook recommends PeeringDB OAuth as an industry standard for peering automation.
Related posts
- Password Protection with OAuth2 Proxy
Render mediumAdept
Putting oauth2-proxy in front of a Render Private Service adds OAuth-based login (Google, GitHub and a dozen other providers) to an existing web app without touching its code. The proxy runs the OAuth 2.0 flow, verifies the returned token out-of-band with the provider using a client ID and secret, then forwards authenticated requests to the backend service, which must not be publicly reachable. Authorization can be limited to members of a Google Group, GitHub org or GitLab project, or the username can be passed to the backend for its own checks. The tradeoff is running and paying for an extra service and dealing with OAuth configuration. Pomerium and BuzzFeed's sso are alternatives.
- Running Border Gateway Protocol in large-scale data centers
Meta Engineering hardMasterFacebook runs BGP as the routing foundation of its data centers, and found it works well only when co-designed with the topology, configuration, switch software and fleet-wide operations pipeline. The design reuses a uniform AS numbering scheme with BGP confederations across fabrics and applies hierarchical route summarization at every level to keep hardware forwarding tables small. Routing policies set propagation scopes, predefine backup paths, and allow graceful traffic draining from faulty devices. A minimal in-house BGP agent is shipped through unit testing, emulation, canary testing and multi-phase deployment so it can be updated frequently.
- Inside Facebook’s video delivery system
Meta Engineering mediumAdeptFacebook spent roughly two years unifying its separate Watch and Reels stacks across mobile clients, the server layer and ranking, in a deliberate order. First came a shared client and server data model, then the immersive Reels UI for long-form VOD, then unified ranking (shipped August 2024) once UI signals were consistent, and finally a single video tab mixing Reels, VOD and live. The delivery pipeline runs on five principles: freshness, ranking-decided order, minimal vending, deterministic fetching and signal-driven delivery. Concretely, clients use prefetch, head and tail loads gated on an in-memory pool of three or fewer network stories; the GraphQL server handles caching, throttling, TAO loads and costly privacy checks; and ranking runs a graph-based multi-stage retrieval and ranking workflow with elastic ranking under load.
- Staying Evergreen: How we automated secure access and repo hygiene in a shared org
GitHub Engineering mediumAdeptEvergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail. It fails secure by revoking all access when a review goes unanswered, fails closed by keeping reviews pending until every removal succeeds, and never deletes anything. Rollout relied on a DRY_RUN mode, logfmt logs in Splunk, and proactive pacing to stay under GitHub's secondary content-creation rate limits of 80 requests/minute and 500/hour.
- Flexible Authentication: Reimagining authentication for millions of users at Airbnb
Airbnb Engineering easyNoviceAirbnb rebuilt login and signup around an "Identify first then Challenge" model. Users first identify themselves by email, phone or social login, then a server-side policy engine picks the challenge most likely to succeed for that account and context, such as WhatsApp OTP in Brazil or Naver in South Korea. Every screen includes a server-ranked "Try another way" Challenge Picker, so users never hit a dead end. The whole flow is server-driven, with clients acting as thin renderers built on generated types. That design cut client code by 60% and the web bundle by 100KB, enabled 20+ experiments in three months without app releases, raised successful authentication by 2.6%, reduced duplicate accounts by 27% and lowered OTP costs by about 11%.