Skip to content
Blogs
Cloudflare logo

Cloudflare

Engineering blog · blog.cloudflare.com

905posts0this week0watchers

Feature trails

120
Feature trailActive

DNS Infrastructure & Naming Conventions

Cloudflare's DNS infrastructure has evolved to include Internal DNS, providing a unified platform for managing both public and private DNS resources. This integrates authoritative and recursive DNS for private networks onto Cloudflare's global network and control plane, simplifying split-horizon DNS, extending Zero Trust policies to DNS, and modernizing legacy infrastructure by retiring hardware appliances and cloud-locked resolvers. The system comprises a Gateway Resolver for recursive resoluti

63 posts · 2011–2026

Timeline

…20172026
Feature trailActive

Edge Computing with Cloudflare Workers

Cloudflare Workers has evolved to support self-hosting via the integration of Deno's celld and Cloudflare's workerd. This unification aims to make it radically easy to build and operate distributed applications on developers' own infrastructure, leveraging primitives like Durable Objects, Queues, KV, and Durable Execution. The combined effort focuses on simplifying the management of distributed systems, including compute, relational databases, queues, and real-time communication, with object storage as the primary external dependency for celld.

104 posts · 2014–2026

Timeline

…20172026
Feature trailActive

Artificial Intelligence Integration & Impact

Cloudflare One's AI offerings are converging into a unified control plane, integrating Workers AI and AI Gateway. This unification provides a single entrypoint (Workers binding and REST API) for accessing various AI models, including those hosted on Cloudflare's infrastructure (Workers AI) and external providers. The unified control plane offers automatic observability, logging, and cost attribution for all AI inference traffic, even for users who haven't explicitly configured an AI Gateway. New multimodal models like Clef-omni are being integrated, offering audio, video, image, and text input. Clef-flash has been made cheaper with a reduced context window, and Clef has seen performance improvements through serving infrastructure optimizations. Models are built on Qwen3-Omni-30B-A3B-Instruct mixture-of-experts (MoE) foundations, utilizing LoRA for training and Brier score calibration for robustness. Benchmarking shows competitive performance across various tasks and modalities.

35 posts · 2020–2026

Timeline

20202026
Feature trailActive

Asynchronous Messaging & Queuing

Cloudflare K2 is a new durable event streaming primitive on the Developer Platform, built on R2 object storage. It implements a partitioned, durable log for high-scale data movement, long-term retention, and fan-out consumption. K2 offers serverless operation, scales to vast quantities of data, and supports long-term retention. It differs from Queues by focusing on batch processing for high-scale data movement and fan-out consumption, whereas Queues are designed for tracking individual items of expensive or time-consuming work with message-level retries. K2's produce latency is approximately 1 second at the 99th percentile due to batching and writing to object storage. Future plans include higher write parallelism, message keys, push-based worker consumers, and Kafka client support.

11 posts · 2018–2026

Timeline

20182026
Feature trailActive

Random Number Generation for Security

Cloudflare's security posture continues to evolve with the integration of post-quantum cryptography primitives into Cloudflare Workers' Web Crypto API. This enables developers to experiment with and integrate ML-KEM and ML-DSA algorithms, providing building blocks for future secure protocols like HPKE and OHTTP. The implementation leverages BoringSSL and adds support for `getPublicKey()` and `SubtleCrypto.supports()` for better interoperability. Future work may include broader algorithm support and protocol-level integrations.

42 posts · 2013–2026

Timeline

…20172026
Feature trailActive

Website Security & Threat Management

Cloudflare One's security posture management capabilities have evolved to provide real-time discovery and inventory of assets and documents across SaaS and web applications. This includes continuous asset-aware threat detection and risk assessment, with prioritized remediation suggestions. For SaaS applications, a dynamic and real-time data collection pipeline using Cloudflare Workers, R2, and Queues has replaced batch crawlers to ingest vendor webhook events, providing near real-time insights. The WAF has been enhanced with AI-driven testing to identify and mitigate new attack vectors, including those generated by frontier AI models, leading to the creation of new detections and hardening of existing rules.

266 posts · 2010–2026

Timeline

…20172026
Feature trailActive

Linux Kernel Fuzzing

Cloudflare's security posture management has evolved to include advanced vulnerability discovery and remediation techniques. This includes leveraging AI-assisted systems for vulnerability discovery, enhancing static analysis tools with custom rulesets, and implementing robust Linux kernel security modules with eBPF. The company is also actively working to reduce entire classes of vulnerabilities through secure-by-design principles and by addressing specific kernel vulnerabilities like those found in traffic control and connection tracking. Furthermore, Cloudflare has enhanced its container security by addressing cross-tenant data exposure vulnerabilities in its Containers and Sandboxes services, which involved understanding and mitigating issues with Linux device mapper thin provisioning and block zeroing behavior. The company has also invested in fuzzing the Linux kernel, particularly its Netlink machinery, to proactively identify and fix potential security flaws.

2 posts · 2019–2026

Timeline

20192026
Feature trailActive

Cache Management

Cloudflare's cache management has evolved to offer all purge methods (URL, hostname, tag, prefix, everything) to all customers, enabled by a rebuilt "Instant Purge" pipeline. This pipeline utilizes RocksDB-based "CacheDB" alongside cache proxies for active purging, reducing storage requirements by 10x and improving cache hit ratios. Rate limits have also been increased across plans, with Enterprise customers receiving significantly higher throughput. Future work includes optimizing single-file purge performance and enhancing filtering techniques.

48 posts · 2010–2026

Timeline

…20172026
Feature trailActive

Content Management System (CMS) Evolution

Cloudflare Pages has evolved to support headless CMS integrations through Deploy Hooks, enabling automated deployments triggered by content updates. This enhances the developer experience by decoupling content management from code deployments and allows marketing teams to update sites autonomously. Partnerships with Sanity, Strapi, Contentful, and WordPress are highlighted, with ongoing efforts to build further integrations. Deploy Hooks allow external services to trigger site builds on Pages via EmDash 1.0 is a stable, free, and open-source CMS built on Astro, ready for production websites, agency platforms, and hosting company site-building experiences. It integrates editorial, media, localization, migration, and deployment workflows. A decentralized plugin registry allows developers to publish without central marketplace ownership, and site owners can discover and install plugins directly from within EmDash. Key features include production-tested editorial workflows, media management, localization, migration, and deployment capabilities. Performance optimizations include KV object caching, Hyperdrive database adapter, and Workers Cache compatibility, spawned from the Cloudflare Blog migration project. The plugin registry is built on AT Protocol, enabling decentralized publishing and discovery.

9 posts · 2020–2026

Timeline

20202026
Feature trailActive

Dynamic Process Isolation for Edge Compute Security

Cloudflare Workers has evolved its security model to address side-channel attacks like Spectre and improve the isolation of customer code. This includes leveraging hardware-assisted memory protection keys to isolate V8 heaps between isolates, achieving a 92% protection rate against data leakage. Additionally, the V8 sandbox, a software-based security boundary, is being adopted to prevent memory corruption attacks from escalating. This involves using compressed pointers and removing pointers from the heap to thwart buffer overflow and other memory corruption vulnerabilities, aiming for 100% protection against certain attack vectors.

1 post · 2020–2026

Timeline

20202026
Feature trailActive

Account Access Management & Permissions

Cloudflare One's account access management and permissions have evolved to support granular controls for Workers and other Developer Platform products. This includes new roles (Metadata Read-Only, Content Read-Only, Editor, Admin) that can be applied at the Developer Platform, Product, or Resource level. These roles allow for fine-grained access control for both human users and agents, ensuring least privilege access. This system is being extended to other Developer Platform products like D1, R2. The integration with Okta for sharing user risk scores allows for dynamic enforcement of access policies based on real-time risk assessments, enhancing Zero Trust principles by incorporating rich context into access decisions.

32 posts · 2013–2026

Timeline

…20172026
Feature trailActive

Global Network Expansion

Cloudflare's global network has expanded to include new data centers and increased server capacity across existing locations, enhancing performance and reliability for users worldwide. This expansion aims to reduce latency, improve bandwidth availability, and provide regional redundancy by deploying infrastructure closer to end-users. The addition of new locations and increased capacity contributes to handling growing traffic demands. The network now exceeds 500 Tbps of external capacity, with a focus on building out regional backbones to reduce traffic tromboning and support data localization.

115 posts · 2011–2026

Timeline

…20172026
Feature trailActive

Global Consensus Service

Cloudflare is developing Meerkat, an experimental global consensus service powered by the QuePaxa algorithm. This service aims to provide strongly consistent and highly available control-plane state management across its distributed data centers, overcoming limitations of traditional leader-based consensus algorithms like Raft in wide-area networks. Meerkat will initially manage small pieces of control plane state, such as leadership for replicated databases, and will be kept internal-only.

1 post · 2026

Timeline

Feature trailActive

Global Distributed Databases

