Today, when a CDN nameserver receives a DNS query for a customer's domain, it decides which CDN IP to return based on servicelevel objectives such as managing load or maintaining performance, but also internal needs like split testing. Many of these decisions are made a priori by assignment systems that imperatively generate maps from DNS query to IP address(es). Unfortunately, imperative assignments obfuscate nameserver behavior, especially when different objectives conflict. In this paper we present Topaz, a new authoritative nameserver architecture for anycast CDNs which encodes DNS objectives as declarative, modular programs called policies. Nameservers execute policies directly in response to live queries. To understand or change DNS behavior, operators simply read or modify the list of policy programs. In addition, because policies are written in a formally-verified domain-specific language (topaz-lang), Topaz can detect policy conflicts before deployment. Topaz handles ~1M DNS queries per second at a global CDN, dynamically deciding addresses for millions of names on six continents. We evaluate Topaz and show that the latency overheads it introduces are acceptable.
We present the position that the time for general, scalable, privacy-preserving web cache speculation is at hand. At its core, web speculation is about predicting what resources users will want. Machine learning (ML) seems like a natural fit for this predictive task. We show, however, that ML is not fundamentally necessary to achieve a ~10% performance improvement worldwide across a diverse set of sites. We also present a set of constraints that large-scale CDNs are subject to, how these constraints limit the possibilities of using ML, what we did instead to achieve our performance results, and a discussion on the place of ML in large, Internet-scale, systems.