<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed" -->

---
title: Starting my Content Delivery Network | daily.dev
description: A personal project exploring how to build a small-scale content delivery network using a self-owned Autonomous System Number (ASN). The project investigates...
canonical: https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Starting my Content Delivery Network | daily.dev
og:description: A personal project exploring how to build a small-scale content delivery network using a self-owned Autonomous System Number (ASN). The project investigates...
og:url: https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed
og:image: https://api.daily.dev/og/posts/MquFa0xED.png
og:image:alt: Starting my Content Delivery Network
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Starting my Content Delivery Network

**[apalrd's adventures](https://daily.dev/sources/apalrd)** · 1 min read · 0 upvotes · 0 comments

## Summary

A personal project exploring how to build a small-scale content delivery network using a self-owned Autonomous System Number (ASN). The project investigates two traffic distribution strategies: BGP-based anycast versus DNS-based distribution, with initial experiments measuring latency differences between the two approaches.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.apalrd.net/projects/cdn>

## Questions this post answers

### What are the two main approaches to directing traffic in a CDN?

The two main approaches are BGP-based anycast and DNS-based distribution. BGP anycast advertises the same IP prefix from multiple locations so routing infrastructure directs users to the nearest node, while DNS-based distribution uses geographic or latency-aware DNS responses to steer users. Both have different latency characteristics that can be measured experimentally.

_Engineers weighing CDN routing strategies find real-world comparisons like this on daily.dev._

## Similar posts on daily.dev

- [500 Tbps of capacity: 16 years of scaling our global network](https://daily.dev/posts/500-tbps-of-capacity-16-years-of-scaling-our-global-network-epwhxsyeu) · Cloudflare · 0 upvotes · 0 comments
- [Self-Hosting Behind CGNAT](https://daily.dev/posts/self-hosting-behind-cgnat-lrdls1bcr) · Lobsters · 1 upvotes · 0 comments
- [What Is a CDN and Does Your Website Need One?](https://daily.dev/posts/what-is-a-cdn-and-does-your-website-need-one--fhqqqhfnh) · Telerik · 0 upvotes · 0 comments
- [UDP Broadcasting And The Brave New World Of IPv6](https://daily.dev/posts/udp-broadcasting-and-the-brave-new-world-of-ipv6-kbr2qsudb) · Hackaday · 0 upvotes · 0 comments
- [Improving NAT traversal, pt. 3: looking ahead](https://daily.dev/posts/improving-nat-traversal-pt-3-looking-ahead-sd7jm9lvd) · Tailscale · 0 upvotes · 0 comments

---

Tags: [#dns](https://daily.dev/tags/dns), [#bgp](https://daily.dev/tags/bgp)

[View this post on daily.dev](https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Starting my Content Delivery Network","url":"https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed"},"datePublished":"2026-08-11T08:56:26.177Z","dateModified":"2026-08-11T09:35:13.891Z","description":"A personal project exploring how to build a small-scale content delivery network using a self-owned Autonomous System Number (ASN). The project investigates...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/92f54ecf7163dcc2e5958982275fa85a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/92f54ecf7163dcc2e5958982275fa85a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"apalrd's adventures","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"apalrd's adventures","logo":"https://media.daily.dev/image/upload/s--4zkx8dRj--/f_auto,q_auto/v1786438309/logos/apalrd?_a=BAMAMicg0","url":"https://daily.dev/sources/apalrd"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"dns,bgp","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"apalrd's adventures","item":"https://daily.dev/sources/apalrd"},{"@type":"ListItem","position":3,"name":"Starting my Content Delivery Network"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/starting-my-content-delivery-network-mqufa0xed#faq","mainEntity":[{"@type":"Question","name":"What are the two main approaches to directing traffic in a CDN?","acceptedAnswer":{"@type":"Answer","text":"The two main approaches are BGP-based anycast and DNS-based distribution. BGP anycast advertises the same IP prefix from multiple locations so routing infrastructure directs users to the nearest node, while DNS-based distribution uses geographic or latency-aware DNS responses to steer users. Both have different latency characteristics that can be measured experimentally. Engineers weighing CDN routing strategies find real-world comparisons like this on daily.dev."}}]}
```