Cloudflare Workers now supports direct integration with PostgreSQL databases, enabling developers to build serverless applications with familiar relational database backends. This integration leverages Hyperdrive for global connection pooling and caching, and PostgREST for exposing PostgreSQL functionality as a REST API. Hyperdrive has evolved to support Postgres protocol-level named prepared statements, improving performance and developer experience by caching query execution plans and handling session scope complexities.

22 posts · 2013–2026

Timeline

…20172026
Feature trailActive

Asynchronous Messaging and Event-Driven Architectures

Cloudflare Workflows, a serverless durable execution engine for building long-running, multi-step applications on Workers, is now Generally Available. It offers production-ready reliability with step-based architecture, automatic retries, and state persistence. New capabilities include the `waitForEvent` API for human-in-the-loop interactions and AI agent integration. Pricing now includes storage costs for persisted state, with a grace period for the new storage charges. Workflows continue to scale and evolve with new features.

5 posts · 2018–2026

Timeline

20182026
Feature trailActive

Process Management & Graceful Upgrades

Cloudflare's process management and graceful upgrades have evolved with the introduction of udpgrm, a lightweight daemon that leverages Linux's SO_REUSEPORT API and eBPF for stateful flow tracking to enable zero-downtime restarts for UDP servers. This addresses the challenges of migrating flow state for stateful UDP protocols like QUIC, WireGuard, and SIP, which were previously difficult to handle gracefully. udpgrm manages the complexity of socket generation, flow dissectors, and eBPF program installation, allowing server processes to focus on their core logic.

26 posts · 2015–2026

Timeline

…20172026
Feature trailActive

Cloudflare Apps Program

Cloudflare's Apps program has evolved from offering simple integrations to a robust platform for third-party tools and services. Initially focused on enhancing websites, it expanded to include a more organized dashboard and acquired Eager. The program has now integrated with Cloudflare Workers, enabling developers to build and package serverless applications, creating the world's first serverless Apps platform. This evolution includes enabling codeless integrations for complex security solutions.

16 posts · 2017–2026

Timeline

20172026
Feature trailActive

Proxy Framework Development

Cloudflare is developing Oxy, a next-generation, Rust-based proxy framework designed to handle high-load scenarios and support a wide array of communication protocols. This includes exploring and implementing MASQUE (Multiplexing And Secure Communication over QUIC Express) to enable efficient tunneling of UDP traffic over QUIC, building on the DATAGRAM frame extension and extended CONNECT requests. This allows for proxying of protocols like HTTP/3 and other UDP-based applications, with consideration for kernel bypass techniques and efficient data handling. The Images service utilizes hyper, an open-source HTTP library for Rust, for managing socket connections and handling data flow between services. Debugging efforts focused on a race condition within hyper's buffer management when handling large responses, leading to data truncation. The investigation involved deep system-level tracing with strace to understand syscall behavior during successful and failing requests, ultimately identifying a timing-sensitive race condition in hyper's buffer flushing mechanism that occurred under high concurrency and large data loads. A four-line code fix was implemented to address the issue.

8 posts · 2019–2026

Timeline

20192026
Feature trailActive

Hardware Infrastructure & Performance Optimization

Cloudflare's hardware infrastructure and performance optimization efforts have evolved to include strategic adoption of new server generations (Gen 12) featuring increased CPU core counts (AMD EPYC 9684X Genoa-X), improved memory capacity and bandwidth (DDR5), faster NVMe storage, and enhanced networking capabilities (25 GbE NICs). This evolution focuses on maximizing compute density and performance per watt to handle growing traffic demands and reduce data center expansion costs. The Gen 12 servers offer a 145% performance improvement and 63% power efficiency improvement over Gen 11 servers. The design also incorporates hardware root of trust (HRoT) and modular baseboard management controllers (OCP DC-SCM) for enhanced security and vendor-agnosticism, supporting openBMC. A multi-vendor strategy is employed to mitigate supply chain risks.

59 posts · 2013–2026

Timeline

…20172026
Feature trailActive

Data Infrastructure & Analytics

Cloudflare Basin is a serverless data analytics platform built on Apache Iceberg and R2 Object Storage. It includes Basin Pipelines for event ingestion and transformation, Basin Catalog for managing Iceberg metadata and performing automatic maintenance, and Basin SQL for serverless querying of Iceberg tables. The platform emphasizes speed, openness, and cost efficiency, with usage-based pricing and zero egress fees. Future plans include custom partitioning, schema migrations, support for Iceberg V3, and enhanced jurisdiction controls.

135 posts · 2011–2026

Timeline

…20172026
Feature trailActive

Website Content Optimization

Cloudflare Pages has significantly improved its build infrastructure, reducing build initialization time to 2-3 seconds through pre-warmed machines and gVisor sandboxing. Build logs are now streamable for faster debugging. Users gain control over branch builds, allowing specification of branches for automatic deployments and the use of 'CI Skip' commands. Future plans include incremental builds and caching, updated build images, and more productive error messaging. Direct uploads now allow users to serve first-party tags directly from their domain, integrating with Google tag gateway for advertisers. This simplifies setup, improves performance and accuracy by intercepting and re-routing Google tag calls through the user's domain, and ensures cookies are set under the user's domain.

72 posts · 2012–2026

Timeline

…20172026
Feature trailActive

Linux Kernel Crypto API Integration

Cloudflare's Linux kernel infrastructure security has evolved to include robust processes for responding to vulnerabilities like 'Copy Fail' (CVE-2026-31431). This involves rapid assessment, validation of existing behavioral detections, proactive threat hunting, and the engineering of runtime mitigations (e.g., bpf-lsm) and kernel patches. The company leverages a standardized monthly Edge Reboot Release (ERR) cycle for edge infrastructure and a more flexible approach for control plane updates, ensuring timely deployment of security fixes without impacting production services or customer data. The process emphasizes a secure-by-design approach, with a focus on minimizing the attack surface and ensuring fleet-wide resilience.

4 posts · 2015–2026

Timeline

…20172026
Feature trailActive

Feature Flagging Service

Cloudflare has launched Flagship, a native feature flag service built on its own infrastructure (Workers, Durable Objects, KV). This service provides edge-based evaluation of feature flags, integrating with OpenFeature for cross-provider compatibility. It supports complex targeting rules, percentage rollouts, and is designed to facilitate AI-driven autonomous code deployment by providing safety nets for rapid iteration and testing in production.

1 post · 2026

Timeline

Feature trailActive

Network Performance Testing

Cloudflare's network performance testing capabilities have evolved to provide users with a more nuanced understanding of their internet connection quality beyond raw throughput. The Cloudflare Speed Test, built on the Network Quality API and Workers, measures metrics like throughput under realistic usage patterns, loaded and idle latency, jitter, and packet loss. It aims to translate these measurements into an Aggregated Internet Measurement (AIM) score, offering insights into how well a connection supports various use cases like streaming, gaming, and video conferencing. The test acknowledges that results include bottlenecks beyond the ISP, such as the browser and local Wi-Fi, and emphasizes that no single speed test is a definitive measure of ISP service but rather a helpful resource for assessing experience with Cloudflare's network.

1 post · 2021–2026

Timeline

20212026
Feature trailActive

Infrastructure as Code with Terraform

Cloudflare's platform is expanding to offer a comprehensive CI/CD solution, integrating code storage (Artifacts), build/test/deploy pipelines (Workflows, CI SDK), and self-healing capabilities powered by AI agents. This allows for platform-managed or custom CI pipelines, running code in isolated sandbox environments with dependency caching and automated deployment upon successful builds. The integration aims to simplify the developer experience for managing millions of repositories. Workers Build

1 post · 2019–2026

Timeline

20192026
Feature trailActive

Edge Compute Hardware Evolution

Cloudflare's edge compute hardware has evolved from cache-heavy architectures (Gen 12) to throughput-optimized designs (Gen 13). This evolution is driven by the development of new software stacks (FL2) that can leverage increased core counts and improved IPC without being bottlenecked by reduced L3 cache. This enables higher performance per watt and increased rack throughput, supporting the company's global network expansion and sustainability goals.

1 post · 2026

Timeline

Feature trailActive

IP Fragmentation Handling

Cloudflare's platform has evolved to address the complexities and pitfalls of IP fragmentation. This includes understanding the limitations of IPv4 and IPv6 fragmentation, the critical role of Path MTU Discovery (PMTUD) and the 'Don't Fragment' (DF) flag, and the challenges posed by network middleboxes, NAT, and load balancing techniques like ECMP and Anycast. The company actively works to mitigate issues arising from dropped ICMP 'Packet too big' messages and misconfigured routers, aiming to enable the Cloudflare One Client to dynamically adjust its virtual interface MTU on the fly by periodically validating the capacity of the path, ensuring seamless transitions between networks with different MTU limits and maintaining stable connections for applications.

2 posts · 2015–2026

