Cloudflare Migrates JavaScript CDN Serving 9B Requests a Day to Its Developer Platform
Cloudflare has migrated cdnjs, its open source CDN for JavaScript and CSS libraries, to its Developer Platform. The new architecture uses Workers, R2, KV, Workflows, Queues, Durable Objects and Containers, consolidating publishing and delivery infrastructure while preserving package contents, URLs and SRI hashes at a scale of 9 billion requests per day. By Leela Kumili
Cloudflare has completely transitioned its open-source JavaScript and CSS CDN, cdnjs, to its Developer Platform. The service, which handles over 9 billion requests daily on average, averaging 108,000 requests per second, has been restructured to utilize Workers, R2, Workflows, Queues, Durable Objects, KV, and Containers. This migration consolidates publishing infrastructure previously spread across Cloudflare and Google Cloud Platform onto Cloudflare's own tools.
R2 now serves as the source of truth for published package files, while KV holds package metadata, versions, and Subresource Integrity (SRI) hashes. A Worker handles incoming requests, and Workers Cache manages the caching layer. Archived package data is mirrored to DigitalOcean Spaces as a backup. Publishing now occurs through Cloudflare Workflows, which monitor npm and GitHub for new releases, download packages into R2, process them individually, and update metadata in KV and the Algolia search index.
The platform had previously increased Worker subrequests and Workflow steps limits to accommodate the migration's demands.
Written by urgent.news from InfoQ's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.