Timeline

…20172026
Feature trailActive

Internal Service Exposure & Management with Spectrum

Cloudflare Spectrum now supports load balancing traffic to private IP endpoints, extending Layer 4 load balancing capabilities to non-HTTP(S) TCP and UDP traffic destined for private networks. This integration with Apollo and Director allows for secure, private origin access via Cloudflare Tunnels, eliminating the need for on-premise hardware and enhancing security by keeping origins inaccessible from the public internet. Future enhancements include support for authenticated device traffic and internal-only traffic.

17 posts · 2018–2026

Timeline

20182026
Feature trailActive

API Definition and Developer Experience

Cloudflare's API definition strategy has evolved to support gRPC over HTTP/2, enhancing security, reliability, and performance for gRPC APIs. This builds upon previous efforts to define APIs using JSON-REST and Protocol Buffers. The CLI tooling is being unified under a new schema-driven code generation pipeline to support all Cloudflare products, with a technical preview of `cf` and a new Local Explorer feature for local development. The new `cf` CLI is designed for agentic development, offering a fresh approach to generating SDKs, CLIs, docs, and libraries through an open-source, pluggable pipeline called Forge. Forge enables preview builds for every pull request, supports chaining of generation targets, and facilitates API versioning without breaking old clients. It aims to empower developers to own and control their API generation processes.

2 posts · 2016–2026

Timeline

…20172026
Feature trailActive

Object Storage

Cloudflare R2 object storage now offers Local Uploads in open beta, allowing object data to be written to a storage location close to the client first, then asynchronously copied to the bucket's region. This significantly reduces upload request duration (TTLB) by up to 75% for cross-region uploads. The feature utilizes Cloudflare Queues for asynchronous replication tasks and a pull model for queue consumers. Data remains strongly consistent and immediately accessible after the initial write. Local Uploads are now generally available.

2 posts · 2020–2026

Timeline

20202026
Feature trailCooling

Configuration Distribution System

Cloudflare's configuration distribution system has evolved from a custom-built system (Quicksilver) to address limitations in scalability, performance, and reliability. Quicksilver v1.5 introduces a proxy/replica model to reduce disk space usage by caching hot keys on disk instead of replicating the full dataset everywhere. This design faces challenges with consistency due to asynchronous replication and is being addressed with Multiversion Concurrency Control (MVCC) to maintain sequential consistency. Workers KV Instant now leverages Quicksilver for instant global replication of key-value data, offering significantly faster reads and writes compared to classic Workers KV, with a pricing model optimized for read-heavy workloads.

2 posts · 2013–2025

Timeline

…20172026
Feature trailCooling

Protocol Deprecation and Evolution

Cloudflare's protocol evolution capabilities have been enhanced by addressing a vulnerability in Mutual TLS session resumption. The issue, tracked as CVE-2025-23419, allowed a client with a valid mTLS certificate for one zone to resume a TLS session with another zone without re-authentication. Cloudflare mitigated this by disabling TLS session resumption for all customers with mTLS enabled. The company is exploring ways to reintroduce performance benefits while maintaining security and is providing customers with tools like Transform Rules and Logs Custom Fields to further harden their mTLS configurations and detect future issues. This evolution also includes the ability to pass detailed client certificate metadata to origins and use this information in WAF custom rules for enhanced security checks.

5 posts · 2012–2025

Timeline

…20172026
Feature trailCooling

CGNAT Detection

Cloudflare is developing methods to detect Carrier-Grade Network Address Translation (CGNAT) to mitigate collateral effects of IP-based security mechanisms. This involves building supervised learning classifiers trained on network measurement techniques like distributed traceroutes to distinguish CGNAT IPs from other IP sharing technologies and single-subscriber IPs. The goal is to enable fairer treatment of users behind CGNAT IPs and reduce unintentional bias, particularly in developing regions.

1 post · 2025

Timeline

20252026
Feature trailCooling

Linux Connection Tracking (conntrack)

Cloudflare's understanding and utilization of Linux's conntrack subsystem has evolved from avoiding it for simplicity to actively investigating its intricacies for new product needs. This includes understanding its state management, capacity limits, and the implications of its behavior when full, such as implicit packet drops and EPERM errors for UDP flows. The company is exploring its use in containerized environments and the nuances of its strict vs. loose modes. This post details how conntrack's interaction with socket binding can lead to unexpected source port rewriting, necessitating solutions like TCP_REPAIR or TCP Fast Open for scenarios involving packet rewriting and socket usage, particularly for soft-unicast address spaces.

2 posts · 2020–2025

Timeline

20202026
Feature trailCooling

Load Balancing UI and Feature Enhancements

Cloudflare's Load Balancing service has evolved to offer Dynamic Steering, enabling automatic traffic direction to the fastest pool based on EWMA RTT measurements from Cloudflare regions. This feature addresses the limitations of manual Geo Steering by dynamically adapting to network conditions and user location. The system propagates pool RTT data via an in-house key-value store (QuickSilver) replicated across all machines in every data center to ensure low-latency steering decisions. This post extends this by enabling end-to-end private traffic flows and WARP authenticated device traffic, eliminating the need for dedicated hardware load balancers by integrating with Cloudflare One, Magic WAN, and WARP for private IP load balancers.

14 posts · 2013–2025

Timeline

…20172026
Feature trailCooling

Web Application Integrity and Transparency

Cloudflare is contributing to the development of Web Application Integrity, Consistency, and Transparency (WAICT), a W3C-backed effort to bring stronger security guarantees to the web. WAICT aims to provide integrity, consistency, and transparency for web applications, similar to the security properties offered by app stores for smartphone applications. This includes defining web applications through integrity manifests and establishing a transparent, append-only log for web application code. The system is designed to be opt-in, avoid extra round trips, preserve user privacy, and be non-centralized and easily auditable.

1 post · 2025

Timeline

20252026
Feature trailCooling

Go Compiler Bug Analysis

Cloudflare's Go compiler bug analysis thread continues with the discovery and debugging of a race condition in the arm64 compiler. This post details the investigation into sporadic panics and segmentation faults observed in a kernel configuration service, tracing the root cause to an interaction between the Go runtime's asynchronous preemption mechanism and the `github.com/vishvananda/netlink` library. The analysis highlights the challenges of debugging rare, intermittent bugs at scale and the process of identifying upstream issues.

1 post · 2015–2025

Timeline

…20172026
Feature trailCooling

Privacy Pass Protocol

Cloudflare's Privacy Pass protocol has evolved with v2.0 of the browser extension, introducing TypeScript, a module bundler, and a refactored API for cryptographic primitives. This enhances maintainability and modularity, making it easier to integrate new service providers. The protocol is also progressing towards standardization at the IETF, with ongoing work on public verifiability and the inclusion of metadata in tokens to address hoarding attacks. Future work includes exploring blind signatures. Cloudflare's initial support for Privacy Pass, a privacy-preserving protocol leveraging zero-knowledge proofs, aimed to reduce the number of challenge pages presented to users accessing the web anonymously or through shared IPs. This helped improve the browsing experience for vulnerable users by allowing them to prove they are human across multiple sites on the Cloudflare network without revealing their identity or exposing customers to additional threats. The protocol is fully open source and available on GitHub.

1 post · 2017–2025

Timeline

20172026
Feature trailCooling

Cloudflare for SaaS

Cloudflare for SaaS has evolved to be available to all customers, not just Enterprise. This solution provides SaaS providers with a unified platform to extend Cloudflare's network benefits, including performance, security (DDoS mitigation, WAF, Bot Management), and SSL certificate management, to their end customers. It integrates with Cloudflare Workers, allowing SaaS companies to focus on core product development while Cloudflare handles infrastructure, security, and performance at the edge. The deprecation of SSL for SaaS v1 (Managed CNAME) is nearing completion, with remaining customers being migrated to the more secure and validated Cloudflare for SaaS v2 model, which uses verified custom hostnames and eliminates IP-based routing risks.

3 posts · 2022–2025

Timeline

20222026
Feature trailCooling

Linux Kernel Hung Task Debugging

Cloudflare's Linux kernel upgrade process has evolved to be more consistent and automated across its network and control plane infrastructure. This includes a standardized monthly Edge Reboot Release cycle for the network and the development of Reboau for automated, rack-aware reboot logic in the Control Plane. The company is also leveraging live patching for faster critical security updates and has implemented robust testing and phased rollout strategies to ensure security and reliability. This post details the investigation and debugging of hung tasks, a critical aspect of kernel stability and reliability, by analyzing kernel messages, stack traces, and system configurations to identify root causes such as filesystem pressure, coredump generation, and mutex contention.

5 posts · 2019–2025

Timeline

20192026
Feature trailCooling

Jest Debugging and Timeout Issues

This thread tracks the evolution of debugging and resolving complex issues within the Jest testing framework, specifically addressing persistent timeouts and cryptic error messages that hinder local development workflows. It details the process of identifying the root cause of a 27-second timeout, which was traced to an underlying system issue rather than a Jest configuration problem, and highlights the use of strace for deep system-level diagnostics.

1 post · 2025

Timeline

20252026
Feature trailCooling

Password Security & Authentication

Cloudflare's password security and authentication mechanisms have evolved to include automatic checking of user passwords against threat intelligence sources that monitor data breaches in other services. If a password is found to be leaked, users are alerted and prompted to reset their password. The system uses password hashes for secure and fast lookups. The platform also encourages the adoption of two-factor authentication (2FA) and plans to expand single sign-on (SSO) capabilities.

3 posts · 2012–2025

Timeline

…20172026
Feature trailCooling

Multi-Path TCP (MPTCP) Implementation

Cloudflare's exploration of Multi-Path TCP (MPTCP) continues, focusing on its implementation and practical application for enhancing connectivity. This post details the setup and configuration of MPTCP on Linux servers and clients, highlighting the use of subflows, path managers, and schedulers. It addresses challenges with existing implementations, particularly regarding client-side path management and server-side flags like 'allow_join_initial_addr_port' in Anycast environments. The post also touches upon the potential for MPTCP to improve mobility and bandwidth aggregation, while acknowledging its current immaturity and case-by-case applicability compared to traditional TCP.

1 post · 2025

Timeline

20252026
Feature trailCooling

Video Streaming with Cloudflare Stream

Cloudflare Stream has evolved to offer first-class portrait (vertical) video support, automatically processing newly uploaded or ingested portrait videos in full HD quality. This addresses a previous limitation where portrait videos were encoded with lower quality dimensions, leading to a grainy appearance on portrait-first devices. The encoding pipeline has been updated to use a constrained target width for portrait videos, generating resolutions from 240x426 up to 1080x1920. This change impacts the Stream API service, the on-the-fly encoding pipeline (hosted on Cloudflare Workers), and the Stream player's quality selection labels. Post-release, a bug causing negative bitrates for some portrait livestream renditions and another causing download failures for very small videos were identified and fixed. The PSNR metric shows an increase in quality up to 8% for portrait videos.

7 posts · 2017–2025

Timeline

20172026
Feature trailCooling

Internationalization of Cloudflare Products

Cloudflare has been actively working to internationalize its products and services, starting with the Cloudflare dashboard. This effort involves externalizing all user-facing strings, managing dynamic data within translations, handling pluralization, and incorporating rich text elements like links. The company has developed a repeatable process for internationalization and localization, aiming to make its platform accessible to a global and diverse customer base in their native languages. This post details the specific implementation for Cloudflare Radar, including strategies for hard-coding avoidance, pseudo-translation, text expansion management, and string concatenation best practices.

3 posts · 2020–2024

Timeline

20202026
Feature trailQuiet since 2024

Kubernetes Virtualization with KubeVirt

Cloudflare is leveraging KubeVirt to run virtual machines alongside containerized workloads within its multi-tenant Kubernetes clusters. This enables teams requiring deep integration with the Linux kernel, such as for build infrastructure and network simulation, to do so securely and efficiently. KubeVirt integrates with Kubernetes primitives and CRDs, allowing for scalable VM deployment and management. Use cases include Kubernetes scalability testing, development environments, kernel and iPXE testing, and build pipelines.

2 posts · 2021–2024

Timeline

20212026
Feature trailQuiet since 2024

Profile Guided Optimization for Go

Cloudflare is implementing Profile Guided Optimization (PGO) for its Go-based services to reduce CPU usage and improve resource efficiency. This involves collecting production CPU profiles, merging them, and recompiling services with the `-pgo` flag. Initial results show significant CPU savings, freeing up resources for customer requests. Future work includes automating profile collection, refining deployment processes, and exploring Link Time Optimization (LTO) techniques.

1 post · 2024

Timeline

20242026
Feature trailQuiet since 2024

Email Infrastructure & Protocols

Cloudflare's Email Service, encompassing Email Routing and Email Sending, is now generally available. Email Sending allows developers to send transactional emails directly from Cloudflare Workers, integrating seamlessly with the Developer Platform. It automatically configures DNS records (SPF, DKIM, DMARC) for improved deliverability and offers global low-latency delivery. Developers can use the `Email` binding for secure credential management, process incoming mail with Workers, and leverage `wrangler` for local emulation. Observability features include bounce rates and delivery events. The service supports REST APIs, SMTP, and rich HTML emails via frameworks like React Email. Email Routing enables programmatic handling of incoming messages with Workers, facilitating AI-powered parsing, ticket creation, and attachment processing. The unified service closes the loop for application email needs, with Email Sending requiring a paid Workers subscription and charging based on messages sent.

14 posts · 2017–2024

Timeline

20172026
Feature trailQuiet since 2024

Fleet Management System

Cloudflare's fleet management has evolved from manual YAML file management to a robust, in-house system called Zinc. Zinc models logical and physical infrastructure assets (servers, network devices, data centers) in a strongly-typed system, providing APIs and interfaces for efficient fleet management. It integrates with other systems for workload assignment, maintenance scheduling, repair management, and diagnostics reporting. Zinc offers a native web interface and CLI tooling for engineers, with features like a change request and approval system, node reservations, and comprehensive metadata collection. It complements Netbox for physical inventory management.

3 posts · 2023–2024

Timeline

20232026
Feature trailQuiet since 2024

Physical Entropy Sources for Randomness Generation

Cloudflare has expanded its LavaRand system to incorporate new physical sources of entropy from its global offices, including wave machines in Lisbon, double pendulums in London, suspended rainbows in Austin, and lava lamps in San Francisco. These new sources, captured via cameras and processed into hashes, contribute to seeding Cryptographically Secure Pseudorandom Number Generators (CSPRNGs) for cryptographic security across Cloudflare's global infrastructure. The system makes this harnessed chaos available via an internal API, enabling developers to use pure randomness for various applications, including Cloudflare Workers and the drand API.

1 post · 2017–2024

Timeline

20172026
Feature trailQuiet since 2024

IPv6 Transition Support

Cloudflare's platform has evolved to support IPv6 transition by reducing internal and egress use of IPv4 addresses. This includes investigating and optimizing the performance of TCP connect() syscalls, particularly the port selection algorithm (__inet_hash_connect()), to improve efficiency when establishing a large number of connections. The goal is to minimize the number of source IPv4 addresses required for services like the cache, thereby reducing operational costs and improving performance. The Automatic IPv6 Gateway was launched, enabling users to access IPv6-only content from IPv4 networks and vice-versa, with options for full subdomain enablement or specific IPv6-only subdomains.

1 post · 2012–2024

Timeline

…20172026
Feature trailQuiet since 2023

Data Privacy & Protection Compliance

Cloudflare's Data Localization Suite provides tools for customers to control the geographic location where their data is stored and processed. This includes features like Keyless SSL, Geo Key Manager for controlling private key access, Regional Services for inspecting traffic in specific regions, and Edge Log Delivery for sending logs directly from the edge to a customer's preferred region. Additionally, Workers Durable Objects now support Jurisdiction Restrictions, allowing developers to ensure data processing occurs within specified geographic boundaries. This post announces expanded Regional Services capabilities with new defined regions and introduces the concept of Software Defined Regionalization (SDR) for more granular control over traffic localization.

20 posts · 2018–2023

Timeline

20182026
Feature trailQuiet since 2023

Differential Privacy

Cloudflare is actively involved in standardizing and implementing privacy-preserving technologies. This includes contributing to the Distributed Aggregation Protocol (DAP) for private aggregation and enhancing it with differential privacy to provide a stronger guarantee against data leakage. The company is developing an open-source implementation of DAP and a service to support partners, aiming to protect user privacy in various applications like telemetry and exposure notification systems.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

WebAssembly Core Dumps and Debugging

Cloudflare Workers is exploring and implementing advanced debugging capabilities for WebAssembly (Wasm) within its runtime. This includes investigating the potential for Wasm core dumps, a critical feature for post-mortem debugging of application crashes. While the core Wasm specification for core dumps is still experimental and not yet fully supported in the Cloudflare Workers runtime (workerd), the company is actively researching and developing polyfilling techniques using tools like wasm-coredump-rewriter to enable debugging of Rust and Wasm code in Workers.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

Network Time Synchronization & Debugging Tools

Cloudflare is actively involved in securing Network Time Protocol (NTP) through the development and promotion of Network Time Security (NTS). This includes operating a time service that supports NTS on its officially assigned port (4460), contributing to the standardization process, releasing source code for specialized servers, and working with implementers to resolve bugs. The goal is to improve the security of time synchronization, which is foundational for other security protocols like TLS. This post details the launch of time.cloudflare.com, a free time service that supports both NTP and NTS, addressing vulnerabilities in NTP that allow for time manipulation and denial of service attacks, even from off-path attackers. The service provides secure time synchronization from Cloudflare's global datacenters.

3 posts · 2014–2023

Timeline

…20172026
Feature trailQuiet since 2023

Linux Kernel Traffic Control Vulnerability Analysis

Cloudflare's Linux kernel traffic control capabilities have evolved to address vulnerabilities, particularly those exploitable via USER namespaces. The 'noqueue' qdisc, when misapplied to classful qdiscs, was found to cause NULL pointer dereferences and kernel panics. The primary mitigation involved disallowing 'noqueue' for qdisc classes, aligning with documentation and preventing misuse. This evolution focuses on hardening the kernel's traffic control subsystem against unintended behavior and.

8 posts · 2015–2023

Timeline

…20172026
Feature trailQuiet since 2023

Dashboard Search & Navigation

Cloudflare's dashboard has evolved to manage an ever-increasing number of products and features. To address this complexity, Cloudflare has introduced 'quick search,' a cross-dashboard search tool designed to speed up common interactions by allowing users to quickly find and navigate to specific pages, website-specific products, and account-wide services. The new dashboard also introduces a more organized app-based navigation metaphor, moving away from the 'My Websites' page and organizing features into logical categories.

4 posts · 2020–2023

Timeline

20202026
Feature trailQuiet since 2023

TCP Port Sharing Behavior

Cloudflare's understanding and utilization of Linux's conntrack subsystem has evolved from avoiding it for simplicity to actively investigating its intricacies for new product needs. This includes understanding its state management, capacity limits, and the implications of its behavior when full, such as implicit packet drops and EPERM errors for UDP flows. The company is exploring its use in containerized environments and the nuances of its strict vs. loose modes. This post details how conntrack is used to manage TCP port sharing behavior, particularly in scenarios with a large number of bound TCP sockets, and how increasing the LHTABLE size and binding to ANY_IP addresses for TCP traffic resolved latency issues.

6 posts · 2012–2023

Timeline

…20172026
Feature trailQuiet since 2023

Compile-Time Code Generation & Metaprogramming

Cloudflare's engineering blog has explored advanced programming techniques, particularly focusing on compile-time code generation and metaprogramming. This thread began with an in-depth look at Rust's powerful macro system, demonstrating how to implement complex logic like Reverse Polish Notation (RPN) evaluation directly at compile time. This capability allows for significant performance optimizations and the creation of highly specialized code without runtime overhead. More recently, Cloudflare has integrated VoidZero, a team focused on open-source JavaScript toolchains like Vite, Vitest, Rolldown, and Oxc. This integration has led to significant performance improvements in these tools, including a 10x faster React Compiler (Oxc), up to 50% faster Vitest, 18x faster tsgolint, and 7x faster Oxfmt. The development of Vite+ 1.0 unifies these tools with great defaults, and progress is being made on "Bundled Dev" for faster development servers in large applications. Cloudflare's commitment to open source is further demonstrated through ecosystem funds and ongoing contributions.

7 posts · 2018–2023

Timeline

20182026
Feature trailQuiet since 2023

Arm Secure Boot Chain Enhancement

Cloudflare has enhanced its secure boot capabilities for Arm-based servers by implementing a Single Domain Secure Boot (SDSB) mechanism. This builds upon the Arm Trusted Firmware (ATF) Secure Boot process, allowing for cryptographic validation of the UEFI firmware using a hardware root-of-trust stored in eFuses. This provides a more robust security chain for Arm servers, similar to their existing solutions for x86 platforms.

2 posts · 2020–2023

Timeline

20202026
Feature trailQuiet since 2022

Sustainability & Environmental Impact

Cloudflare is actively working to reduce its environmental impact by optimizing its global network infrastructure for energy efficiency. This includes leveraging renewable energy, focusing on data centers with low PUE, and implementing waste diversion and energy efficiency measures. A key aspect of this evolution is the strategic adoption of hardware, such as Arm CPUs, to significantly improve performance per watt and reduce overall energy consumption. This also encourages broader industry shift. The company's network infrastructure is designed for high utilization, reducing idle hardware energy consumption. Caching is employed to reduce data transfer and origin server load, saving energy. Performance optimizations across the network and platform, including the use of isolates in Cloudflare Workers, further reduce energy consumption by eliminating overhead and enabling efficient execution of customer code. Cloudflare offsets its remaining carbon footprint by purchasing Renewable Energy Certificates (RECs) to match 100% of its global electricity usage.

6 posts · 2022

Timeline

20222026
Feature trailQuiet since 2022

Linux Kernel Key Retention Service

Cloudflare is exploring the use of the Linux Kernel Key Retention Service to protect cryptographic keys. This service allows keys to be stored outside of application process address spaces, providing isolation and reducing the risk of leaks due to memory access violations. It offers a kernel-level agent for cryptographic operations, with associated permissions and lifecycle management tied to processes or users. The service supports various key types, including asymmetric keys for RSA operations, and keyrings for managing key lifetimes and access control.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Open Source Software & Community Contributions

Cloudflare has a deep and reciprocal relationship with the open source community. Initially, the company relied heavily on open source software for its core infrastructure, including nginx and PostgreSQL. This evolved into actively contributing back to these projects, releasing their own open source tools and libraries, such as Red October, Lua Resty Shcache, Lua Resty Core, Go Libs, BM, Lua Raven, Lua Resty Logger Socket, conf, Lua Resty Kyoto Tycoon, Go LZ4, Aho Corasick, kt-fdw, Lua Resty Coo. This post details the company's philosophy of open-sourcing components and contributing to external projects, highlighting specific examples of contributions and sponsored work.

12 posts · 2013–2022

Timeline

…20172026
Feature trailQuiet since 2022

Dynamic RAM Refresh & Performance

Cloudflare's exploration of low-level hardware behaviors and their impact on system performance has evolved to include the analysis of dynamic voltage and frequency scaling (DVFS) and its data-dependent nature. This vulnerability, Hertzbleed, demonstrates how CPU power consumption variations, influenced by data characteristics like Hamming weight and Hamming distance, can lead to data-dependent CPU frequencies and execution times. This has implications for cryptographic software security, partic

2 posts · 2018–2022

Timeline

20182026
Feature trailQuiet since 2022

Blockchain Technology & Decentralization

Cloudflare's platform has evolved to support Web3 development by offering managed gateways for Ethereum and IPFS, enabling developers to build scalable decentralized applications. This includes open-source examples for deploying and managing NFTs using Cloudflare Workers and Pages, providing a full-stack solution for minting, displaying, and serving NFT metadata. The platform aims to be foundational to the future of Web3, supporting Metaverses, DAOs, DeFi, and other decentralized applications. The evolution of Web3 is driven by the desire for a more decentralized and user-owned internet, building upon the principles of peer-to-peer networks and blockchain technology.

5 posts · 2019–2022

Timeline

20192026
Feature trailQuiet since 2022

Research & Development Approach

Cloudflare's research and development approach has evolved from a specialized Cryptography Research team to a broader Cloudflare Research initiative, driven by a hybrid model that embeds research engineers into product and operations teams for temporary assignments. This provides direct exposure to practical problems and leverages production data for experiments. The team also collaborates with industry and academia, focusing on impact-driven projects and open collaboration through public outreach, standardization, and large-scale implementation. This approach is applied to long-term projects like migrating the Internet to secure network protocols, and emerging areas like post-quantum cryptography and secure time synchronization.

4 posts · 2021–2022

Timeline

20212026
Feature trailQuiet since 2022

io_uring worker pool management

Cloudflare's io_uring implementation has evolved to provide detailed insights into worker pool management. This includes understanding the distinction between bounded and unbounded workers, how their sizes are controlled by system limits (e.g., RLIMIT_NPROC) and ring buffer configurations, and how to monitor their creation and behavior using kernel tracepoints. The platform now offers granular control and visibility into the underlying runtime for asynchronous I/O processing, enabling developers to optimize performance and resource utilization for network-intensive workloads.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

io_uring worker pool management

Cloudflare is exploring and detailing the internal workings of io_uring, a high-performance asynchronous I/O API in the Linux kernel. This includes understanding how io_uring manages its worker thread pools for different types of I/O requests (bounded vs. unbounded), how to monitor and control these pools, and the implications for network I/O performance. The company is investigating the tracepoints and kernel mechanisms involved in worker creation and management to optimize its use of io_uring. This post also explores SOCKMAP, a new eBPF machinery for socket splicing, which aims to achieve zero-copy and zero-wakeup data forwarding purely in the kernel, though initial benchmarks showed it to be slower than other methods.

2 posts · 2019–2022

Timeline

20192026
Feature trailQuiet since 2021

RPKI Validation Software Security

Cloudflare is actively involved in securing RPKI validation software, addressing vulnerabilities in implementations like OctoRPKI. This includes developing and releasing patches for issues such as arbitrary file writes and resource consumption attacks, contributing to the overall security and reliability of BGP route validation. The post highlights the passing of the two hundred thousand ROA threshold, the launch of isbgpsafeyet.com, and the growth of RPKI Origin Validation deployment across net

5 posts · 2018–2021

Timeline

20182026
Feature trailQuiet since 2021

Wrangler Authentication

Cloudflare's Wrangler CLI has evolved its authentication process to improve the developer experience. Previously, users had to manually create API tokens through the Cloudflare dashboard. The new `wrangler login` command streamlines this by allowing users to authenticate directly with their Cloudflare credentials, similar to Argo Tunnel's login flow. This involves generating a public-private key pair, prompting the user to log in via the dashboard, automatically creating a Workers-scoped API token.

1 post · 2019–2021

Timeline

20192026
Feature trailQuiet since 2021

Branch Prediction Performance

Cloudflare's understanding of branch prediction performance has evolved, moving beyond the general rule that predictable branches have near-zero cost. Experiments have revealed that the cost of branches, even unconditional ones, can increase significantly with their number and density. This has led to a deeper investigation into the Branch Target Buffer (BTB) and its capacity, demonstrating that performance degrades when the number of branches exceeds certain thresholds (e.g., 4096 branches). This understanding informs code optimization strategies to avoid performance penalties associated with excessive branching.

1 post · 2021

Timeline

20212026
Feature trailQuiet since 2021

Memory Allocator Optimization

Cloudflare has optimized memory usage by switching from glibc malloc to TCMalloc for services like Quicksilver, which uses RocksDB. This involved understanding the fragmentation issues inherent in glibc's arena-based allocation and the benefits of TCMalloc's front-end, middle-end, and back-end design for improved memory reuse across threads. The switch resulted in a 2.5x reduction in memory consumption.

1 post · 2021

Timeline

20212026
Feature trailQuiet since 2021

Dynamic Task Scheduling with Nomad

Cloudflare has adopted HashiCorp Nomad as a dynamic task scheduling system to improve the availability and resource utilization of management services across its global edge data centers. This system ensures a desired number of service instances are reliably running, regardless of the underlying physical machine, and integrates with Consul for service discovery and Prometheus for observability. Challenges in deployment, such as initramfs rootfs compatibility and resource usage containment, have been addressed through upstream contributions and custom solutions. Nomad job files are templated and managed via configuration management tools, with rack metadata used to ensure distinct failure domains for service instances. Mutual TLS authentication is used to secure API access.

2 posts · 2020–2021

Timeline

20202026
Feature trailQuiet since 2020

Image Matching Algorithm Performance

Cloudflare's image matching capabilities have evolved to address performance bottlenecks in high-dimensional data. Initial approaches using naive quadratic algorithms and SIMD optimizations (AVX2) showed limited gains due to memory bandwidth constraints. Advanced algorithms like VP-trees struggled with the 'curse of dimensionality' in 144-dimensional spaces. Subsequent efforts focused on optimizing brute-force methods by introducing a 'short distance' variation that computes a subset of dimensions, and further refined by considering the 'origin distance' to quickly discard non-matches based on a threshold.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

SUNBURST Malware Analysis

Cloudflare's analysis of the SUNBURST malware's Domain Generation Algorithm (DGA) has uncovered additional details about its encoding schemes and how it exfiltrates compromised hostnames. This includes identifying a quirk where long hostnames are split across multiple DNS queries, requiring a novel method of reassembly based on XORing GUIDs. The analysis also refines understanding of base32 encoding variants used by the malware and provides tools for matching fragmented DNS messages.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Data Center Power Distribution

Cloudflare's data center operations involve sophisticated power management, including the use of three-phase power distribution units (PDUs) to maximize efficiency and redundancy. This involves understanding AC power principles, Ohm's Law, Faraday's Law, and the advantages of three-phase over single-phase power for high-density computing environments. The company employs dual power supply configurations for servers and leverages PDUs with multiple circuit breakers for resilience. The implementation of three-phase power offers increased capacity and cost-effectiveness compared to single-phase setups, with a focus on maximizing compute performance and minimizing physical footprint.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Optimized Compression Libraries

Cloudflare's compression capabilities have evolved to include Zstandard (zstd) as a supported algorithm for browser-to-Cloudflare traffic. Zstandard offers faster compression and decompression speeds than Brotli while maintaining comparable compression ratios to GZIP, leading to reduced latency and improved website performance. This builds upon existing efforts in optimizing compression algorithms and protocols for better web performance. The post also discusses the rollout of Encrypted Client Hello (ECH) and ongoing work on HTTP/3 prioritization and BBR congestion control.

2 posts · 2012–2020

Timeline

…20172026
Feature trailQuiet since 2020

gVisor Process Memory Access

Cloudflare engineers are contributing to gVisor, a Linux container runtime, by implementing the /proc/[pid]/mem file interface. This enables detailed debugging and stack trace analysis within sandboxed environments, addressing limitations in accessing process memory for debugging purposes.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Linux Sandboxing with seccomp

Cloudflare is leveraging seccomp filters in Linux to implement granular security policies without requiring kernel module modifications or extensive configuration. This approach is being used to address specific security risks, such as preventing unprivileged users from escalating privileges via USER namespaces using the `unshare` syscall. The LSM BPF framework allows for dynamic policy enforcement at specific kernel hook points, offering a flexible and robust security mechanism.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Dashboard Deep Linking and Scrolling

Cloudflare's Dashboard has evolved to support deep linking, allowing users to be directed to specific resources within the application. This includes dynamic resolution of account and zone IDs, and the ability to scroll to specific elements on a page. This enhances user experience by enabling direct links from marketing pages and troubleshooting documentation, and streamlines navigation by automatically scrolling to relevant settings.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Customer Support Authentication

Cloudflare is enhancing customer support security by introducing Time-Based One-Time Passwords (TOTP) for phone authentication. This allows Enterprise customers to prove their identity over the phone using tokens generated from the dashboard or a 2FA app, without discussing sensitive account settings. The system uses RFC 6238 for TOTP generation, with deviations for single-use tokens and dashboard-generated codes. Future work includes callback requests and integration with other authentication methods.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Website Backup & Recovery

Cloudflare's offerings have expanded to encompass website backup and recovery solutions, including tools and services that enable website owners to safeguard their digital assets. This has evolved to include passive origin monitoring, which proactively notifies customers when their origin servers are down, allowing them to take action to restore their sites and reduce the impact of downtime. Health Checks provide active monitoring with configurable checks and analytics. Health Check Analytics provide detailed insights into change events and unhealthy origins. Zero-Downtime Failover automatically retries requests to origin servers when initial connection attempts fail, improving availability by seamlessly switching to alternate origins within the same HTTP request or Load Balancing pool. Standalone Health Checks allow for origin monitoring without a Cloudflare Load Balancer, with configurable checks and analytics. Passive Origin Monitoring sends email alerts when origin downtime is detected for more than a few minutes. The Notification Center serves as a central hub for managing these notifications.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Internal Tooling & Diagnostics

Cloudflare's internal tooling for network diagnostics, Crossbow, has undergone a significant refactor and rearchitecture. The tool now focuses on a CLI interface, deprecating the UI to streamline development and improve usability. The architecture has been modernized with a pub/sub pipeline, JWT authentication via Cloudflare Access, and deployment on Cloudflare Spectrum, removing the VPN requirement. Integration with other internal tools and the adoption of Test-Driven Development (TDD) and Continuous Integration (CI) have led to dramatic usage increases and improved delivery velocity.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

Linux Disk Encryption Performance

This post introduces the investigation into Linux disk encryption performance, highlighting the trade-offs between block-level and file-level encryption, and hardware vs. software implementations. It details a benchmarking setup using RAM disks to measure the performance penalty of dm-crypt and sets the stage for exploring optimizations.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2020

TCP Server Connection Acceptance & Load Balancing

Cloudflare's TCP connection handling has evolved to utilize end-to-end Keep Alives, reducing TCP overhead and latency by maintaining persistent connections to origin servers for multiple requests. This optimization improves the time to first byte and overall site snappiness, especially for sites with consistent traffic. The implementation benefits sites whose origin servers support Keep Alive connections. This post details how disabling keepalives for internal connections between SSL and FL proc

11 posts · 2011–2020

Timeline

…20172026
Feature trailQuiet since 2020

Data Analysis Tooling

Cloudflare's data analysis tooling has evolved to include command-line utilities for generating ASCII histograms, monitoring real-time rate of change, and summing floating-point numbers. This post details the development and open-sourcing of these tools (mmsum, mmwatch, mmhistogram) to aid engineers in quickly processing and understanding data from various sources, including network traffic and system metrics. The post also explores the performance implications of Bloom filters, highlighting the trade-off between memory access latency and computational cost, and introduces a custom tool 'mmuniq-bloom' to address large-scale deduplication challenges.

1 post · 2020

Timeline

20202026
Feature trailQuiet since 2019

XDP Packet Capture

Cloudflare's XDP capabilities have evolved to include enhanced debugging and visibility tools. The development and open-sourcing of xdpcap, a tcpdump replacement for XDP, allows for efficient packet capture and analysis directly within the eBPF environment. This is facilitated by cbpfc, a compiler that translates classic BPF (cBPF) filters to eBPF, enabling dynamic instrumentation of XDP programs via tail-calls and exposure of matching packets to userspace through perf events. This enhances the ability to debug and troubleshoot network traffic processed at the edge.

1 post · 2019

Timeline

20192026
Feature trailQuiet since 2019

Linux AIO for Network I/O

Cloudflare is exploring and implementing the Linux AIO API for network I/O operations, moving beyond its traditional use for disk I/O. This involves understanding and leveraging `io_submit` for syscall batching and optimizing event retrieval by directly accessing the kernel's ring buffer, bypassing the `io_getevents` syscall for improved performance in high-concurrency network servers. The company is investigating the tracepoints and kernel mechanisms involved in worker creation and management to optimize its use of io_uring.

1 post · 2019

Timeline

20192026
Feature trailQuiet since 2018

LuaJIT Performance Benchmarking and Optimization

Cloudflare is actively involved in improving LuaJIT performance through a research project at King's College London. This project focuses on developing a comprehensive benchmark suite for Lua implementations, analyzing the performance of different LuaJIT forks (original LuaJIT and RaptorJIT), and identifying areas for optimization. The work aims to improve VM warmup behavior and performance characteristics across various benchmarks, leading to more predictable and faster execution for larger pro

1 post · 2017–2018

Timeline

20172026
Feature trailQuiet since 2018

LuaJIT Performance Optimization

Cloudflare has been involved in optimizing LuaJIT performance through a research project at King's College London. This project focused on developing a comprehensive benchmark suite for Lua implementations, analyzing the performance of different LuaJIT forks (original LuaJIT and RaptorJIT), and identifying areas for optimization. The work has led to a better understanding of VM warmup behavior and performance characteristics across various benchmarks.

1 post · 2017–2018

Timeline

20172026
Feature trailQuiet since 2018

Inter-Process Communication for TLS Handling

Cloudflare's TLS handling architecture has evolved to support early adoption of TLS 1.3. This involved implementing a custom TLS 1.3 stack in Go (tls-tris) and using SCM_RIGHTS to pass established TCP connections from an nginx-based SSL termination layer to the Go process. This allows for selective TLS version handling and rapid iteration on new TLS versions without impacting the broader stack. The implementation details for Go and Rust are provided, showcasing the use of UNIX domain sockets and the SCM_RIGHTS mechanism for inter-process communication of file descriptors.

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2018

Dynamic RAM Refresh Analysis

This post details the analysis of dynamic RAM refresh cycles and their measurable impact on system performance from userspace. It introduces techniques for detecting subtle hardware behaviors through software experiments and signal processing (FFT), demonstrating that even low-level hardware operations can be observed and analyzed, leading to potential security insights and performance optimizations.

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2018

HTTPS Adoption & Security Indicators

Cloudflare has been offering full IPv6 support and an IPv6-to-IPv4 gateway since 2012, making it easy for customers to transition to IPv6. This includes features like IPv6 Compatibility enablement in the dashboard and Pseudo IPv4 for legacy IPv4 applications. The company actively supports emerging networking technologies and provides guidance for developers navigating IPv6-only environments, such as those mandated by Apple for iOS apps. This support aims to simplify the complex global transition. Universal SSL has been rolled out to all customers, including free tier users, doubling the number of SSL-enabled sites. This is achieved by automatically provisioning SSL certificates on Cloudflare's network, supporting both root domains and wildcard subdomains. For sites without prior SSL, Flexible SSL mode is enabled by default, encrypting traffic between browsers and Cloudflare. Full or Strict SSL modes are recommended for end-to-end encryption. The challenges of CPU load and IPv4 exhaustion were addressed by leveraging ECDSA cipher suites and Server Name Indication (SNI) for modern browsers, allowing multiple customer sites to share the same IP address. Legacy browsers, such as Internet Explorer on Windows XP and pre-Ice Cream Sandwich Android, are not supported on the free plan. Paid plans continue to support all browsers. Universal SSL also enables broader support for the SPDY protocol. Future plans include leveraging IPv6 connections for SNI-less browsers and encouraging users to upgrade to modern browsers and operating systems. A 'Better Browser' app is available to prompt users to upgrade. The decision to offer Universal SSL to all customers, even at a potential short-term revenue cost, aligns with Cloudflare's mission to build a better, encrypted internet. The rollout is ongoing, with full provisioning expected within 24 hours for most customers. Support for hosting partners will be enabled later.

7 posts · 2014–2018

Timeline

…20172026
Feature trailQuiet since 2018

DDoS Protocol Amplification Analysis

Cloudflare's DDoS mitigation capabilities have evolved to analyze and defend against increasingly sophisticated amplification attacks. This includes deep dives into protocols like NTP (specifically the MONLIST command) and DNS, understanding their vulnerabilities, and developing strategies to counter large-scale UDP floods. The focus is on identifying and mitigating new attack vectors by analyzing traffic patterns, reflector IPs, and protocol-specific weaknesses to maintain network resilience. This post details the mechanics of NTP-based amplification attacks and provides guidance for mitigating them by securing NTP servers and implementing BCP-38.

10 posts · 2012–2018

Timeline

…20172026
Feature trailQuiet since 2018

Go Scripting on Linux

Cloudflare has explored and implemented methods to use Go as a scripting language on Linux. This involves overcoming limitations of the standard `go run` command and the shebang mechanism by leveraging the Linux kernel's `binfmt_misc` module. This allows `.go` files to be executed directly as scripts, preserving proper error code propagation and enabling a seamless edit-execute cycle without requiring a separate build step for simple scripts. This approach enhances developer productivity for scr

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2018

Compile-Time Code Generation & Metaprogramming

Cloudflare's engineering blog has explored various aspects of advanced programming techniques, including the sophisticated use of Rust macros for compile-time code generation. This thread tracks the evolution of how Cloudflare engineers leverage metaprogramming to enhance code efficiency, reduce boilerplate, and enable complex computations at compile time. Early explorations focused on understanding and applying powerful macro systems like Rust's to solve specific problems, such as implementing Reverse Polish Notation evaluation at compile time. This demonstrates a commitment to pushing the boundaries of what can be achieved during the build process, leading to more optimized and robust software.

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2018

Processor Bug Analysis

Cloudflare's understanding of processor bugs has evolved to include detailed analysis of hardware flaws, such as the Intel Xeon E5-2650 v4 (Broadwell) issue that caused unexpected core dumps. This has led to improved hardware validation processes and a deeper appreciation for the potential for hardware-level issues to manifest as software crashes.

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2018

SYN Packet Handling

Cloudflare's understanding and operation of SYN packet handling in Linux has evolved to include detailed analysis of the SYN and Accept queues, their size limits, and the impact of application performance on connection acceptance. This includes insights into SYN flood mitigation via SYN cookies and the behavior of TCP backlog parameters. The platform continues to refine its ability to manage and debug these critical networking components at scale.

1 post · 2018

Timeline

20182026
Feature trailQuiet since 2017

Cryptography Challenges

Cloudflare has evolved its approach to engaging engineers with technical challenges, moving beyond theoretical discussions to practical, hands-on problem-solving. This post introduces a series of cryptography challenges, including password hashing, HSTS manipulation, and AES-256 decryption, designed to test and enhance practical security skills. The challenges are accompanied by hints and detailed solutions, demonstrating the application of tools like Hashcat and OpenSSL, and illustrating cryptographic concepts like the two-time pad attack. This initiative aims to foster a deeper understanding of security principles through active participation and problem-solving.

1 post · 2017

Timeline

20172026
Feature trailQuiet since 2017

Go Garbage Collection Tuning

Cloudflare's Go garbage collection tuning has evolved to optimize performance on multi-core machines by adjusting the GOGC variable. This post details how tuning GOGC can significantly improve throughput in scenarios with high allocation rates, such as benchmarks generating large amounts of short-lived data, leading to better performance scaling on many-core CPUs.

2 posts · 2015–2017

Timeline

…20172026
Feature trailQuiet since 2016

Internal DNS Resolution Reliability

Cloudflare's internal DNS resolution has evolved to address transient network issues, specifically packet loss, that could lead to spurious NXDOMAIN errors. The system now incorporates improved client-side handling of timeouts and retries, and a more robust understanding of how search domains interact with DNS failures. This ensures more reliable DNS lookups within the internal cluster, even under adverse network conditions.

1 post · 2016

Timeline

…20172026
Feature trailQuiet since 2016

Frontend UI Framework

Cloudflare has open-sourced its internal UI framework, cf-ui, built on React and Redux. This framework includes over 50 packages with dozens of components, utilities, and test helpers. It utilizes Lerna for managing a multi-package repository structure, enabling independent versioning and code sharing. The framework introduces 'builder' components that can be directly tied to Redux state, simplifying integration. It also includes integrated test utilities for Mocha, Sinon, and Redux, and wraps external APIs to allow for confident changes to underlying modules. Accessibility improvements were a key focus during the rewrite, with open-sourced libraries for keyboard navigation and focus management.

1 post · 2016

Timeline

…20172026
Feature trailQuiet since 2016

TLS Cryptographic Modes and Vulnerabilities

Cloudflare's TLS cryptographic modes and vulnerabilities management has evolved to proactively address emerging threats and improve security. This includes modifying OpenSSL to prevent the use of RC4 for TLS 1.1 and above, introducing ECDSA, and continuously evaluating cipher suites to ensure optimal security for customers, such as by utilizing Perfect Forward Secrecy. The company maintains a public GitHub repository (sslconfig) to track the history and current state of its SSL configuration, and has now deprecated RC4 as a preferred cipher suite, prioritizing AES-based ciphers for improved long-term security and to mitigate risks associated with RC4's known weaknesses and potential future breaks.

6 posts · 2013–2016

Timeline

…20172026
Feature trailQuiet since 2016

Go Static Analysis Tooling

Cloudflare has developed and open-sourced a suite of command-line tools (mmsum, mmwatch, mmhistogram) to aid in data analysis and visualization. These tools provide capabilities for generating ASCII histograms, monitoring real-time rate of change for command output, and summing lists of floating-point numbers. This expands the internal tooling available for engineers to quickly understand and process data from various sources, including network traffic and system metrics. This post details the creation of a tool to check for vendored dependencies in Go projects using static analysis.

1 post · 2016

Timeline

…20172026
Feature trailQuiet since 2016

HTTP Request Loop Prevention

Cloudflare's approach to preventing HTTP request loops has evolved from implementing RFC 7230 compliant 'Via' header checks to actively addressing non-compliant proxy services that strip or modify these headers. This involves educating the industry and collaborating on solutions to ensure robust protection against resource exhaustion and denial of service attacks caused by such loops.

1 post · 2016

Timeline

…20172026
Feature trailQuiet since 2015

Go HTTP Client Connection Pooling

Cloudflare's engineering blog has explored various aspects of Go programming, including performance optimization and debugging. This post details the internal workings of the Go standard library's `net/http` client, specifically focusing on its connection pooling mechanism and the concept of 'late binding' to minimize roundtrip latency. The post illustrates how the client intentionally races between dialing a new connection and retrieving an idle connection from the pool, and how this mechanism.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

Kernel Bypass for High Packet Rate Networking

Cloudflare has developed and contributed a 'single RX queue mode' to the Netmap project. This allows for kernel bypass on selected RX queues of network interfaces, enabling user-space applications to handle high packet rates for specific traffic flows while leaving other queues to the standard Linux kernel network stack. This is crucial for mitigating large packet floods and improving performance on NICs that do not natively support advanced kernel bypass features.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

Image Optimization Performance

Cloudflare's image optimization capabilities have evolved to include significant performance improvements for jpegtran, a key tool in its Polish product. This involved profiling and applying SIMD instructions to accelerate Huffman coding and zero-value skipping, resulting in a 2.25x speedup for jpeg image processing. This optimization directly contributes to faster website performance for customers by reducing image sizes more efficiently.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

Go Language Adoption and Tooling

Cloudflare has fully embraced Go as a core language for its services, utilizing it for critical infrastructure components like DNS, SSL, and network compression. The company has developed and open-sourced various Go-based tools and libraries, including RRDNS for DNS infrastructure, Railgun for compression, Red October for cryptographic security, and SSL Bundler for certificate chain optimization. This adoption extends to experimentation with related technologies like CoreOS and Docker, and contributions to the Go language itself.

2 posts · 2012–2015

Timeline

…20172026
Feature trailQuiet since 2015

Optimized Compression Libraries

Cloudflare has optimized compression libraries, including a fork of zlib, to improve performance and compression ratios. This fork incorporates modern C practices, improved hash functions, hardware instructions (iSCSI CRC32, PLCMULQDQ), SIMD instructions, and optimized longest-match functions. Benchmarks show significant speedups and better compression rates compared to standard zlib and other implementations, making it suitable for applications like DNA sequencing file compression and image optimization.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

Go Linker Flags for Build Information

Cloudflare's Go linker flags have evolved to directly embed version and build time information into binaries using the `-X` linker option, simplifying the build process and improving maintainability compared to older Makefile-based methods.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

ASCII Character Manipulation for Performance

Cloudflare leverages low-level ASCII character manipulation techniques, such as bitwise AND operations, to optimize performance in high-throughput scenarios like DNS packet filtering. This involves understanding character set limitations and implementing efficient comparison algorithms.

1 post · 2015

Timeline

…20172026
Feature trailQuiet since 2015

Go Interfaces for Testability

Cloudflare's engineering practices have evolved to leverage Go interfaces for enhanced testability and modularity in software development. This approach simplifies unit testing by allowing for the creation of dummy implementations of complex components, isolating the logic under test. This capability is fundamental to building robust and maintainable software systems. This post details a common pitfall when using closures with goroutines in Go, where shared loop variables can lead to unexpected behavior. It provides a solution by passing the loop variable as a parameter to the goroutine's function.

2 posts · 2014–2015

Timeline

…20172026
Feature trailQuiet since 2014

Secure Data Replication

Cloudflare has evolved its data replication mechanisms to ensure secure data transfer between data centers. Initially, data was replicated in plaintext. This has evolved to include mutually-authenticated encryption tunnels using TLS, preventing unauthorized parties from reading or modifying data in transit. This enhancement is crucial for distributing sensitive data like session ticket keys and DNS information across Cloudflare's global network.

1 post · 2014

Timeline

…20172026
Feature trailQuiet since 2014

Go Runtime Stack Management

Cloudflare's Go runtime stack management has evolved from segmented stacks to stack copying. Segmented stacks allowed stacks to grow and shrink on demand but suffered from a 'hot split' problem where shrinking was expensive. Stack copying addresses this by doubling the stack size on growth and making shrinking a free operation. This transition required a rewrite of large parts of the runtime in Go to ensure pointer information was available for garbage collection, enabling stack copying across the board. Special stacks are used for core runtime components like the scheduler and garbage collector.

1 post · 2014

Timeline

…20172026
Feature trailQuiet since 2014

Go Interfaces for Testability

Cloudflare's engineering practices have evolved to leverage Go interfaces for enhanced testability and modularity in software development. This approach simplifies unit testing by allowing for the creation of dummy implementations of complex components, isolating the logic under test. This capability is fundamental to building robust and maintainable software systems.

1 post · 2014

Timeline

…20172026
Feature trailQuiet since 2014

Realtime

Cloudflare's support for WebSockets has evolved from an initial offering for Enterprise customers to general availability for all plans, with resources allocated based on plan level. This expansion aims to enable a wider range of real-time applications, such as chat, games, and collaborative editing, by providing a persistent, bidirectional communication channel that significantly reduces latency and HTTP header overhead compared to polling solutions. The underlying infrastructure has been scaled to handle the unique connection profiles of WebSockets, including addressing challenges with ephemeral port exhaustion and connection tuple limitations through techniques like SO_REUSEADDR and expanded ephemeral port ranges.

1 post · 2014

Timeline

…20172026
Feature trailQuiet since 2014

Go Timekeeping on Linux

This post introduces the evolution of timekeeping in Go programs on Linux, detailing the transition from traditional system calls like gettimeofday to the more efficient vDSO (Virtual Dynamically linked Shared Objects) mechanism for clock_gettime. It highlights the performance improvements achieved by leveraging vDSO for time.Now and runtime.nanotime, and discusses the underlying Linux kernel system calls (time, gettimeofday, clock_gettime) and their respective precisions and behaviors. Benchmarks demonstrate significant speedups, especially for time.Now, compared to older Go versions and traditional system calls. The post also touches upon the importance of accurate timekeeping in various systems, including NTP and the Year 2038 problem.

1 post · 2014

Timeline

…20172026
Feature trailQuiet since 2013

Memory Management & Optimization

Cloudflare's approach to memory management in Go has evolved from manual buffer recycling techniques using channels and custom recyclers to leveraging Go's built-in `sync.Pool` for efficient memory management in long-running network services. This evolution aims to reduce memory overhead, improve performance, and simplify development by providing a robust mechanism for reusing objects and reducing garbage collection pressure.

1 post · 2013

Timeline

…20172026
Feature trailQuiet since 2011

Analytics Page View Counting Logic

Cloudflare's analytics system has evolved to accurately count page views by differentiating between full page loads and AJAX requests, providing more intuitive reporting for website owners.

1 post · 2011

Timeline

…20172026