CINXE.COM

Experiment with HTTP/3 using NGINX and quiche

<!DOCTYPE html> <html lang="en-us" dir="ltr"> <head><script async src="https://ot.www.cloudflare.com/public/vendor/onetrust/scripttemplates/otSDKStub.js" data-document-language="true" type="text/javascript" data-domain-script="b1e05d49-f072-4bae-9116-bdb78af15448"></script><meta name="HandheldFriendly" content="True"><meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="baidu-site-verification" content="KeThzeyMOr"><meta name="baidu-site-verification" content="code-NIlrS7gNhx"><meta charset="UTF-8"><meta name="description" content="Get the latest news on how products at Cloudflare are built, technologies used, and join the teams helping to build a better Internet."><title>Experiment with HTTP/3 using NGINX and quiche</title><meta name="title" content="Experiment with HTTP/3 using NGINX and quiche"><meta name="msvalidate.01" content="CF295E1604697F9CAD18B5A232E871F6"><meta class="swiftype" name="language" data-type="string" content="en"><script src="/static/z/i.js" type="text/javascript" referrerpolicy="origin"></script><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="apple-touch-icon" sizes="180x180" href="/images/favicon-32x32.png"><link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-32x32.png"><link rel="mask-icon" href="/images/favicon-32x32.png" color="#f78100"><link rel="stylesheet" href="/themes/ashes.min.css"><link rel="sitemap" href="/sitemap.xml"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><link rel="canonical" href="https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche"><link rel="alternate" hreflang="en-us" href="https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche"><link rel="alternate" hreflang="ko-kr" href="https://blog.cloudflare.com/ko-kr/experiment-with-http-3-using-nginx-and-quiche"><!-- General Meta Tags --> <meta property="article:published_time" content="2019-10-17T15:00:00.000+01:00"> <meta property="article:modified_time" content="2024-10-10T00:44:01.752Z"> <meta property="article:tag" content="NGINX"><meta property="article:tag" content="QUIC"><meta property="article:tag" content="Chrome"><meta property="article:tag" content="Developers"><meta property="article:tag" content="HTTP3"> <meta property="article:publisher" content="https://www.facebook.com/cloudflare"> <!-- Facebook Meta Tags --> <meta property="og:site_name" content="The Cloudflare Blog"> <meta property="og:type" content="article"> <meta property="og:title" content="Experiment with HTTP/3 using NGINX and quiche"> <meta property="og:description" content="Just a few weeks ago we announced the availability on our edge network of HTTP/3, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone"> <meta property="og:url" content="https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="628"> <!-- Twitter/X Meta Tags --> <meta name="twitter:title" content="Experiment with HTTP/3 using NGINX and quiche"> <meta name="twitter:description" content="Just a few weeks ago we announced the availability on our edge network of HTTP/3, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone"> <meta name="twitter:url" content="https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:label1" content="Written by"> <meta name="twitter:data1" content="Alessandro Ghedini"> <meta name="twitter:label2" content="Filed under"><meta name="twitter:data2" content="NGINX,QUIC,Chrome,Developers,HTTP3"> <meta name="twitter:site" content="@cloudflare"> <meta property="og:image" content=""> <meta name="twitter:image" content=""> <link rel="stylesheet" href="/_astro/index.5BtHvQ-S.css" /><script type="module" src="/_astro/hoisted.Byv_OtGt.js"></script></head><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event("astro:only"));})();;(()=>{var b=Object.defineProperty;var f=(c,o,i)=>o in c?b(c,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[o]=i;var l=(c,o,i)=>(f(c,typeof o!="symbol"?o+"":o,i),i);var p;{let c={0:t=>m(t),1:t=>i(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(i(t)),5:t=>new Set(i(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},o=t=>{let[e,r]=t;return e in c?c[e](r):void 0},i=t=>t.map(o),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,r])=>[e,o(r)]));customElements.get("astro-island")||customElements.define("astro-island",(p=class extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var d;if(!this.hydrator||!this.isConnected)return;let e=(d=this.parentElement)==null?void 0:d.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let r=this.querySelectorAll("astro-slot"),a={},h=this.querySelectorAll("template[data-astro-template]");for(let n of h){let s=n.closest(this.tagName);s!=null&&s.isSameNode(this)&&(a[n.getAttribute("data-astro-template")||"default"]=n.innerHTML,n.remove())}for(let n of r){let s=n.closest(this.tagName);s!=null&&s.isSameNode(this)&&(a[n.getAttribute("name")||"default"]=n.innerHTML)}let u;try{u=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(n){let s=this.getAttribute("component-url")||"<unknown>",y=this.getAttribute("component-export");throw y&&(s+=` (export ${y})`),console.error(`[hydrate] Error parsing props for component ${s}`,this.getAttribute("props"),n),n}await this.hydrator(this)(this.Component,u,a,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),r.disconnect(),this.childrenConnectedCallback()},r=new MutationObserver(()=>{var a;((a=this.lastChild)==null?void 0:a.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});r.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}start(){let e=JSON.parse(this.getAttribute("opts")),r=this.getAttribute("client");if(Astro[r]===void 0){window.addEventListener(`astro:${r}`,()=>this.start(),{once:!0});return}Astro[r](async()=>{let a=this.getAttribute("renderer-url"),[h,{default:u}]=await Promise.all([import(this.getAttribute("component-url")),a?import(a):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=h[d];else{this.Component=h;for(let n of d.split("."))this.Component=this.Component[n]}return this.hydrator=u,this.hydrate},e,this)}attributeChangedCallback(){this.hydrate()}},l(p,"observedAttributes",["props"]),p))}})();</script><astro-island uid="1C2fgK" component-url="/_astro/GoogleAnalytics.DKWYs_Ts.js" component-export="GoogleAnalytics" renderer-url="/_astro/client.BQCS8AJJ.js" props="{&quot;title&quot;:[0,&quot;Experiment with HTTP/3 using NGINX and quiche&quot;],&quot;canonical&quot;:[0,&quot;https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;info&quot;:[0,{&quot;id&quot;:[0,&quot;2M0hyPXVNiYWjSUGQRypv2&quot;],&quot;title&quot;:[0,&quot;Experiment with HTTP/3 using NGINX and quiche&quot;],&quot;slug&quot;:[0,&quot;experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;excerpt&quot;:[0,&quot;Just a few weeks ago we announced the availability on our edge network of HTTP/3, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone&quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;\n &lt;figure class=\&quot;kg-card kg-image-card \&quot;&gt;\n \n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7GewSku8hqAHAyubNYEXl4/b896c88a9def673a40ff9218e5d43760/HTTP3-portal_3x.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1600\&quot; height=\&quot;1361\&quot; loading=\&quot;lazy\&quot;/&gt;\n \n &lt;/figure&gt;&lt;p&gt;Just a few weeks ago &lt;a href=\&quot;/http3-the-past-present-and-future/\&quot;&gt;we announced&lt;/a&gt; the availability on our edge network of &lt;a href=\&quot;https://www.cloudflare.com/learning/performance/what-is-http3/\&quot;&gt;HTTP/3&lt;/a&gt;, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone and experiment with it using &lt;a href=\&quot;/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client\&quot;&gt;Chrome Canary&lt;/a&gt; as well as &lt;a href=\&quot;/http3-the-past-present-and-future/#using-curl\&quot;&gt;curl&lt;/a&gt;, among other clients.&lt;/p&gt;&lt;p&gt;We have previously made available &lt;a href=\&quot;https://github.com/cloudflare/quiche/blob/master/examples/http3-server.rs\&quot;&gt;an example HTTP/3 server as part of the quiche project&lt;/a&gt; to allow people to experiment with the protocol, but it’s quite limited in the functionality that it offers, and was never intended to replace other general-purpose web servers.&lt;/p&gt;&lt;p&gt;We are now happy to announce that &lt;a href=\&quot;/enjoy-a-slice-of-quic-and-rust/\&quot;&gt;our implementation of HTTP/3 and QUIC&lt;/a&gt; can be integrated into your own installation of NGINX as well. This is made available &lt;a href=\&quot;https://github.com/cloudflare/quiche/tree/master/extras/nginx\&quot;&gt;as a patch&lt;/a&gt; to NGINX, that can be applied and built directly with the upstream NGINX codebase.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card \&quot;&gt;\n \n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/RGn7FpVUT1wQ1v5yu74c3/d6db309a2e2d99da184b3bbb123f3fb5/quiche-banner-copy_2x.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1600\&quot; height=\&quot;804\&quot; loading=\&quot;lazy\&quot;/&gt;\n \n &lt;/figure&gt;&lt;p&gt;It’s important to note that &lt;b&gt;this is not officially supported or endorsed by the NGINX project&lt;/b&gt;, it is just something that we, Cloudflare, want to make available to the wider community to help push adoption of QUIC and HTTP/3.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;building\&quot;&gt;Building&lt;/h3&gt;\n &lt;a href=\&quot;#building\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;The first step is to &lt;a href=\&quot;https://nginx.org/en/download.html\&quot;&gt;download and unpack the NGINX source code&lt;/a&gt;. Note that the HTTP/3 and QUIC patch only works with the 1.16.x release branch (the latest stable release being 1.16.1).&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % curl -O https://nginx.org/download/nginx-1.16.1.tar.gz\n % tar xvzf nginx-1.16.1.tar.gz&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;As well as quiche, the underlying implementation of HTTP/3 and QUIC:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % git clone --recursive https://github.com/cloudflare/quiche&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;Next you’ll need to apply the patch to NGINX:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % cd nginx-1.16.1\n % patch -p01 &amp;lt; ../quiche/extras/nginx/nginx-1.16.patch&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;And finally build NGINX with HTTP/3 support enabled:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % ./configure \t\\\n \t--prefix=$PWD \t\\\n \t--with-http_ssl_module \t\\\n \t--with-http_v2_module \t\\\n \t--with-http_v3_module \t\\\n \t--with-openssl=../quiche/deps/boringssl \\\n \t--with-quiche=../quiche\n % make&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;The above command instructs the NGINX build system to enable the HTTP/3 support ( &lt;code&gt;--with-http_v3_module&lt;/code&gt;) by using the quiche library found in the path it was previously downloaded into ( &lt;code&gt;--with-quiche=../quiche&lt;/code&gt;), as well as TLS and HTTP/2. Additional build options can be added as needed.&lt;/p&gt;&lt;p&gt;You can check out the full instructions &lt;a href=\&quot;https://github.com/cloudflare/quiche/tree/master/extras/nginx#readme\&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;running\&quot;&gt;Running&lt;/h3&gt;\n &lt;a href=\&quot;#running\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Once built, NGINX can be configured to accept incoming HTTP/3 connections by adding the &lt;code&gt;quic&lt;/code&gt; and &lt;code&gt;reuseport&lt;/code&gt; options to the &lt;a href=\&quot;https://nginx.org/en/docs/http/ngx_http_core_module.html#listen\&quot;&gt;listen&lt;/a&gt; configuration directive.&lt;/p&gt;&lt;p&gt;Here is a minimal configuration example that you can start from:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt;events {\n worker_connections 1024;\n}\n\nhttp {\n server {\n # Enable QUIC and HTTP/3.\n listen 443 quic reuseport;\n\n # Enable HTTP/2 (optional).\n listen 443 ssl http2;\n\n ssl_certificate cert.crt;\n ssl_certificate_key cert.key;\n\n # Enable all TLS versions (TLSv1.3 is required for QUIC).\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;\n \n # Add Alt-Svc header to negotiate HTTP/3.\n add_header alt-svc &amp;#039;h3-23=&amp;quot;:443&amp;quot;; ma=86400&amp;#039;;\n }\n}&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;This will enable both HTTP/2 and HTTP/3 on the TCP/443 and UDP/443 ports respectively.&lt;/p&gt;&lt;p&gt;You can then use one of the available HTTP/3 clients (such as &lt;a href=\&quot;/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client\&quot;&gt;Chrome Canary&lt;/a&gt;, &lt;a href=\&quot;/http3-the-past-present-and-future/#using-curl\&quot;&gt;curl&lt;/a&gt; or even the &lt;a href=\&quot;/http3-the-past-present-and-future/#using-quiche-s-http3-client\&quot;&gt;example HTTP/3 client provided as part of quiche&lt;/a&gt;) to connect to your NGINX instance using HTTP/3.&lt;/p&gt;&lt;p&gt;We are excited to make this available for everyone to experiment and play with HTTP/3, but it’s important to note that &lt;b&gt;the implementation is still experimental&lt;/b&gt; and it’s likely to have bugs as well as limitations in functionality. Feel free to submit a ticket to the &lt;a href=\&quot;https://github.com/cloudflare/quiche\&quot;&gt;quiche project&lt;/a&gt; if you run into problems or find any bug.&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2019-10-17T15:00:00.000+01:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-10-10T00:44:01.752Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5S3sSj49psOqOu1XFbbeHW/e96c476073228c99a34ef9203cc68866/experiment-with-http-3-using-nginx-and-quiche.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;3FBpuRfF7HUFga2Z5jgAFf&quot;],&quot;name&quot;:[0,&quot;NGINX&quot;],&quot;slug&quot;:[0,&quot;nginx&quot;]}],[0,{&quot;id&quot;:[0,&quot;76HSdQ6sNz56VVQXRUhhSw&quot;],&quot;name&quot;:[0,&quot;QUIC&quot;],&quot;slug&quot;:[0,&quot;quic&quot;]}],[0,{&quot;id&quot;:[0,&quot;3skwJ34K0c3CEY1cNogR4n&quot;],&quot;name&quot;:[0,&quot;Chrome&quot;],&quot;slug&quot;:[0,&quot;chrome&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;4mFivBDCciYNedwQVKLKAg&quot;],&quot;name&quot;:[0,&quot;HTTP3&quot;],&quot;slug&quot;:[0,&quot;http3&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Alessandro Ghedini&quot;],&quot;slug&quot;:[0,&quot;alessandro-ghedini&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6ysyaWM0uyFhi5F9X2t0jw/14d2e374a965b36818ee73b00412f671/alessandro-ghedini.jpg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}]]],&quot;meta_description&quot;:[0,null],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;Experiment with HTTP/3 using NGINX and quiche Config&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;Translated for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0],&quot;description&quot;:[0],&quot;imgPreview&quot;:[0,&quot;&quot;]}]}],&quot;tagInfo&quot;:[0],&quot;authorInfo&quot;:[0],&quot;translatedPosts&quot;:[1,[]]}" ssr="" client="only" opts="{&quot;name&quot;:&quot;GoogleAnalytics&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island><script>(()=>{var i=t=>{let e=async()=>{await(await t())()};"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event("astro:idle"));})();</script><astro-island uid="1VAYlf" prefix="r3" component-url="/_astro/Navigation.Ha-IvqmS.js" component-export="Navigation" renderer-url="/_astro/client.BQCS8AJJ.js" props="{&quot;title&quot;:[0,&quot;The Cloudflare Blog&quot;],&quot;logo&quot;:[0,&quot;//images.ctfassets.net/zkvhlag99gkb/69RwBidpiEHCDZ9rFVVk7T/092507edbed698420b89658e5a6d5105/CF_logo_stacked_blktype.png&quot;],&quot;pagesStore&quot;:[0,{&quot;page&quot;:[0,&quot;Post&quot;],&quot;slug&quot;:[0,&quot;experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;translationsAvailable&quot;:[1,[[0,&quot;ko-kr&quot;]]],&quot;navData&quot;:[1,[[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;6QktrXeEFcl4e2dZUTZVGl&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:43:20.198Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:31:56.525Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,5],&quot;revision&quot;:[0,3],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Product News&quot;],&quot;name&quot;:[0,&quot;Product News&quot;],&quot;slug&quot;:[0,&quot;product-news&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;48r7QV00gLMWOIcM1CSDRy&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:54:22.790Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:30:18.450Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,9],&quot;revision&quot;:[0,5],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Speed &amp; Reliability&quot;],&quot;name&quot;:[0,&quot;Speed &amp; Reliability&quot;],&quot;slug&quot;:[0,&quot;speed-and-reliability&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;6Mp7ouACN2rT3YjL1xaXJx&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:42:46.231Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:27:43.433Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,7],&quot;revision&quot;:[0,4],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Security&quot;],&quot;name&quot;:[0,&quot;Security&quot;],&quot;slug&quot;:[0,&quot;security&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;J61Eszqn98amrYHq4IhTx&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:43:46.068Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:24:27.531Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,11],&quot;revision&quot;:[0,6],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Zero Trust&quot;],&quot;name&quot;:[0,&quot;Zero Trust&quot;],&quot;slug&quot;:[0,&quot;zero-trust&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:43:21.536Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:19:10.215Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,9],&quot;revision&quot;:[0,5],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Developers&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;6Foe3R8of95cWVnQwe5Toi&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T22:44:28.803Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:14:33.876Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,13],&quot;revision&quot;:[0,7],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;AI&quot;],&quot;name&quot;:[0,&quot;AI&quot;],&quot;slug&quot;:[0,&quot;ai&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;7ibnRrkJ2kfMuo3JOo0Y69&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:47:23.765Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:12:33.734Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,5],&quot;revision&quot;:[0,3],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Policy&quot;],&quot;name&quot;:[0,&quot;Policy&quot;],&quot;slug&quot;:[0,&quot;policy&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;V86khSc459Yi1AhTlvtY7&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:46:53.657Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:08:03.099Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,10],&quot;revision&quot;:[0,5],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Partners&quot;],&quot;name&quot;:[0,&quot;Partners&quot;],&quot;slug&quot;:[0,&quot;partners&quot;],&quot;featured&quot;:[0,true]}]}],[0,{&quot;metadata&quot;:[0,{&quot;tags&quot;:[1,[]],&quot;concepts&quot;:[1,[]]}],&quot;sys&quot;:[0,{&quot;space&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Space&quot;],&quot;id&quot;:[0,&quot;zkvhlag99gkb&quot;]}]}],&quot;id&quot;:[0,&quot;4g8tPriKOAUwdUT4jNPebe&quot;],&quot;type&quot;:[0,&quot;Entry&quot;],&quot;createdAt&quot;:[0,&quot;2024-10-09T19:46:40.927Z&quot;],&quot;updatedAt&quot;:[0,&quot;2024-10-10T07:05:21.343Z&quot;],&quot;environment&quot;:[0,{&quot;sys&quot;:[0,{&quot;id&quot;:[0,&quot;master&quot;],&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;Environment&quot;]}]}],&quot;publishedVersion&quot;:[0,9],&quot;revision&quot;:[0,5],&quot;contentType&quot;:[0,{&quot;sys&quot;:[0,{&quot;type&quot;:[0,&quot;Link&quot;],&quot;linkType&quot;:[0,&quot;ContentType&quot;],&quot;id&quot;:[0,&quot;blogTag&quot;]}]}],&quot;locale&quot;:[0,&quot;en-US&quot;]}],&quot;fields&quot;:[0,{&quot;entryTitle&quot;:[0,&quot;Life at Cloudflare&quot;],&quot;name&quot;:[0,&quot;Life at Cloudflare&quot;],&quot;slug&quot;:[0,&quot;life-at-cloudflare&quot;],&quot;featured&quot;:[0,true]}]}]]]}],&quot;locale&quot;:[0,&quot;en-us&quot;],&quot;translations&quot;:[0,{&quot;posts.by&quot;:[0,&quot;By&quot;],&quot;footer.gdpr&quot;:[0,&quot;GDPR&quot;],&quot;lang_blurb1&quot;:[0,&quot;This post is also available in {lang1}.&quot;],&quot;lang_blurb2&quot;:[0,&quot;This post is also available in {lang1} and {lang2}.&quot;],&quot;lang_blurb3&quot;:[0,&quot;This post is also available in {lang1}, {lang2} and {lang3}.&quot;],&quot;footer.press&quot;:[0,&quot;Press&quot;],&quot;header.title&quot;:[0,&quot;The Cloudflare Blog&quot;],&quot;search.clear&quot;:[0,&quot;Clear&quot;],&quot;search.filter&quot;:[0,&quot;Filter&quot;],&quot;search.source&quot;:[0,&quot;Source&quot;],&quot;footer.careers&quot;:[0,&quot;Careers&quot;],&quot;footer.company&quot;:[0,&quot;Company&quot;],&quot;footer.support&quot;:[0,&quot;Support&quot;],&quot;footer.the_net&quot;:[0,&quot;theNet&quot;],&quot;search.filters&quot;:[0,&quot;Filters&quot;],&quot;footer.our_team&quot;:[0,&quot;Our team&quot;],&quot;footer.webinars&quot;:[0,&quot;Webinars&quot;],&quot;page.more_posts&quot;:[0,&quot;More posts&quot;],&quot;posts.time_read&quot;:[0,&quot;{time} min read&quot;],&quot;search.language&quot;:[0,&quot;Language&quot;],&quot;footer.community&quot;:[0,&quot;Community&quot;],&quot;footer.resources&quot;:[0,&quot;Resources&quot;],&quot;footer.solutions&quot;:[0,&quot;Solutions&quot;],&quot;footer.trademark&quot;:[0,&quot;Trademark&quot;],&quot;header.subscribe&quot;:[0,&quot;Subscribe&quot;],&quot;footer.compliance&quot;:[0,&quot;Compliance&quot;],&quot;footer.free_plans&quot;:[0,&quot;Free plans&quot;],&quot;footer.impact_ESG&quot;:[0,&quot;Impact/ESG&quot;],&quot;posts.follow_on_X&quot;:[0,&quot;Follow on X&quot;],&quot;footer.help_center&quot;:[0,&quot;Help center&quot;],&quot;footer.network_map&quot;:[0,&quot;Network Map&quot;],&quot;header.please_wait&quot;:[0,&quot;Please Wait&quot;],&quot;page.related_posts&quot;:[0,&quot;Related posts&quot;],&quot;search.result_stat&quot;:[0,&quot;Results &lt;strong&gt;{search_range}&lt;/strong&gt; of &lt;strong&gt;{search_total}&lt;/strong&gt; for &lt;strong&gt;{search_keyword}&lt;/strong&gt;&quot;],&quot;footer.case_studies&quot;:[0,&quot;Case Studies&quot;],&quot;footer.connect_2024&quot;:[0,&quot;Connect 2024&quot;],&quot;footer.terms_of_use&quot;:[0,&quot;Terms of Use&quot;],&quot;footer.white_papers&quot;:[0,&quot;White Papers&quot;],&quot;footer.cloudflare_tv&quot;:[0,&quot;Cloudflare TV&quot;],&quot;footer.community_hub&quot;:[0,&quot;Community Hub&quot;],&quot;footer.compare_plans&quot;:[0,&quot;Compare plans&quot;],&quot;footer.contact_sales&quot;:[0,&quot;Contact Sales&quot;],&quot;header.contact_sales&quot;:[0,&quot;Contact Sales&quot;],&quot;header.email_address&quot;:[0,&quot;Email Address&quot;],&quot;page.error.not_found&quot;:[0,&quot;Page not found&quot;],&quot;footer.developer_docs&quot;:[0,&quot;Developer docs&quot;],&quot;footer.privacy_policy&quot;:[0,&quot;Privacy Policy&quot;],&quot;footer.request_a_demo&quot;:[0,&quot;Request a demo&quot;],&quot;page.continue_reading&quot;:[0,&quot;Continue reading&quot;],&quot;footer.analysts_report&quot;:[0,&quot;Analyst reports&quot;],&quot;footer.for_enterprises&quot;:[0,&quot;For enterprises&quot;],&quot;footer.getting_started&quot;:[0,&quot;Getting Started&quot;],&quot;footer.learning_center&quot;:[0,&quot;Learning Center&quot;],&quot;footer.project_galileo&quot;:[0,&quot;Project Galileo&quot;],&quot;pagination.newer_posts&quot;:[0,&quot;Newer Posts&quot;],&quot;pagination.older_posts&quot;:[0,&quot;Older Posts&quot;],&quot;posts.social_buttons.x&quot;:[0,&quot;Discuss on X&quot;],&quot;search.source_location&quot;:[0,&quot;Source/Location&quot;],&quot;footer.about_cloudflare&quot;:[0,&quot;About Cloudflare&quot;],&quot;footer.athenian_project&quot;:[0,&quot;Athenian Project&quot;],&quot;footer.become_a_partner&quot;:[0,&quot;Become a partner&quot;],&quot;footer.cloudflare_radar&quot;:[0,&quot;Cloudflare Radar&quot;],&quot;footer.network_services&quot;:[0,&quot;Network services&quot;],&quot;footer.trust_and_safety&quot;:[0,&quot;Trust &amp; Safety&quot;],&quot;header.get_started_free&quot;:[0,&quot;Get Started Free&quot;],&quot;page.search.placeholder&quot;:[0,&quot;Search Cloudflare&quot;],&quot;footer.cloudflare_status&quot;:[0,&quot;Cloudflare Status&quot;],&quot;footer.cookie_preference&quot;:[0,&quot;Cookie Preferences&quot;],&quot;header.valid_email_error&quot;:[0,&quot;Must be valid email.&quot;],&quot;footer.connectivity_cloud&quot;:[0,&quot;Connectivity cloud&quot;],&quot;footer.developer_services&quot;:[0,&quot;Developer services&quot;],&quot;footer.investor_relations&quot;:[0,&quot;Investor relations&quot;],&quot;page.not_found.error_code&quot;:[0,&quot;Error Code: 404&quot;],&quot;footer.logos_and_press_kit&quot;:[0,&quot;Logos &amp; press kit&quot;],&quot;footer.application_services&quot;:[0,&quot;Application services&quot;],&quot;footer.get_a_recommendation&quot;:[0,&quot;Get a recommendation&quot;],&quot;posts.social_buttons.reddit&quot;:[0,&quot;Discuss on Reddit&quot;],&quot;footer.sse_and_sase_services&quot;:[0,&quot;SSE and SASE services&quot;],&quot;page.not_found.outdated_link&quot;:[0,&quot;You may have used an outdated link, or you may have typed the address incorrectly.&quot;],&quot;footer.report_security_issues&quot;:[0,&quot;Report Security Issues&quot;],&quot;page.error.error_message_page&quot;:[0,&quot;Sorry, we can&#39;t find the page you are looking for.&quot;],&quot;header.subscribe_notifications&quot;:[0,&quot;Subscribe to receive notifications of new posts:&quot;],&quot;footer.cloudflare_for_campaigns&quot;:[0,&quot;Cloudflare for Campaigns&quot;],&quot;header.subscription_confimation&quot;:[0,&quot;Subscription confirmed. Thank you for subscribing!&quot;],&quot;posts.social_buttons.hackernews&quot;:[0,&quot;Discuss on Hacker News&quot;],&quot;footer.diversity_equity_inclusion&quot;:[0,&quot;Diversity, equity &amp; inclusion&quot;],&quot;footer.critical_infrastructure_defense_project&quot;:[0,&quot;Critical Infrastructure Defense Project&quot;]}]}" ssr="" client="idle" opts="{&quot;name&quot;:&quot;NavigationComponent&quot;,&quot;value&quot;:true}" await-children=""><header class="flex flex-row flex-wrap justify-between items-flex-end mw8 center mv3 pl3 pr1"><div class="w-100 flex items-flex-end justify-between justify-start-l"><div class="w-100 tr flex justify-end"><div class="flex justify-between items-center"><span class="dn di-l pr1"><a href="https://dash.cloudflare.com/sign-up" class="f1 blue1 dn di-l b no-underline underline-hover" target="_blank" rel="noreferrer">Get Started Free</a></span><span class="f1 gray4 dn di-l pr1">|</span><span class="dn di-l"><a target="_blank" href="https://www.cloudflare.com/plans/enterprise/contact/" class="f1 gray4 no-underline underline-hover pr1" rel="noreferrer">Contact Sales</a></span><span class="f1 gray4 dn di-l pr1">|</span><div class="relative flex cf-dropdown"><div class="flex items-center" dir="ltr"><button type="button" class="f1 gray4 no-underline language-picker js-language-picker" style="background:transparent;border:none;padding:0"><span class="language-picker__globe-icon"></span><span class="language-picker__caret-icon ph1">▼</span></button></div></div></div></div></div><div class="w-100 w-50-l flex items-end nb5 nb1-l"><a href="/" class="header-logo mr4 dn db-l"><img class="header-logo" src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/69RwBidpiEHCDZ9rFVVk7T/092507edbed698420b89658e5a6d5105/CF_logo_stacked_blktype.png" alt="The Cloudflare Blog" width="170" height="57"/></a><h2 class="mt0 mb1 dn di-l"><a href="/" class="fw5 f5 gray3 no-underline"><span class="dn di-l">The Cloudflare Blog</span></a></h2></div><div class="w-100 w-50-l dn db-l"><div class="w-100 tr mkto-sub-message"><p class="f2">Subscribe to receive notifications of new posts:</p></div><div class="w-100 tr"><div class="marketo-form-container"><form id="mktoForm_1653"><div class="top-subscribe-form-container"><div class="top-subscribe-form-field"><input placeholder="Email Address" class="top-subscribe-form-input" name="email" type="email" title="Must be valid email."/></div><button class="top-subscribe-form-button" type="button">Subscribe</button></div></form></div></div></div></header><nav dir="ltr" class="bb b--black-10 db dn-l w-100 ph3 "><div class=" flex justify-between items-center" style="height:44px"><a href="/search"><img class="h-6 w-6" src="/images/magnifier.svg" alt="magnifier icon"/></a><button type="button" style="background:transparent;border:none"><img src="/images/hamburger.svg" alt="hamburger menu"/></button></div><div class="js-mobile-nav-container dn"><div class="flex flex-column flex-wrap bg-gray9 o-95 absolute w-90 ph3 z-1"><div class="pv3 ph2 tl"><a href="/tag/product-news" class="no-underline gray1 f4 fw7">Product News</a></div><div class="pv3 ph2 tl"><a href="/tag/speed-and-reliability" class="no-underline gray1 f4 fw7">Speed &amp; Reliability</a></div><div class="pv3 ph2 tl"><a href="/tag/security" class="no-underline gray1 f4 fw7">Security</a></div><div class="pv3 ph2 tl"><a href="/tag/zero-trust" class="no-underline gray1 f4 fw7">Zero Trust</a></div><div class="pv3 ph2 tl"><a href="/tag/developers" class="no-underline gray1 f4 fw7">Developers</a></div><div class="pv3 ph2 tl"><a href="/tag/ai" class="no-underline gray1 f4 fw7">AI</a></div><div class="pv3 ph2 tl"><a href="/tag/policy" class="no-underline gray1 f4 fw7">Policy</a></div><div class="pv3 ph2 tl"><a href="/tag/partners" class="no-underline gray1 f4 fw7">Partners</a></div><div class="pv3 ph2 tl"><a href="/tag/life-at-cloudflare" class="no-underline gray1 f4 fw7">Life at Cloudflare</a></div></div></div></nav><nav id="nav" class="w-100 bb-0 bb-l b--black-10 z-1"><div id="desktop-nav-items-container" class="flex flex-wrap justify-between items-center mw8 center mv3 mv0-l"><div data-tag="product-news" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/product-news" class="no-underline gray1 f2 fw5 pv3">Product News</a></div><div data-tag="speed-and-reliability" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/speed-and-reliability" class="no-underline gray1 f2 fw5 pv3">Speed &amp; Reliability</a></div><div data-tag="security" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/security" class="no-underline gray1 f2 fw5 pv3">Security</a></div><div data-tag="zero-trust" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/zero-trust" class="no-underline gray1 f2 fw5 pv3">Zero Trust</a></div><div data-tag="developers" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/developers" class="no-underline gray1 f2 fw5 pv3">Developers</a></div><div data-tag="ai" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/ai" class="no-underline gray1 f2 fw5 pv3">AI</a></div><div data-tag="policy" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/policy" class="no-underline gray1 f2 fw5 pv3">Policy</a></div><div data-tag="partners" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/partners" class="no-underline gray1 f2 fw5 pv3">Partners</a></div><div data-tag="life-at-cloudflare" class="nav-item nav-item-desktop ml3 mr2 dn db-l pv3"><a href="/tag/life-at-cloudflare" class="no-underline gray1 f2 fw5 pv3">Life at Cloudflare</a></div><div class="nav-item ml2 mr3 dn db-l pv3" data-tag="search icon"><a href="/search/"><img id="search-icon" class="h-6 w-6" src="/images/magnifier.svg" alt="magnifier icon"/></a></div></div></nav><!--astro:end--></astro-island><progress class="reading-progress" value="0" max="100" aria-label="Reading progress"></progress><script>(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event("astro:load"));})();</script><astro-island uid="Z20bWYw" prefix="r1" component-url="/_astro/Post.CntyhspV.js" component-export="Post" renderer-url="/_astro/client.BQCS8AJJ.js" props="{&quot;post&quot;:[0,{&quot;id&quot;:[0,&quot;2M0hyPXVNiYWjSUGQRypv2&quot;],&quot;title&quot;:[0,&quot;Experiment with HTTP/3 using NGINX and quiche&quot;],&quot;slug&quot;:[0,&quot;experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;excerpt&quot;:[0,&quot;Just a few weeks ago we announced the availability on our edge network of HTTP/3, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone&quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;\n &lt;figure class=\&quot;kg-card kg-image-card \&quot;&gt;\n \n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7GewSku8hqAHAyubNYEXl4/b896c88a9def673a40ff9218e5d43760/HTTP3-portal_3x.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1600\&quot; height=\&quot;1361\&quot; loading=\&quot;lazy\&quot;/&gt;\n \n &lt;/figure&gt;&lt;p&gt;Just a few weeks ago &lt;a href=\&quot;/http3-the-past-present-and-future/\&quot;&gt;we announced&lt;/a&gt; the availability on our edge network of &lt;a href=\&quot;https://www.cloudflare.com/learning/performance/what-is-http3/\&quot;&gt;HTTP/3&lt;/a&gt;, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone and experiment with it using &lt;a href=\&quot;/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client\&quot;&gt;Chrome Canary&lt;/a&gt; as well as &lt;a href=\&quot;/http3-the-past-present-and-future/#using-curl\&quot;&gt;curl&lt;/a&gt;, among other clients.&lt;/p&gt;&lt;p&gt;We have previously made available &lt;a href=\&quot;https://github.com/cloudflare/quiche/blob/master/examples/http3-server.rs\&quot;&gt;an example HTTP/3 server as part of the quiche project&lt;/a&gt; to allow people to experiment with the protocol, but it’s quite limited in the functionality that it offers, and was never intended to replace other general-purpose web servers.&lt;/p&gt;&lt;p&gt;We are now happy to announce that &lt;a href=\&quot;/enjoy-a-slice-of-quic-and-rust/\&quot;&gt;our implementation of HTTP/3 and QUIC&lt;/a&gt; can be integrated into your own installation of NGINX as well. This is made available &lt;a href=\&quot;https://github.com/cloudflare/quiche/tree/master/extras/nginx\&quot;&gt;as a patch&lt;/a&gt; to NGINX, that can be applied and built directly with the upstream NGINX codebase.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card \&quot;&gt;\n \n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/RGn7FpVUT1wQ1v5yu74c3/d6db309a2e2d99da184b3bbb123f3fb5/quiche-banner-copy_2x.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1600\&quot; height=\&quot;804\&quot; loading=\&quot;lazy\&quot;/&gt;\n \n &lt;/figure&gt;&lt;p&gt;It’s important to note that &lt;b&gt;this is not officially supported or endorsed by the NGINX project&lt;/b&gt;, it is just something that we, Cloudflare, want to make available to the wider community to help push adoption of QUIC and HTTP/3.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;building\&quot;&gt;Building&lt;/h3&gt;\n &lt;a href=\&quot;#building\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;The first step is to &lt;a href=\&quot;https://nginx.org/en/download.html\&quot;&gt;download and unpack the NGINX source code&lt;/a&gt;. Note that the HTTP/3 and QUIC patch only works with the 1.16.x release branch (the latest stable release being 1.16.1).&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % curl -O https://nginx.org/download/nginx-1.16.1.tar.gz\n % tar xvzf nginx-1.16.1.tar.gz&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;As well as quiche, the underlying implementation of HTTP/3 and QUIC:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % git clone --recursive https://github.com/cloudflare/quiche&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;Next you’ll need to apply the patch to NGINX:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % cd nginx-1.16.1\n % patch -p01 &amp;lt; ../quiche/extras/nginx/nginx-1.16.patch&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;And finally build NGINX with HTTP/3 support enabled:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt; % ./configure \t\\\n \t--prefix=$PWD \t\\\n \t--with-http_ssl_module \t\\\n \t--with-http_v2_module \t\\\n \t--with-http_v3_module \t\\\n \t--with-openssl=../quiche/deps/boringssl \\\n \t--with-quiche=../quiche\n % make&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;The above command instructs the NGINX build system to enable the HTTP/3 support ( &lt;code&gt;--with-http_v3_module&lt;/code&gt;) by using the quiche library found in the path it was previously downloaded into ( &lt;code&gt;--with-quiche=../quiche&lt;/code&gt;), as well as TLS and HTTP/2. Additional build options can be added as needed.&lt;/p&gt;&lt;p&gt;You can check out the full instructions &lt;a href=\&quot;https://github.com/cloudflare/quiche/tree/master/extras/nginx#readme\&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;running\&quot;&gt;Running&lt;/h3&gt;\n &lt;a href=\&quot;#running\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Once built, NGINX can be configured to accept incoming HTTP/3 connections by adding the &lt;code&gt;quic&lt;/code&gt; and &lt;code&gt;reuseport&lt;/code&gt; options to the &lt;a href=\&quot;https://nginx.org/en/docs/http/ngx_http_core_module.html#listen\&quot;&gt;listen&lt;/a&gt; configuration directive.&lt;/p&gt;&lt;p&gt;Here is a minimal configuration example that you can start from:&lt;/p&gt;\n &lt;pre class=\&quot;language-bash\&quot;&gt;&lt;code class=\&quot;language-bash\&quot;&gt;events {\n worker_connections 1024;\n}\n\nhttp {\n server {\n # Enable QUIC and HTTP/3.\n listen 443 quic reuseport;\n\n # Enable HTTP/2 (optional).\n listen 443 ssl http2;\n\n ssl_certificate cert.crt;\n ssl_certificate_key cert.key;\n\n # Enable all TLS versions (TLSv1.3 is required for QUIC).\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;\n \n # Add Alt-Svc header to negotiate HTTP/3.\n add_header alt-svc &amp;#039;h3-23=&amp;quot;:443&amp;quot;; ma=86400&amp;#039;;\n }\n}&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;This will enable both HTTP/2 and HTTP/3 on the TCP/443 and UDP/443 ports respectively.&lt;/p&gt;&lt;p&gt;You can then use one of the available HTTP/3 clients (such as &lt;a href=\&quot;/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client\&quot;&gt;Chrome Canary&lt;/a&gt;, &lt;a href=\&quot;/http3-the-past-present-and-future/#using-curl\&quot;&gt;curl&lt;/a&gt; or even the &lt;a href=\&quot;/http3-the-past-present-and-future/#using-quiche-s-http3-client\&quot;&gt;example HTTP/3 client provided as part of quiche&lt;/a&gt;) to connect to your NGINX instance using HTTP/3.&lt;/p&gt;&lt;p&gt;We are excited to make this available for everyone to experiment and play with HTTP/3, but it’s important to note that &lt;b&gt;the implementation is still experimental&lt;/b&gt; and it’s likely to have bugs as well as limitations in functionality. Feel free to submit a ticket to the &lt;a href=\&quot;https://github.com/cloudflare/quiche\&quot;&gt;quiche project&lt;/a&gt; if you run into problems or find any bug.&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2019-10-17T15:00:00.000+01:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-10-10T00:44:01.752Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5S3sSj49psOqOu1XFbbeHW/e96c476073228c99a34ef9203cc68866/experiment-with-http-3-using-nginx-and-quiche.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;3FBpuRfF7HUFga2Z5jgAFf&quot;],&quot;name&quot;:[0,&quot;NGINX&quot;],&quot;slug&quot;:[0,&quot;nginx&quot;]}],[0,{&quot;id&quot;:[0,&quot;76HSdQ6sNz56VVQXRUhhSw&quot;],&quot;name&quot;:[0,&quot;QUIC&quot;],&quot;slug&quot;:[0,&quot;quic&quot;]}],[0,{&quot;id&quot;:[0,&quot;3skwJ34K0c3CEY1cNogR4n&quot;],&quot;name&quot;:[0,&quot;Chrome&quot;],&quot;slug&quot;:[0,&quot;chrome&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;4mFivBDCciYNedwQVKLKAg&quot;],&quot;name&quot;:[0,&quot;HTTP3&quot;],&quot;slug&quot;:[0,&quot;http3&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Alessandro Ghedini&quot;],&quot;slug&quot;:[0,&quot;alessandro-ghedini&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6ysyaWM0uyFhi5F9X2t0jw/14d2e374a965b36818ee73b00412f671/alessandro-ghedini.jpg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}]]],&quot;meta_description&quot;:[0,null],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;Experiment with HTTP/3 using NGINX and quiche Config&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;Translated for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0],&quot;description&quot;:[0],&quot;imgPreview&quot;:[0,&quot;&quot;]}]}],&quot;initialReadingTime&quot;:[0,&quot;2&quot;],&quot;relatedPosts&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;2b8uznXSknoVGwTIcxxmKp&quot;],&quot;title&quot;:[0,&quot;DO it again: how we used Durable Objects to add WebSockets support and authentication to AI Gateway&quot;],&quot;slug&quot;:[0,&quot;do-it-again&quot;],&quot;excerpt&quot;:[0,&quot;We used Cloudflare’s Developer Platform and Durable Objects to build authentication and a WebSockets API that developers can use to call AI Gateway, enabling continuous communication over a single, persistent connection.&quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;&lt;p&gt;In October 2024, we talked about storing &lt;a href=\&quot;https://blog.cloudflare.com/billions-and-billions-of-logs-scaling-ai-gateway-with-the-cloudflare\&quot;&gt;&lt;u&gt;billions of logs&lt;/u&gt;&lt;/a&gt; from your AI application using AI Gateway, and how we used Cloudflare’s Developer Platform to do this. &lt;/p&gt;&lt;p&gt;With AI Gateway already processing over 3 billion logs and experiencing rapid growth, the number of connections to the platform continues to increase steadily. To help developers manage this scale more effectively, we wanted to offer an alternative to implementing HTTP/2 keep-alive to maintain persistent HTTP(S) connections, thereby avoiding the overhead of repeated handshakes and &lt;a href=\&quot;https://www.cloudflare.com/en-gb/learning/ssl/what-happens-in-a-tls-handshake/\&quot;&gt;&lt;u&gt;TLS negotiations&lt;/u&gt;&lt;/a&gt; with each new HTTP connection to AI Gateway. We understand that implementing HTTP/2 can present challenges, particularly when many libraries and tools may not support it by default and most modern programming languages have well-established WebSocket libraries available.&lt;/p&gt;&lt;p&gt;With this in mind, we used Cloudflare’s Developer Platform and Durable Objects (yes, again!) to build a &lt;a href=\&quot;https://developers.cloudflare.com/workers/runtime-apis/websockets/\&quot;&gt;&lt;u&gt;WebSockets API&lt;/u&gt;&lt;/a&gt; that establishes a single, persistent connection, enabling continuous communication. &lt;/p&gt;&lt;p&gt;Through this API, all AI providers supported by AI Gateway can be accessed via WebSocket, allowing you to maintain a single TCP connection between your client or server application and the AI Gateway. The best part? Even if your chosen provider doesn’t support WebSockets, we handle it for you, managing the requests to your preferred AI provider.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/20z8XfL3pJ78z1Y0Yp7JNO/0b8607702a25ede4268009f124278985/unnamed.png\&quot; alt=\&quot;BLOG-2617 2\&quot; class=\&quot;kg-image\&quot; width=\&quot;1290\&quot; height=\&quot;516\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;By connecting via WebSocket to AI Gateway, we make the requests to the inference service for you using the provider’s supported protocols (HTTPS, WebSocket, etc.), and you can keep the connection open to execute as many inference requests as you would like. &lt;/p&gt;&lt;p&gt;To make your connection to AI Gateway more secure, we are also introducing authentication for AI Gateway. The new WebSockets API will require authentication. All you need to do is &lt;a href=\&quot;https://developers.cloudflare.com/fundamentals/api/get-started/create-token/#_top\&quot;&gt;&lt;u&gt;create a Cloudflare API token&lt;/u&gt;&lt;/a&gt; with the permission “AI Gateway: Run” and send that in the &lt;code&gt;cf-aig-authorization&lt;/code&gt; header.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2NqmYZX8NdnrTUBHkQiLA1/4bda8a44aa225c7ff440686dd3046a5a/image4.png\&quot; alt=\&quot;BLOG-2617 3\&quot; class=\&quot;kg-image\&quot; width=\&quot;1344\&quot; height=\&quot;516\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;In the flow diagram above:&lt;/p&gt;&lt;p&gt;1️⃣ When Authenticated Gateway is enabled and a valid token is included, requests will pass successfully.&lt;/p&gt;&lt;p&gt;2️⃣ If Authenticated Gateway is enabled, but a request does not contain the required &lt;code&gt;cf-aig-authorization&lt;/code&gt; header with a valid token, the request will fail. This ensures only verified requests pass through the gateway. &lt;/p&gt;&lt;p&gt;3️⃣ When Authenticated Gateway is disabled, the &lt;code&gt;cf-aig-authorization&lt;/code&gt; header is bypassed entirely, and any token — whether valid or invalid — is ignored.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;how-we-built-it\&quot;&gt;How we built it&lt;/h2&gt;\n &lt;a href=\&quot;#how-we-built-it\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We recently used Durable Objects (DOs) to scale our logging solution for AI Gateway, so using WebSockets within the same DOs was a natural fit.&lt;/p&gt;&lt;p&gt;When a new WebSocket connection is received by our Cloudflare Workers, we implement authentication in two ways to support the diverse capabilities of WebSocket clients. The primary method involves validating a Cloudflare API token through the &lt;code&gt;cf-aig-authorization&lt;/code&gt; header, ensuring the token is valid for the connecting account and gateway. &lt;/p&gt;&lt;p&gt;However, due to limitations in browser WebSocket implementations, we also support authentication via the “sec-websocket-protocol” header. Browser WebSocket clients don&amp;#39;t allow for custom headers in their standard API, complicating the addition of authentication tokens in requests. While we don’t recommend that you store API keys in a browser, we decided to add this method to add more flexibility to all WebSocket clients.&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;// Built-in WebSocket client in browsers\nconst socket = new WebSocket(&amp;quot;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&amp;quot;, [\n &amp;quot;cf-aig-authorization.${AI_GATEWAY_TOKEN}&amp;quot;\n]);\n\n\n// ws npm package\nimport WebSocket from &amp;quot;ws&amp;quot;;\nconst ws = new WebSocket(&amp;quot;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&amp;quot;,{\n headers: {\n &amp;quot;cf-aig-authorization&amp;quot;: &amp;quot;Bearer AI_GATEWAY_TOKEN&amp;quot;,\n },\n});\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;After this initial verification step, we upgrade the connection to the Durable Object, meaning that it will now handle all the messages for the connection. Before the new connection is fully accepted, we generate a random UUID, so this connection is identifiable among all the messages received by the Durable Object. During an open connection, any AI Gateway settings passed via headers — such as &lt;code&gt;cf-aig-skip-cache&lt;/code&gt; (&lt;a href=\&quot;https://developers.cloudflare.com/ai-gateway/configuration/caching/#skip-cache-cf-skip-cache\&quot;&gt;&lt;u&gt;which bypasses caching when set to true&lt;/u&gt;&lt;/a&gt;) — are stored and applied to all requests in the session. However, these headers can still be overridden on a per-request basis, just like with the &lt;a href=\&quot;https://developers.cloudflare.com/ai-gateway/providers/universal/\&quot;&gt;&lt;u&gt;Universal Endpoint&lt;/u&gt;&lt;/a&gt; today.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;how-it-works\&quot;&gt;How it works&lt;/h2&gt;\n &lt;a href=\&quot;#how-it-works\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Once the connection is established, the Durable Object begins listening for incoming messages. From this point on, users can send messages in the AI Gateway universal format via WebSocket, simplifying the transition of your application from an existing HTTP setup to WebSockets-based communication.&lt;/p&gt;\n &lt;pre class=\&quot;language-JavaScript\&quot;&gt;&lt;code class=\&quot;language-JavaScript\&quot;&gt;import WebSocket from &amp;quot;ws&amp;quot;;\nconst ws = new WebSocket(&amp;quot;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&amp;quot;,{\n headers: {\n &amp;quot;cf-aig-authorization&amp;quot;: &amp;quot;Bearer AI_GATEWAY_TOKEN&amp;quot;,\n },\n});\n\nws.send(JSON.stringify({\n type: &amp;quot;universal.create&amp;quot;,\n request: {\n &amp;quot;eventId&amp;quot;: &amp;quot;my-request&amp;quot;,\n &amp;quot;provider&amp;quot;: &amp;quot;workers-ai&amp;quot;,\n &amp;quot;endpoint&amp;quot;: &amp;quot;@cf/meta/llama-3.1-8b-instruct&amp;quot;,\n &amp;quot;headers&amp;quot;: {\n &amp;quot;Authorization&amp;quot;: &amp;quot;Bearer WORKERS_AI_TOKEN&amp;quot;,\n &amp;quot;Content-Type&amp;quot;: &amp;quot;application/json&amp;quot;\n },\n &amp;quot;query&amp;quot;: {\n &amp;quot;prompt&amp;quot;: &amp;quot;tell me a joke&amp;quot;\n }\n }\n}));\n\nws.on(&amp;quot;message&amp;quot;, function incoming(message) {\n console.log(message.toString())\n});\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;When a new message reaches the Durable Object, it’s processed using the same code that powers the HTTP Universal Endpoint, enabling seamless code reuse across Workers and Durable Objects — one of the key benefits of building on Cloudflare.&lt;/p&gt;&lt;p&gt;For non-streaming requests, the response is wrapped in a JSON envelope, allowing us to include additional information beyond the AI inference itself, such as the AI Gateway log ID for that request.&lt;/p&gt;&lt;p&gt;Here’s an example response for the request above:&lt;/p&gt;\n &lt;pre class=\&quot;language-Rust\&quot;&gt;&lt;code class=\&quot;language-Rust\&quot;&gt;{\n &amp;quot;type&amp;quot;:&amp;quot;universal.created&amp;quot;,\n &amp;quot;metadata&amp;quot;:{\n &amp;quot;cacheStatus&amp;quot;:&amp;quot;MISS&amp;quot;,\n &amp;quot;eventId&amp;quot;:&amp;quot;my-request&amp;quot;,\n &amp;quot;logId&amp;quot;:&amp;quot;01JC3R94FRD97JBCBX3S0ZAXKW&amp;quot;,\n &amp;quot;step&amp;quot;:&amp;quot;0&amp;quot;,\n &amp;quot;contentType&amp;quot;:&amp;quot;application/json&amp;quot;\n },\n &amp;quot;response&amp;quot;:{\n &amp;quot;result&amp;quot;:{\n &amp;quot;response&amp;quot;:&amp;quot;Why was the math book sad? Because it had too many problems. Would you like to hear another one?&amp;quot;\n },\n &amp;quot;success&amp;quot;:true,\n &amp;quot;errors&amp;quot;:[],\n &amp;quot;messages&amp;quot;:[]\n }\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;For streaming requests, AI Gateway sends an initial message with request metadata telling the developer the stream is starting.&lt;/p&gt;\n &lt;pre class=\&quot;language-Rust\&quot;&gt;&lt;code class=\&quot;language-Rust\&quot;&gt;{\n &amp;quot;type&amp;quot;:&amp;quot;universal.created&amp;quot;,\n &amp;quot;metadata&amp;quot;:{\n &amp;quot;cacheStatus&amp;quot;:&amp;quot;MISS&amp;quot;,\n &amp;quot;eventId&amp;quot;:&amp;quot;my-request&amp;quot;,\n &amp;quot;logId&amp;quot;:&amp;quot;01JC40RB3NGBE5XFRZGBN07572&amp;quot;,\n &amp;quot;step&amp;quot;:&amp;quot;0&amp;quot;,\n &amp;quot;contentType&amp;quot;:&amp;quot;text/event-stream&amp;quot;\n }\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;After this initial message, all streaming chunks are relayed in real-time to the WebSocket connection as they arrive from the inference provider. Note that only the &lt;code&gt;eventId&lt;/code&gt; field is included in the metadata for these streaming chunks (more info on what this new field is below).&lt;/p&gt;\n &lt;pre class=\&quot;language-Rust\&quot;&gt;&lt;code class=\&quot;language-Rust\&quot;&gt;{\n &amp;quot;type&amp;quot;:&amp;quot;universal.stream&amp;quot;,\n &amp;quot;metadata&amp;quot;:{\n &amp;quot;eventId&amp;quot;:&amp;quot;my-request&amp;quot;,\n }\n &amp;quot;response&amp;quot;:{\n &amp;quot;response&amp;quot;:&amp;quot;would&amp;quot;\n }\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;This approach serves two purposes: first, all request metadata is already provided in the initial message. Second, it addresses the concurrency challenge of handling multiple streaming requests simultaneously.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;handling-asynchronous-events\&quot;&gt;Handling asynchronous events&lt;/h2&gt;\n &lt;a href=\&quot;#handling-asynchronous-events\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;With WebSocket connections, client and server can send messages asynchronously at any time. This means the client doesn’t need to wait for a server response before sending another message. But what happens if a client sends multiple streaming inference requests immediately after the WebSocket connection opens?&lt;/p&gt;&lt;p&gt;In this case, the server streams all the inference responses simultaneously to the client. Since everything occurs asynchronously, the client has no built-in way to identify which response corresponds to each request.&lt;/p&gt;&lt;p&gt;To address this, we introduced a new field in the Universal format called &lt;code&gt;eventId&lt;/code&gt;, which allows AI Gateway to include a client-defined ID with each message, even in a streaming WebSocket environment.&lt;/p&gt;&lt;p&gt;So, to fully answer the question above: the server streams both responses in parallel chunks, and the client can accurately identify which request each message belongs to based on the &lt;code&gt;eventId&lt;/code&gt;.&lt;/p&gt;&lt;div style=\&quot;position: relative; padding-top: 64.46945337620579%;\&quot;&gt;\n &lt;iframe\n src=\&quot;https://customer-eq7kiuol0tk9chox.cloudflarestream.com/324e09febc0e82cc472df27994001319/iframe?preload=true&amp;poster=https%3A%2F%2Fcustomer-eq7kiuol0tk9chox.cloudflarestream.com%2F324e09febc0e82cc472df27994001319%2Fthumbnails%2Fthumbnail.jpg%3Ftime%3D%26height%3D600&amp;title=How+we+used+Durable+Objects+to+add+WebSockets+support+and+authentication+to+AI+Gateway\&quot;\n loading=\&quot;lazy\&quot;\n style=\&quot;border: none; position: absolute; top: 0; left: 0; height: 100%; width: 100%;\&quot;\n allow=\&quot;accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;\&quot;\n allowfullscreen=\&quot;true\&quot;\n &gt;&lt;/iframe&gt;\n&lt;/div&gt;&lt;p&gt;Once all chunks for a request have been streamed, AI Gateway sends a final message to signal the request’s completion. For added flexibility, this message includes all the metadata again, even though it was also provided at the start of the streaming process.&lt;/p&gt;\n &lt;pre class=\&quot;language-Rust\&quot;&gt;&lt;code class=\&quot;language-Rust\&quot;&gt;{\n &amp;quot;type&amp;quot;:&amp;quot;universal.done&amp;quot;,\n &amp;quot;metadata&amp;quot;:{\n &amp;quot;cacheStatus&amp;quot;:&amp;quot;MISS&amp;quot;,\n &amp;quot;eventId&amp;quot;:&amp;quot;my-request&amp;quot;,\n &amp;quot;logId&amp;quot;:&amp;quot;01JC40RB3NGBE5XFRZGBN07572&amp;quot;,\n &amp;quot;step&amp;quot;:&amp;quot;0&amp;quot;,\n &amp;quot;contentType&amp;quot;:&amp;quot;text/event-stream&amp;quot;\n }\n}\n&lt;/pre&gt;&lt;/code&gt;\n \n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;try-it-out-today\&quot;&gt;Try it out today&lt;/h2&gt;\n &lt;a href=\&quot;#try-it-out-today\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;AI Gateway’s real-time Websocket API is now in beta and open to everyone!&lt;/p&gt;&lt;p&gt;To try it out, copy your gateway universal endpoint URL, and replace the “https://” with “wss://”, like this: &lt;/p&gt;&lt;p&gt;&lt;code&gt;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&lt;/code&gt;&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5qbWGSAjCj8GjKmY8Zyvld/1bf36332de118857e3d24baea0c2ffc9/BLOG-2617_4.png\&quot; alt=\&quot;BLOG-2617 4\&quot; class=\&quot;kg-image\&quot; width=\&quot;1778\&quot; height=\&quot;1642\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Then open a WebSocket connection using your Universal Endpoint, and guarantee that it is authenticated with a Cloudflare token with the AI Gateway &lt;i&gt;Run&lt;/i&gt; permission.&lt;/p&gt;&lt;p&gt;Here’s an example code using the &lt;a href=\&quot;https://www.npmjs.com/package/ws\&quot;&gt;&lt;u&gt;ws npm package&lt;/u&gt;&lt;/a&gt;:&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;import WebSocket from &amp;quot;ws&amp;quot;;\nconst ws = new WebSocket(&amp;quot;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&amp;quot;, {\n headers: {\n &amp;quot;cf-aig-authorization&amp;quot;: &amp;quot;Bearer AI_GATEWAY_TOKEN&amp;quot;,\n },\n});\n\nws.on(&amp;quot;open&amp;quot;, function open() {\n console.log(&amp;quot;Connected to server.&amp;quot;);\n ws.send(JSON.stringify({\n type: &amp;quot;universal.create&amp;quot;,\n request: {\n &amp;quot;provider&amp;quot;: &amp;quot;workers-ai&amp;quot;,\n &amp;quot;endpoint&amp;quot;: &amp;quot;@cf/meta/llama-3.1-8b-instruct&amp;quot;,\n &amp;quot;headers&amp;quot;: {\n &amp;quot;Authorization&amp;quot;: &amp;quot;Bearer WORKERS_AI_TOKEN&amp;quot;,\n &amp;quot;Content-Type&amp;quot;: &amp;quot;application/json&amp;quot;\n },\n &amp;quot;query&amp;quot;: {\n &amp;quot;stream&amp;quot;: true,\n &amp;quot;prompt&amp;quot;: &amp;quot;tell me a joke&amp;quot;\n }\n }\n }));\n});\n\n\nws.on(&amp;quot;message&amp;quot;, function incoming(message) {\n console.log(message.toString())\n});\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;Here’s an example code using the built-in browser WebSocket client:&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;const socket = new WebSocket(&amp;quot;wss://gateway.ai.cloudflare.com/v1/my-account-id/my-gateway/&amp;quot;, [\n &amp;quot;cf-aig-authorization.${AI_GATEWAY_TOKEN}&amp;quot;\n]);\n\nsocket.addEventListener(&amp;quot;open&amp;quot;, (event) =&amp;gt; {\n console.log(&amp;quot;Connected to server.&amp;quot;);\n socket.send(JSON.stringify({\n type: &amp;quot;universal.create&amp;quot;,\n request: {\n &amp;quot;provider&amp;quot;: &amp;quot;workers-ai&amp;quot;,\n &amp;quot;endpoint&amp;quot;: &amp;quot;@cf/meta/llama-3.1-8b-instruct&amp;quot;,\n &amp;quot;headers&amp;quot;: {\n &amp;quot;Authorization&amp;quot;: &amp;quot;Bearer WORKERS_AI_TOKEN&amp;quot;,\n &amp;quot;Content-Type&amp;quot;: &amp;quot;application/json&amp;quot;\n },\n &amp;quot;query&amp;quot;: {\n &amp;quot;stream&amp;quot;: true,\n &amp;quot;prompt&amp;quot;: &amp;quot;tell me a joke&amp;quot;\n }\n }\n }));\n});\n\nsocket.addEventListener(&amp;quot;message&amp;quot;, (event) =&amp;gt; {\n console.log(event.data);\n});\n&lt;/pre&gt;&lt;/code&gt;\n \n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;and-we-will-do-it-again\&quot;&gt;And we will DO it again&lt;/h3&gt;\n &lt;a href=\&quot;#and-we-will-do-it-again\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;In Q1 2025, we plan to support WebSocket-to-WebSocket connections (using DOs), allowing you to connect to OpenAI&amp;#39;s new real-time API directly through our platform. In the meantime, you can deploy &lt;a href=\&quot;https://github.com/cloudflare/openai-workers-relay\&quot;&gt;&lt;u&gt;this Worker&lt;/u&gt;&lt;/a&gt; in your account to proxy the requests yourself.&lt;/p&gt;&lt;p&gt;If you have any questions, reach out on our &lt;a href=\&quot;http://discord.cloudflare.com/\&quot;&gt;&lt;u&gt;Discord channel&lt;/u&gt;&lt;/a&gt;. We’re also hiring for AI Gateway, check out &lt;a href=\&quot;https://www.cloudflare.com/en-gb/careers/jobs/?department=Emerging+Technology+and+Incubation&amp;location=Lisbon%2C+Portugal\&quot;&gt;&lt;u&gt;Cloudflare Jobs in Lisbon&lt;/u&gt;&lt;/a&gt;!&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2024-11-19T14:00-08:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-11-19T14:00:06.590Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7pWrV3fofHKlFNRux72rdY/37e923b4a6668480d42086e81fccb266/BLOG-2617_1.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;6Foe3R8of95cWVnQwe5Toi&quot;],&quot;name&quot;:[0,&quot;AI&quot;],&quot;slug&quot;:[0,&quot;ai&quot;]}],[0,{&quot;id&quot;:[0,&quot;1GyUhE8o287lrdNSpdRUIe&quot;],&quot;name&quot;:[0,&quot;AI Gateway&quot;],&quot;slug&quot;:[0,&quot;ai-gateway&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;3JAY3z7p7An94s6ScuSQPf&quot;],&quot;name&quot;:[0,&quot;Developer Platform&quot;],&quot;slug&quot;:[0,&quot;developer-platform&quot;]}],[0,{&quot;id&quot;:[0,&quot;1Efeqd1oZ7vy3xls0fdjHF&quot;],&quot;name&quot;:[0,&quot;Agile Developer Services&quot;],&quot;slug&quot;:[0,&quot;agile-developer-services&quot;]}],[0,{&quot;id&quot;:[0,&quot;78aSAeMjGNmCuetQ7B4OgU&quot;],&quot;name&quot;:[0,&quot;JavaScript&quot;],&quot;slug&quot;:[0,&quot;javascript&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Catarina Pires Mota&quot;],&quot;slug&quot;:[0,&quot;catarina-pires-mota&quot;],&quot;bio&quot;:[0],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1YWsahYr40z3FhQwupqAlX/a106b6fd29b4862193399b15022f45b3/_tmp_mini_magick20220926-42-fogz3a.jpg&quot;],&quot;location&quot;:[0],&quot;website&quot;:[0],&quot;twitter&quot;:[0],&quot;facebook&quot;:[0]}],[0,{&quot;name&quot;:[0,&quot;Gabriel Massadas&quot;],&quot;slug&quot;:[0,&quot;gabriel-massadas&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7oQXIEt6Jo1bGVuttPgl46/1c53697f20dec595f4a3f6a13303ff8c/gabriel-massadas.jpeg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}]]],&quot;meta_description&quot;:[0,&quot;We used Cloudflare’s Developer Platform and Durable Objects to build authentication and a WebSockets API that developers can use to call AI Gateway, enabling continuous communication over a single, persistent connection.&quot;],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;blog-english-only&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;No Page for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/do-it-again&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0,&quot;DO it again: how we used Durable Objects to add WebSockets support and authentication to AI Gateway&quot;],&quot;description&quot;:[0,&quot;We used Cloudflare’s Developer Platform and Durable Objects to build authentication and a WebSockets API that developers can use to call AI Gateway, enabling continuous communication over a single, persistent connection.&quot;],&quot;imgPreview&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6WRhvjGNDm8Cg8UqbaDSxh/a67f73081c4788250d2d09d870319e78/DO_it_again-_how_we_used_Durable_Objects_to_add_WebSockets_support_and_authentication_to_AI_Gateway-OG.png&quot;]}]}],[0,{&quot;id&quot;:[0,&quot;5BHU4q5GpzBQ1OLQoUvkKN&quot;],&quot;title&quot;:[0,&quot;What’s new in Cloudflare: Account Owned Tokens and Zaraz Automated Actions&quot;],&quot;slug&quot;:[0,&quot;account-owned-tokens-automated-actions-zaraz&quot;],&quot;excerpt&quot;:[0,&quot;Cloudflare customers can now create Account Owned Tokens , allowing more flexibility around access control for their Cloudflare services. Additionally, Zaraz Automation Actions streamlines event tracking and third-party tool integration. &quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;&lt;p&gt;In October 2024, we started publishing roundup blog posts to share the latest features and updates from our teams. Today, we are announcing general availability for Account Owned Tokens, which allow organizations to improve access control for their Cloudflare services. Additionally, we are launching Zaraz Automated Actions, which is a new feature designed to streamline event tracking and tool integration when setting up third-party tools. By automating common actions like pageviews, custom events, and e-commerce tracking, it removes the need for manual configurations.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;improving-access-control-for-cloudflare-services-with-account-owned-tokens\&quot;&gt;Improving access control for Cloudflare services with Account Owned Tokens&lt;/h2&gt;\n &lt;a href=\&quot;#improving-access-control-for-cloudflare-services-with-account-owned-tokens\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Cloudflare is critical infrastructure for the Internet, and we understand that many of the organizations that build on Cloudflare rely on apps and integrations outside the platform to make their lives easier. In order to allow access to Cloudflare resources, these apps and integrations interact with Cloudflare via our API, enabled by access tokens and API keys. Today, the API Access Tokens and API keys on the Cloudflare platform are owned by individual users, which can lead to some difficulty representing services, and adds an additional dependency on managing users alongside token permissions.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;whats-new-about-account-owned-tokens\&quot;&gt;What’s new about Account Owned Tokens&lt;/h3&gt;\n &lt;a href=\&quot;#whats-new-about-account-owned-tokens\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;First, a little explanation because the terms can be a little confusing. On Cloudflare, we have both Users and Accounts, and they mean different things, but sometimes look similar. Users are people, and they sign in with an email address. Accounts are not people, they’re the top-level bucket we use to organize all the resources you use on Cloudflare. Accounts can have many users, and that’s how we enable collaboration. If you use Cloudflare for your personal projects, both your User and Account might have your email address as the name, but if you use Cloudflare as a company, the difference is more apparent because your user is “&lt;a href=\&quot;mailto:joe.smith@example.com\&quot;&gt;&lt;u&gt;joe.smith@example.com&lt;/u&gt;&lt;/a&gt;” and the account might be “Example Company”. &lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5tcNkxDjYz9jAXnfV0bPON/920a9dade7145de2adee21afa43d786e/image13.jpg\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1836\&quot; height=\&quot;1225\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Account Owned Tokens are not confined by the permissions of the creating user (e.g. a user can never make a token that can edit a field that they otherwise couldn’t edit themselves) and are scoped to the account they are owned by. This means that instead of creating a token belonging to the user “&lt;a href=\&quot;mailto:joe.smith@example.com\&quot;&gt;&lt;u&gt;joe.smith@example.com&lt;/u&gt;&lt;/a&gt;”, you can now create a token belonging to the account “Example Company”.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/ibh4sT2wgVLVTgqgv2rtO/eb972a5b1c5fa0f70471631430a8ff91/image8.jpg\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1385\&quot; height=\&quot;1623\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;The ability to make these tokens, owned by the account instead of the user, allows for more flexibility to represent what the access should be used for.&lt;/p&gt;&lt;p&gt;Prior to Account Owned Tokens, customers would have to have a user (&lt;a href=\&quot;mailto:joe.smith@example.com\&quot;&gt;&lt;u&gt;joe.smith@example.com&lt;/u&gt;&lt;/a&gt;) create a token to pull a list of Cloudflare zones for their account and ensure their security settings are set correctly as part of a compliance workflow, for example. All of the actions this compliance workflow does are now attributed to joe.smith, and if joe.smith leaves the company and his permissions are revoked, the compliance workflow fails.&lt;/p&gt;&lt;p&gt;With this new release, an Account Owned Token could be created, named “compliance workflow”, with permissions to do this operation independently of &lt;a href=\&quot;mailto:joe.smith@example.com\&quot;&gt;&lt;u&gt;joe.smith@example.com&lt;/u&gt;&lt;/a&gt;. All actions this token does are attributable to “compliance workflow”. This token is visible and manageable by all the superadmins on your Cloudflare account. If joe.smith leaves the company, the access remains independent of that user, and all super administrators on the account moving forward can still see, edit, roll, and delete the token as needed.&lt;/p&gt;&lt;p&gt;Any long-running services or programs can be represented by these types of tokens, be made visible (and manageable) by all super administrators in your Cloudflare account, and truly represent the service, instead of the users managing the service. Audit logs moving forward will log that a given token was used, and user access can be kept to a minimum.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;getting-started\&quot;&gt;Getting started&lt;/h3&gt;\n &lt;a href=\&quot;#getting-started\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Account Owned Tokens can be found on the new “API Tokens” tab under the “Manage Account” section of your Cloudflare dashboard, and any Super Administrators on your account have the capability to create, edit, roll, and delete these tokens. The API is the same, but at a new &lt;code&gt;/account/&amp;lt;accountId&amp;gt;/tokens&lt;/code&gt; endpoint.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/uZFVUp1RRP1NgZli9RAYN/5e2b90bea51b7b45bb25478120fd9024/Screenshot_2024-11-13_at_20.14.43.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;2024\&quot; height=\&quot;648\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1kiUi4lsJESJqr9HhgCS92/b4b0a3e955742346a5c945601fff4885/image3.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1394\&quot; height=\&quot;896\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;why-where-should-i-use-account-owned-tokens\&quot;&gt;Why/where should I use Account Owned Tokens?&lt;/h3&gt;\n &lt;a href=\&quot;#why-where-should-i-use-account-owned-tokens\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;There are a few places we would recommend replacing your User Owned Tokens with Account Owned Tokens:&lt;/p&gt;&lt;p&gt;1. &lt;b&gt;Long-running services that are managed by multiple people:&lt;/b&gt; When multiple users all need to manage the same service, Account Owned Tokens can remove the bottleneck of requiring a single person to be responsible for all the edits, rotations, and deletions of the tokens. In addition, this guards against any user lifecycle events affecting the service. If the employee that owns the token for your service leaves the company, the service’s token will no longer be based on their permissions.&lt;/p&gt;&lt;p&gt;2.&lt;b&gt; Cloudflare accounts running any services that need attestable access records beyond user membership:&lt;/b&gt; By restricting all of your users from being able to access the API, and consolidating all usable tokens to a single list at the account level, you can ensure that a complete list of all API access can be found in a single place on the dashboard, under “Account API Tokens”.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2qtssh6bef5Ne6kugqUUnc/af11e3db733f4f38188988ac42034c26/image9.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1379\&quot; height=\&quot;252\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;3. &lt;b&gt;Anywhere you’ve created “Service Users”:&lt;/b&gt; “Service Users”, or any identity that is meant to allow multiple people to access Cloudflare, are an active threat surface. They are generally highly privileged, and require additional controls (vaulting, password rotation, monitoring) to ensure non-repudiation and appropriate use. If these operations solely require API access, consolidating that access into an Account Owned Token is safe.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;why-where-should-i-use-user-owned-tokens\&quot;&gt;Why/where should I use User Owned Tokens?&lt;/h3&gt;\n &lt;a href=\&quot;#why-where-should-i-use-user-owned-tokens\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;There are a few scenarios/situations where you should continue to use User Owned Tokens:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Where programmatic access is done by a single person at an external interface:&lt;/b&gt; If a single user has an external interface using their own access privileges at Cloudflare, it still makes sense to use a personal token, so that information access can be traced back to them. (e.g. using a personal token in a data visualization tool that pulls logs from Cloudflare)&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=\&quot;https://developers.cloudflare.com/api/operations/user-user-details\&quot;&gt;&lt;b&gt;&lt;u&gt;User level operations&lt;/u&gt;&lt;/b&gt;&lt;/a&gt;&lt;b&gt;:&lt;/b&gt; Any operations that operate on your own user (e.g. email changes, password changes, user preferences) still require a user level token.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Where you want to control resources over multiple accounts with the same credential:&lt;/b&gt; As of November 2024, Account Owned Tokens are scoped to a single account. In 2025, we want to ensure that we can create cross-account credentials, anywhere that multiple accounts have to be called in the same set of operations should still rely on API Tokens owned by a user.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Where we currently do not support a given endpoint:&lt;/b&gt; We are currently in the process of working through a &lt;a href=\&quot;https://developers.cloudflare.com/fundamentals/api/get-started/account-owned-tokens/\&quot;&gt;&lt;u&gt;list of our services&lt;/u&gt;&lt;/a&gt; to ensure that they all support Account Owned Tokens. When interacting with any of these services that are not supported programmatically, please continue to use User Owned Tokens.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Where you need to do token management programmatically:&lt;/b&gt; If you are in an organization that needs to create and delete large numbers of tokens programmatically, please continue to use User Owned Tokens. In late 2024, watch for the “Create Additional Tokens” template on the Account Owned Tokens Page. This template and associated created token will allow for the management of additional tokens.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/4BGL99WFnh4oOgTFhRY5N3/26bca9fa8851729d4128c2836db62c3c/image6.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;996\&quot; height=\&quot;66\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;what-does-this-mean-for-my-existing-tokens-and-programmatic-access-moving-forward\&quot;&gt;What does this mean for my existing tokens and programmatic access moving forward?&lt;/h3&gt;\n &lt;a href=\&quot;#what-does-this-mean-for-my-existing-tokens-and-programmatic-access-moving-forward\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We do not plan to decommission User Owned Tokens, as they still have a place in our overall access model and are handy for ensuring user-centric workflows can be implemented.&lt;/p&gt;&lt;p&gt;As of November 2024, we’re still working to ensure that ALL of our endpoints work with Account Owned Tokens, and we expect to deliver additional token management improvements continuously, with an expected end date of Q3 2025 to cover all endpoints.&lt;/p&gt;&lt;p&gt;A list of services that support, and do not support, Account Owned Tokens can be found in our &lt;a href=\&quot;https://developers.cloudflare.com/fundamentals/api/get-started/account-owned-tokens/\&quot;&gt;&lt;u&gt;documentation.&lt;/u&gt;&lt;/a&gt;&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;whats-next\&quot;&gt;What’s next?&lt;/h3&gt;\n &lt;a href=\&quot;#whats-next\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;If Account Owned Tokens could provide value to your or your organization, documentation is available &lt;a href=\&quot;https://developers.cloudflare.com/fundamentals/api/get-started/account-owned-tokens/\&quot;&gt;&lt;u&gt;here&lt;/u&gt;&lt;/a&gt;, and you can give them a try today from the “API Tokens” menu in your dashboard.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;zaraz-automated-actions-makes-adding-tools-to-your-website-a-breeze\&quot;&gt;Zaraz Automated Actions makes adding tools to your website a breeze&lt;/h2&gt;\n &lt;a href=\&quot;#zaraz-automated-actions-makes-adding-tools-to-your-website-a-breeze\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n \n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5DkxlchIDUZbQ15x0H0usK/eb656617c1c83805bda98c7dfe896bda/image2.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1125\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;&lt;a href=\&quot;https://www.cloudflare.com/en-gb/application-services/products/zaraz/\&quot;&gt;&lt;u&gt;Cloudflare Zaraz&lt;/u&gt;&lt;/a&gt; is a tool designed to manage and optimize third-party tools like analytics, marketing tags, or social media scripts on websites. By loading these third-party services through Cloudflare’s network, Zaraz improves website performance, security, and privacy. It ensures that these external scripts don&amp;#39;t slow down page loading times or expose sensitive user data, as it handles them efficiently through Cloudflare&amp;#39;s global network, reducing latency and improving the user experience.&lt;/p&gt;&lt;p&gt;Automated Actions are a new product feature that allow users to easily setup page views, custom events, and e-commerce tracking without going through the tedious process of manually setting up triggers and actions.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;why-we-built-automated-actions\&quot;&gt;Why we built Automated Actions&lt;/h3&gt;\n &lt;a href=\&quot;#why-we-built-automated-actions\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;An action in Zaraz is a way to tell a third party tool that a user interaction or event has occurred when certain conditions, defined by &lt;a href=\&quot;https://developers.cloudflare.com/zaraz/custom-actions/create-trigger/\&quot;&gt;&lt;u&gt;triggers&lt;/u&gt;&lt;/a&gt;, are met. You create actions from within the tools page, associating them with specific tools and triggers.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6a0xBA0uG55z4mhVkN0aYl/10101523491c68e4f2eec022737d15d4/image12.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1124\&quot; height=\&quot;1366\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Setting up a tool in Zaraz has always involved a few steps: &lt;a href=\&quot;https://developers.cloudflare.com/zaraz/custom-actions/create-trigger/\&quot;&gt;&lt;u&gt;configuring a trigger&lt;/u&gt;&lt;/a&gt;, &lt;a href=\&quot;https://developers.cloudflare.com/zaraz/custom-actions/create-action/\&quot;&gt;&lt;u&gt;linking it to a tool action&lt;/u&gt;&lt;/a&gt; and finally calling &lt;a href=\&quot;https://developers.cloudflare.com/zaraz/web-api/track/\&quot;&gt;&lt;code&gt;&lt;u&gt;zaraz.track()&lt;/u&gt;&lt;/code&gt;&lt;/a&gt;. This process allowed advanced configurations with complex rules, and while it was powerful, it occasionally left users confused — why isn’t calling &lt;code&gt;zaraz.track()&lt;/code&gt; enough? We heard your feedback, and we’re excited to introduce &lt;b&gt;Zaraz Automated Actions&lt;/b&gt;, a feature designed to make Zaraz easier to use by reducing the amount of work needed to configure a tool.&lt;/p&gt;&lt;p&gt;With Zaraz Automated Actions, you can now automate sending data to your third-party tools without the need to create a manual configuration. Inspired by the simplicity of &lt;a href=\&quot;https://developers.cloudflare.com/zaraz/web-api/ecommerce/\&quot;&gt;&lt;code&gt;&lt;u&gt;zaraz.ecommerce()&lt;/u&gt;&lt;/code&gt;&lt;/a&gt;, we’ve extended this ease to all Zaraz events, removing the need for manual trigger and action setup. For example, calling &lt;code&gt;zaraz.track(‘myEvent’)&lt;/code&gt; will send your event to the tool without the need to configure any triggers or actions.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;getting-started-with-automated-actions\&quot;&gt;Getting started with Automated Actions&lt;/h3&gt;\n &lt;a href=\&quot;#getting-started-with-automated-actions\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;When adding a new tool in Zaraz, you’ll now see an additional step where you can choose one of three Automated Actions: &lt;b&gt;pageviews&lt;/b&gt;, &lt;b&gt;all other events&lt;/b&gt;, or &lt;b&gt;ecommerce&lt;/b&gt;. These options allow you to specify what kind of events you want to automate for that tool.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1LRtb8XpSukCAgmK7uIA5Y/ab11ae9b58f474d08893b496a0eea764/image7.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1536\&quot; height=\&quot;876\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Pageviews&lt;/b&gt;: Automatically sends data to the tool whenever someone visits a page on your site, without any manual configuration.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;All other events&lt;/b&gt;: Sends all custom events triggered using zaraz.track() to the selected tool, making it easy to automate tracking of user interactions.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Ecommerce&lt;/b&gt;: Automatically sends all e-commerce events triggered via zaraz.ecommerce() to the tool, streamlining your sales and transaction tracking.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;These Automated Actions are also available for all your existing tools, which can be toggled on or off from the tool detail page in your Zaraz dashboard. This flexibility allows you to fine-tune which actions are automated based on your needs.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/xy1tIfYTfOo7p2IUeCS5d/42b26d6cfc4c05d8adc67edfc38ac34c/image10.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1364\&quot; height=\&quot;1184\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;custom-actions-for-tools-without-automated-action-support\&quot;&gt;Custom actions for tools without Automated Action support&lt;/h3&gt;\n &lt;a href=\&quot;#custom-actions-for-tools-without-automated-action-support\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Some tools do not support automated actions because the tool itself does not support page view, custom, or e-commerce events. For such tools you can still create your own custom actions, just like before. Custom actions allow you to configure specific events to send data to your tools based on unique triggers. The process remains the same, and you can follow the detailed steps outlined in our&lt;a href=\&quot;https://developers.cloudflare.com/zaraz/get-started/create-actions/\&quot;&gt; &lt;u&gt;Create Actions guide&lt;/u&gt;&lt;/a&gt;. Remember to set up your trigger first, or choose an existing one, before configuring the action.&lt;/p&gt;&lt;h4&gt;Automatically enrich your payload&lt;/h4&gt;&lt;p&gt;When creating a custom action, it is now easier to send Event Properties using the &lt;b&gt;Include Event Properties field.&lt;/b&gt; When this is toggled on, you can automatically send client-specific data with each action, such as user behavior or interaction details. For example, to send an &lt;code&gt;userID&lt;/code&gt; property when sending a &lt;code&gt;click&lt;/code&gt; event you can do something like this: &lt;code&gt;zaraz.track(‘click’, { userID: “foo” })&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;Additionally, you can enable the &lt;b&gt;Include System Properties&lt;/b&gt; option to send system-level information, such as browser, operating system, and more. In your action settings click on “Add Field”, pick the “Include System Properties”, click on confirm and then toggle the field on. &lt;/p&gt;&lt;p&gt;For a full list of system properties, visit our&lt;a href=\&quot;https://developers.cloudflare.com/zaraz/reference/context/\&quot;&gt; &lt;u&gt;System Properties reference guide&lt;/u&gt;&lt;/a&gt;. These options give you greater flexibility and control over the data you send with custom actions.&lt;/p&gt;&lt;p&gt;These two fields replace the now deprecated “Enrich Payload” dropdown field.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/73nCsNmeG58p6n0ylxMV8E/5cb87b516aaceb38319f9175dc7ccbf3/image5.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1646\&quot; height=\&quot;1222\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Zaraz Automated Actions marks a significant step forward in simplifying how you manage events across your tools. By automating common actions like page views, e-commerce events, and custom tracking, you can save time and reduce the complexity of manual configurations. Whether you’re leveraging Automated Actions for speed or creating custom actions for more tailored use cases, Zaraz offers the flexibility to fit your workflow. &lt;/p&gt;&lt;p&gt;We’re excited to see how you use this feature. Please don’t hesitate to reach out to us on Cloudflare &lt;a href=\&quot;https://discord.gg/2TRr6nSxdd\&quot;&gt;&lt;u&gt;Zaraz’s Discord Channel&lt;/u&gt;&lt;/a&gt; — we’re always there fixing issues, listening to feedback, and announcing exciting product updates.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;never-miss-an-update\&quot;&gt;Never miss an update&lt;/h2&gt;\n &lt;a href=\&quot;#never-miss-an-update\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We’ll continue to share roundup blog posts as we continue to build and innovate. Be sure to follow along on the &lt;a href=\&quot;https://blog.cloudflare.com/\&quot;&gt;&lt;u&gt;Cloudflare Blog&lt;/u&gt;&lt;/a&gt; for the latest news and updates.&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2024-11-14T14:00+00:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-11-14T14:00:02.977Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/3VWKTtUa2kR7bRA7qdWQco/ff616f7de68e09dc971d463e2de47a1e/image11.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;4pES8Ke33O2ROIX5tVMqyc&quot;],&quot;name&quot;:[0,&quot;Identity&quot;],&quot;slug&quot;:[0,&quot;identity&quot;]}],[0,{&quot;id&quot;:[0,&quot;6Mp7ouACN2rT3YjL1xaXJx&quot;],&quot;name&quot;:[0,&quot;Security&quot;],&quot;slug&quot;:[0,&quot;security&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;6QktrXeEFcl4e2dZUTZVGl&quot;],&quot;name&quot;:[0,&quot;Product News&quot;],&quot;slug&quot;:[0,&quot;product-news&quot;]}],[0,{&quot;id&quot;:[0,&quot;5KsuE8WNLu5C4uyvr4XWCV&quot;],&quot;name&quot;:[0,&quot;Zaraz&quot;],&quot;slug&quot;:[0,&quot;zaraz&quot;]}],[0,{&quot;id&quot;:[0,&quot;2OotqBxtRdi5MuC90AlyxE&quot;],&quot;name&quot;:[0,&quot;Analytics&quot;],&quot;slug&quot;:[0,&quot;analytics&quot;]}],[0,{&quot;id&quot;:[0,&quot;49e0LtPKRtCoIvqkN8MIde&quot;],&quot;name&quot;:[0,&quot;Managed Components&quot;],&quot;slug&quot;:[0,&quot;managed-components&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Joseph So&quot;],&quot;slug&quot;:[0,&quot;joseph&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/3F1bSGwaBGKWlM5Q31Xw6t/9363eb1f1d344fa5de3c18a95cc70ce6/joseph.jpg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}],[0,{&quot;name&quot;:[0,&quot;Omar Mohammad&quot;],&quot;slug&quot;:[0,&quot;omar-mohammad&quot;],&quot;bio&quot;:[0],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2u1Z353anm1tZlXvVFgHLf/42420bda338fb6cfcd73a70491de8fa4/omar_hydw.jpg&quot;],&quot;location&quot;:[0],&quot;website&quot;:[0],&quot;twitter&quot;:[0],&quot;facebook&quot;:[0]}],[0,{&quot;name&quot;:[0,&quot;Yo&#39;av Moshe&quot;],&quot;slug&quot;:[0,&quot;yoav&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/26RcxowCLD305zrVRKtZES/91114909ce83a7d11280b2394a5f63b2/yoav.jpeg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,&quot;@yoavmoshe&quot;],&quot;facebook&quot;:[0,null]}]]],&quot;meta_description&quot;:[0,&quot;Cloudflare customers can now create Account Owned Tokens, allowing more flexibility around access control for their Cloudflare services. Additionally, Zaraz Automation Actions streamlines event tracking and third-party tool integration. &quot;],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;blog-english-only&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;No Page for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/account-owned-tokens-automated-actions-zaraz&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0,&quot;What’s new in Cloudflare: Account Owned Tokens and Zaraz Automated Actions&quot;],&quot;description&quot;:[0,&quot;Cloudflare customers can now create Account Owned Tokens, allowing more flexibility around access control for their Cloudflare services. Additionally, Zaraz Automation Actions streamlines event tracking and third-party tool integration.&quot;],&quot;imgPreview&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1twrUnGJjrT3iDakOgSc4T/ed981a6ce2dfe1295a289bdda1307a15/What_s_new_in_Cloudflare-_Account_Owned_Tokens_and_Zaraz_Automated_Actions-OG.png&quot;]}]}],[0,{&quot;id&quot;:[0,&quot;6uKjGQLUKCb33wGIcOQE1Y&quot;],&quot;title&quot;:[0,&quot;Workers Builds: integrated CI/CD built on the Workers platform&quot;],&quot;slug&quot;:[0,&quot;workers-builds-integrated-ci-cd-built-on-the-workers-platform&quot;],&quot;excerpt&quot;:[0,&quot;Workers Builds, an integrated CI/CD pipeline for the Workers platform, recently launched in open beta. We walk through how we built this product on Cloudflare’s Developer Platform.&quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;&lt;p&gt;During 2024’s Birthday Week, we &lt;a href=\&quot;https://blog.cloudflare.com/builder-day-2024-announcements/#continuous-integration-and-delivery\&quot;&gt;&lt;u&gt;launched Workers Builds&lt;/u&gt;&lt;/a&gt; in open beta — an integrated Continuous Integration and Delivery (CI/CD) workflow you can use to build and deploy everything from full-stack applications built with the most popular frameworks to simple static websites onto the Workers platform. With Workers Builds, you can connect a GitHub or GitLab repository to a Worker, and Cloudflare will automatically build and deploy your changes each time you push a commit.&lt;/p&gt;&lt;p&gt;Workers Builds is intended to bridge the gap between the developer experiences for Workers and Pages, the latter of which &lt;a href=\&quot;https://blog.cloudflare.com/cloudflare-pages/\&quot;&gt;&lt;u&gt;launched with an integrated CI/CD system in 2020&lt;/u&gt;&lt;/a&gt;. As we continue to &lt;a href=\&quot;https://blog.cloudflare.com/pages-and-workers-are-converging-into-one-experience/\&quot;&gt;&lt;u&gt;merge the experiences of Pages and Workers&lt;/u&gt;&lt;/a&gt;, we wanted to bring one of the best features of Pages to Workers: the ability to tie deployments to existing development workflows in GitHub and GitLab with minimal developer overhead. &lt;/p&gt;&lt;p&gt;In this post, we’re going to share how we built the Workers Builds system on Cloudflare’s Developer Platform, using &lt;a href=\&quot;https://developers.cloudflare.com/workers/\&quot;&gt;&lt;u&gt;Workers&lt;/u&gt;&lt;/a&gt;, &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects\&quot;&gt;&lt;u&gt;Durable Objects&lt;/u&gt;&lt;/a&gt;, &lt;a href=\&quot;https://developers.cloudflare.com/hyperdrive\&quot;&gt;&lt;u&gt;Hyperdrive&lt;/u&gt;&lt;/a&gt;, &lt;a href=\&quot;https://developers.cloudflare.com/logs/log-explorer/\&quot;&gt;&lt;u&gt;Workers Logs&lt;/u&gt;&lt;/a&gt;, and &lt;a href=\&quot;https://developers.cloudflare.com/workers/configuration/smart-placement\&quot;&gt;&lt;u&gt;Smart Placement&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;the-design-problem\&quot;&gt;The design problem&lt;/h2&gt;\n &lt;a href=\&quot;#the-design-problem\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;The core problem for Workers Builds is how to pick up a commit from GitHub or GitLab and start a containerized job that can clone the repo, build the project, and deploy a Worker. &lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6n6UCIKAM4uAtWzsRBiS16/1c0b655b415afe375b6b153ada570357/BLOG-2594_2.png\&quot; alt=\&quot;BLOG-2594 2\&quot; class=\&quot;kg-image\&quot; width=\&quot;1956\&quot; height=\&quot;360\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Pages solves a similar problem, and we were initially inclined to expand our existing architecture and tech stack, which includes a centralized configuration plane built on Go in Kubernetes. We also considered the ways in which the Workers ecosystem has evolved in the four years since Pages launched — we have since launched so many more tools built for use cases just like this! &lt;/p&gt;&lt;p&gt;The distributed nature of Workers offers some advantages over a centralized stack — we can spend less time configuring Kubernetes because Workers automatically handles failover and scaling. Ultimately, we decided to keep using what required no additional work to re-use from Pages (namely, the system for connecting GitHub/GitLab accounts to Cloudflare, and ingesting push events from them), and for the rest build out a new architecture on the Workers platform, with reliability and minimal latency in mind.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;the-workers-builds-system\&quot;&gt;The Workers Builds system&lt;/h2&gt;\n &lt;a href=\&quot;#the-workers-builds-system\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We didn’t need to make any changes to the system that handles connections from GitHub/GitLab to Cloudflare and ingesting push events from them. That left us with two systems to build: the configuration plane for users to connect a Worker to a repo, and a build management system to run and monitor builds.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;client-worker\&quot;&gt;Client Worker &lt;/h3&gt;\n &lt;a href=\&quot;#client-worker\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We can begin with our configuration plane, which consists of a simple Client Worker that implements a RESTful API (using &lt;a href=\&quot;https://hono.dev/docs/getting-started/cloudflare-workers\&quot;&gt;&lt;u&gt;Hono&lt;/u&gt;&lt;/a&gt;) and connects to a PostgreSQL database. It’s in this database that we store build configurations for our users, and through this Worker that users can view and manage their builds. &lt;/p&gt;&lt;p&gt;We use a &lt;a href=\&quot;https://developers.cloudflare.com/hyperdrive/\&quot;&gt;&lt;u&gt;Hyperdrive binding&lt;/u&gt;&lt;/a&gt; to connect to our database &lt;a href=\&quot;https://developers.cloudflare.com/hyperdrive/configuration/connect-to-private-database\&quot;&gt;&lt;u&gt;securely over Cloudflare Access&lt;/u&gt;&lt;/a&gt; (which also manages connection pooling and query caching).&lt;/p&gt;&lt;p&gt;We considered a more distributed data model (like &lt;a href=\&quot;https://developers.cloudflare.com/d1/\&quot;&gt;&lt;u&gt;D1&lt;/u&gt;&lt;/a&gt;, sharded by account), but ultimately decided that keeping our database in a datacenter more easily fit our use-case. The Workers Builds data model is relational — Workers belong to Cloudflare Accounts, and Builds belong to Workers — and build metadata must be consistent in order to properly manage build queues. We chose to keep our failover-ready database in a centralized datacenter and take advantage of two other Workers products, Smart Placement and Hyperdrive, in order to keep the benefits of a distributed control plane. &lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/33eYqRr5LXKbAvfP8RR7X7/b82858c39b9755c6e056577c9449b00f/BLOG-2594_3.png\&quot; alt=\&quot;BLOG-2594 3\&quot; class=\&quot;kg-image\&quot; width=\&quot;1706\&quot; height=\&quot;560\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Everything that you see in the Cloudflare Dashboard related to Workers Builds is served by this Worker. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;build-management-worker\&quot;&gt;Build Management Worker&lt;/h3&gt;\n &lt;a href=\&quot;#build-management-worker\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;The more challenging problem we faced was how to run and manage user builds effectively. We wanted to support the same experience that we had achieved with Pages, which led to these key requirements:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;Builds should be initiated with minimal latency.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The status of a build should be tracked and displayed through its entire lifecycle, starting when a user pushes a commit.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Customer build logs should be stored in a secure, private, and long-lived way.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;To solve these problems, we leaned heavily into the technology of &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/\&quot;&gt;&lt;u&gt;Durable Objects&lt;/u&gt;&lt;/a&gt; (DO). &lt;/p&gt;&lt;p&gt;We created a Build Management Worker with two DO classes: A Scheduler class to manage the scheduling of builds, and a class called BuildBuddy to manage individual builds. We chose to design our system this way for an efficient and scalable system. Since each build is assigned its own build manager DO, its operation won’t ever block other builds or the scheduler, meaning we can start up builds with minimal latency. Below, we dive into each of these Durable Objects classes.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6RUDJI7IYIlzcX4qjF9EYY/7e959b7a4489a41d275d74d634389f31/BLOG-2594_4.png\&quot; alt=\&quot;BLOG-2594 4\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1109\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;h4&gt;Scheduler DO&lt;/h4&gt;&lt;p&gt;The Scheduler DO class is relatively simple. Using &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/api/alarms/\&quot;&gt;&lt;u&gt;Durable Objects Alarms&lt;/u&gt;&lt;/a&gt;, it is triggered every second to pull up a list of user build configurations that are ready to be started. For each of those builds, the Scheduler creates an instance of our other DO Class, the Build Buddy. &lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;import { DurableObject } from &amp;#039;cloudflare:workers&amp;#039;\n\n\nexport class BuildScheduler extends DurableObject {\n state: DurableObjectState\n env: Bindings\n\n\n constructor(ctx: DurableObjectState, env: Bindings) {\n super(ctx, env)\n }\n \n // The DO alarm handler will be called every second to fetch builds\n async alarm(): Promise&amp;lt;void&amp;gt; {\n// set alarm to run again in 1 second\n await this.updateAlarm()\n\n\n const builds = await this.getBuildsToSchedule()\n await this.scheduleBuilds(builds)\n }\n\n\n async scheduleBuilds(builds: Builds[]): Promise&amp;lt;void&amp;gt; {\n // Don&amp;#039;t schedule builds, if no builds to schedule\n if (builds.length === 0) return\n\n\n const queue = new PQueue({ concurrency: 6 })\n // Begin running builds\n builds.forEach((build) =&amp;gt;\n queue.add(async () =&amp;gt; {\n \t // The BuildBuddy is another DO described more in the next section! \n const bb = getBuildBuddy(this.env, build.build_id)\n await bb.startBuild(build)\n })\n )\n\n\n await queue.onIdle()\n }\n\n\n async getBuildsToSchedule(): Promise&amp;lt;Builds[]&amp;gt; {\n // returns list of builds to schedule\n }\n\n\n async updateAlarm(): Promise&amp;lt;void&amp;gt; {\n// We want to ensure we aren&amp;#039;t running multiple alarms at once, so we only set the next alarm if there isn’t already one set. \n const existingAlarm = await this.ctx.storage.getAlarm()\n if (existingAlarm === null) {\n this.ctx.storage.setAlarm(Date.now() + 1000)\n }\n }\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;h4&gt;Build Buddy DO&lt;/h4&gt;&lt;p&gt;The Build Buddy DO class is what we use to manage each individual build from the time it begins initializing to when it is stopped. Every build has a buddy for life!&lt;/p&gt;&lt;p&gt;Upon creation of a Build Buddy DO instance, the Scheduler immediately calls &lt;code&gt;startBuild()&lt;/code&gt; on the instance. The &lt;code&gt;startBuild()&lt;/code&gt; method is responsible for fetching all metadata and secrets needed to run a build, and then kicking off a build on Cloudflare’s container platform (&lt;a href=\&quot;https://blog.cloudflare.com/container-platform-preview/\&quot;&gt;&lt;u&gt;not public yet, but coming soon&lt;/u&gt;&lt;/a&gt;!). &lt;/p&gt;&lt;p&gt;As the containerized build runs, it reports back to the Build Buddy, sending status updates and logs for the Build Buddy to deal with. &lt;/p&gt;&lt;h5&gt;Build status&lt;/h5&gt;&lt;p&gt;As a build progresses, it reports its own status back to Build Buddy, sending updates when it has finished initializing, has completed successfully, or been terminated by the user. The Build Buddy is responsible for handling this incoming information from the containerized build, writing status updates to the database (via a Hyperdrive binding) so that users can see the status of their build in the Cloudflare dashboard.&lt;/p&gt;&lt;h5&gt;Build logs&lt;/h5&gt;&lt;p&gt;A running build generates output logs that are important to store and surface to the user. The containerized build flushes these logs to the Build Buddy every second, which, in turn, stores those logs in &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/api/storage-api/\&quot;&gt;&lt;u&gt;DO storage&lt;/u&gt;&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;The decision to use Durable Object storage here makes it easy to multicast logs to multiple clients efficiently, and allows us to use the same API for both streaming logs and viewing historical logs. &lt;/p&gt;&lt;p&gt;// build-management-app.ts&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;// We created a Hono app to for use by our Client Worker API\nconst app = new Hono&amp;lt;HonoContext&amp;gt;()\n .post(\n &amp;#039;/api/builds/:build_uuid/status&amp;#039;,\n async (c) =&amp;gt; {\n const buildStatus = await c.req.json()\n\n\n // fetch build metadata\n const build = ...\n\n\n const bb = getBuildBuddy(c.env, build.build_id)\n return await bb.handleStatusUpdate(build, statusUpdate)\n }\n )\n .post(\n &amp;#039;/api/builds/:build_uuid/logs&amp;#039;,\n async (c) =&amp;gt; {\n const logs = await c.req.json()\n // fetch build metadata\n const build = ...\n\n\n const bb = getBuildBuddy(c.env, build.build_id)\n return await bb.addLogLines(logs.lines)\n }\n )\n\n\nexport default {\n fetch: app.fetch\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;// build-buddy.ts&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;import { DurableObject } from &amp;#039;cloudflare:workers&amp;#039;\n\n\nexport class BuildBuddy extends DurableObject {\n compute: WorkersBuildsCompute\n\n\n constructor(ctx: DurableObjectState, env: Bindings) {\n super(ctx, env)\n this.compute = new ComputeClient({\n // ...\n })\n }\n\n\n // The Scheduler DO calls startBuild upon creating a BuildBuddy instance\n startBuild(build: Build): void {\n this.startBuildAsync(build) \n }\n\n\n async startBuildAsync(build: Build): Promise&amp;lt;void&amp;gt; {\n // fetch all necessary metadata build, including\n\t// environment variables, secrets, build tokens, repo credentials, \n// build image URI, etc\n\t// ...\n\n\n\t// start a containerized build\n const computeBuild = await this.compute.createBuild({\n // ...\n })\n }\n\n\n // The Build Management worker calls handleStatusUpdate when it receives an update\n // from the containerized build\n async handleStatusUpdate(\n build: Build,\n buildStatusUpdatePayload: Payload\n ): Promise&amp;lt;void&amp;gt; {\n// Write status updates to the database\n }\n\n\n // The Build Management worker calls addLogLines when it receives flushed logs\n // from the containerized build\n async addLogLines(logs: LogLines): Promise&amp;lt;void&amp;gt; {\n // Generate nextLogsKey to store logs under \n this.ctx.storage.put(nextLogsKey, logs)\n }\n\n\n // The Client Worker can call methods on a Build Buddy via RPC, using a service binding to the Build Management Worker.\n // The getLogs method retrieves logs for the user, and the cancelBuild method forwards a request from the user to terminate a build. \n async getLogs(cursor: string){\n const decodedCursor = cursor !== undefined ? decodeLogsCursor(cursor) : undefined\n return await this.getLogs(decodedCursor)\n }\n\n\n async cancelBuild(compute_id: string, build_id: string): void{\n await this.terminateBuild(build_id, compute_id)\n }\n\n\n async terminateBuild(build_id: number, compute_id: string): Promise&amp;lt;void&amp;gt; {\n await this.compute.stopBuild(compute_id)\n }\n}\n\n\n export function getBuildBuddy(\n env: Pick&amp;lt;Bindings, &amp;#039;BUILD_BUDDY&amp;#039;&amp;gt;,\n build_id: number\n): DurableObjectStub&amp;lt;BuildBuddy&amp;gt; {\n const id = env.BUILD_BUDDY.idFromName(build_id.toString())\n return env.BUILD_BUDDY.get(id)\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;h5&gt;Alarms&lt;/h5&gt;&lt;p&gt;We utilize &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/api/alarms/\&quot;&gt;&lt;u&gt;alarms&lt;/u&gt;&lt;/a&gt; in the Build Buddy to check that a build has a healthy startup and to terminate any builds that run longer than 20 minutes. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;how-else-have-we-leveraged-the-developer-platform\&quot;&gt;How else have we leveraged the Developer Platform?&lt;/h2&gt;\n &lt;a href=\&quot;#how-else-have-we-leveraged-the-developer-platform\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Now that we&amp;#39;ve gone over the core behavior of the Workers Builds control plane, we&amp;#39;d like to detail a few other features of the Workers platform that we use to improve performance, monitor system health, and troubleshoot customer issues.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;smart-placement-and-location-hints\&quot;&gt;Smart Placement and location hints&lt;/h3&gt;\n &lt;a href=\&quot;#smart-placement-and-location-hints\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;While our control plane is distributed in the sense that it can be run across multiple datacenters, to reduce latency costs, we want most requests to be served from locations close to our primary database in the western US.&lt;/p&gt;&lt;p&gt;While a build is running, Build Buddy, a Durable Object, is continuously writing status updates to our database. For the Client and the Build Management API Workers, we enabled &lt;a href=\&quot;https://developers.cloudflare.com/workers/configuration/smart-placement/\&quot;&gt;&lt;u&gt;Smart Placement&lt;/u&gt;&lt;/a&gt; with &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/reference/data-location/#provide-a-location-hint\&quot;&gt;&lt;u&gt;location hints&lt;/u&gt;&lt;/a&gt; to ensure requests run close to the database.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/4hhFLpYizLZ6cyu4h80YL8/40af67320a6bf44f375d6055b2997a99/BLOG-2594_5.png\&quot; alt=\&quot;BLOG-2594 5\&quot; class=\&quot;kg-image\&quot; width=\&quot;987\&quot; height=\&quot;542\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;This graph shows the reduction in round trip time (RTT) observed for our Worker with Smart Placement turned on. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;workers-logs\&quot;&gt;Workers Logs&lt;/h3&gt;\n &lt;a href=\&quot;#workers-logs\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We needed a logging tool that allows us to aggregate and search across persistent operational logs from our Workers to assist with identifying and troubleshooting issues. We worked with the Workers Observability team to become early adopters of &lt;a href=\&quot;https://developers.cloudflare.com/workers/observability/logs/workers-logs\&quot;&gt;&lt;u&gt;Workers Logs&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Workers Logs worked out of the box, giving us fast and easy to use logs directly within the Cloudflare dashboard. To improve our ability to search logs, we created a &lt;a href=\&quot;https://www.npmjs.com/package/workers-tagged-logger\&quot;&gt;&lt;u&gt;tagging library&lt;/u&gt;&lt;/a&gt; that allows us to easily add metadata like the git tag of the deployed worker that the log comes from, allowing us to filter logs by release.&lt;/p&gt;&lt;p&gt;See a shortened example below for how we handle and log errors on the Client Worker. &lt;/p&gt;&lt;p&gt;// client-worker-app.ts&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;// The Client Worker is a RESTful API built with Hono\nconst app = new Hono&amp;lt;HonoContext&amp;gt;()\n // This is from the workers-tagged-logger library - first we register the logger\n .use(useWorkersLogger(&amp;#039;client-worker-app&amp;#039;))\n // If any error happens during execution, this middleware will ensure we log the error\n .onError(useOnError)\n // routes\n .get(\n &amp;#039;/apiv4/builds&amp;#039;,\n async (c) =&amp;gt; {\n const { ids } = c.req.query()\n return await getBuildsByIds(c, ids)\n }\n )\n\n\nfunction useOnError(e: Error, c: Context&amp;lt;HonoContext&amp;gt;): Response {\n // Set the project identifier n the error\n logger.setTags({ release: c.env.GIT_TAG })\n \n // Write a log at level &amp;#039;error&amp;#039;. Can also log &amp;#039;info&amp;#039;, &amp;#039;log&amp;#039;, &amp;#039;warn&amp;#039;, and &amp;#039;debug&amp;#039;\n logger.error(e)\n return c.json(internal_error.toJSON(), internal_error.statusCode)\n}\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;This setup can lead to the following sample log message from our Workers Log dashboard. You can see the release tag is set on the log.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6gfd725NCFNrhlDt3gK515/90138c159285e91535a986266918be13/BLOG-2594_6.png\&quot; alt=\&quot;BLOG-2594 6\&quot; class=\&quot;kg-image\&quot; width=\&quot;600\&quot; height=\&quot;490\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;We can get a better sense of the impact of the error by adding filters to the Workers Logs view, as shown below. We are able to filter on any of the fields since we’re &lt;a href=\&quot;https://developers.cloudflare.com/workers/observability/logs/workers-logs#logging-structured-json-objects\&quot;&gt;&lt;u&gt;logging with structured JSON&lt;/u&gt;&lt;/a&gt;.  &lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6XqXINluVzzyHd4O17JsnZ/0ac714792a4d21623b4a875291ae0ad0/BLOG-2594_7.png\&quot; alt=\&quot;BLOG-2594 7\&quot; class=\&quot;kg-image\&quot; width=\&quot;472\&quot; height=\&quot;238\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;r2\&quot;&gt;R2&lt;/h3&gt;\n &lt;a href=\&quot;#r2\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;Coming soon to Workers Builds is build caching, used to store artifacts of a build for subsequent builds to reuse, such as package dependencies and build outputs. Build caching can speed up customer builds by avoiding the need to redownload dependencies from NPM or to rebuild projects from scratch. The cache itself will be backed by &lt;a href=\&quot;https://developers.cloudflare.com/r2/\&quot;&gt;&lt;u&gt;R2&lt;/u&gt;&lt;/a&gt; storage. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;testing\&quot;&gt;Testing&lt;/h3&gt;\n &lt;a href=\&quot;#testing\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We were able to build up a great testing story using &lt;a href=\&quot;https://blog.cloudflare.com/workers-vitest-integration/\&quot;&gt;&lt;u&gt;Vitest and workerd&lt;/u&gt;&lt;/a&gt; — unit tests, cross-worker integration tests, the works. In the example below, we make use of the &lt;code&gt;runInDurableObject&lt;/code&gt; stub from &lt;code&gt;cloudflare:test&lt;/code&gt; to test instance methods on the Scheduler DO directly.&lt;/p&gt;&lt;p&gt;// scheduler.spec.ts&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;import { env, runInDurableObject } from &amp;#039;cloudflare:test&amp;#039;\nimport { expect, test } from &amp;#039;vitest&amp;#039;\nimport { BuildScheduler } from &amp;#039;./scheduler&amp;#039;\n\n\ntest(&amp;#039;getBuildsToSchedule() runs a queued build&amp;#039;, async () =&amp;gt; {\n // Our test harness creates a single build for our scheduler to pick up\n const { build } = await harness.createBuild()\n\n\n // We create a scheduler DO instance\n const id = env.BUILD_SCHEDULER.idFromName(crypto.randomUUID())\n const stub = env.BUILD_SCHEDULER.get(id)\n await runInDurableObject(stub, async (instance: BuildScheduler) =&amp;gt; {\n expect(instance).toBeInstanceOf(BuildScheduler)\n\n\n// We check that the scheduler picks up 1 build\n const builds = await instance.getBuildsToSchedule()\n expect(builds.length).toBe(1)\n\t\n// We start the build, which should mark it as running\n await instance.scheduleBuilds(builds)\n })\n\n\n // Check that there are no more builds to schedule\n const queuedBuilds = ...\n expect(queuedBuilds.length).toBe(0)\n})\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;We use &lt;code&gt;SELF.fetch()&lt;/code&gt; from &lt;code&gt;cloudflare:test&lt;/code&gt; to run integration tests on our Client Worker, as shown below. This integration test covers our Hono endpoint and database queries made by the Client Worker in retrieving the metadata of a build.&lt;/p&gt;&lt;p&gt;// builds_api.test.ts&lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;import { env, SELF } from &amp;#039;cloudflare:test&amp;#039;\n \nit(&amp;#039;correctly selects a single build&amp;#039;, async () =&amp;gt; {\n // Our test harness creates a randomized build to test with\n const { build } = await harness.createBuild()\n\n\n // We send a request to the Client Worker itself to fetch the build metadata\n const getBuild = await SELF.fetch(\n `https://example.com/builds/${build1.build_uuid}`,\n {\n method: &amp;#039;GET&amp;#039;,\n headers: new Headers({\n Authorization: `Bearer JWT`,\n &amp;#039;content-type&amp;#039;: &amp;#039;application/json&amp;#039;,\n }),\n }\n )\n\n\n // We expect to receive a 200 response from our request and for the \n // build metadata returned to match that of the random build that we created\n expect(getBuild.status).toBe(200)\n const getBuildV4Resp = await getBuild.json()\n const buildResp = getBuildV4Resp.result\n expect(buildResp).toBeTruthy()\n expect(buildResp).toEqual(build)\n})\n&lt;/pre&gt;&lt;/code&gt;\n &lt;p&gt;These tests run on the same runtime that Workers run on in production, meaning we have greater confidence that any code changes will behave as expected when they go live. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;analytics\&quot;&gt;Analytics&lt;/h3&gt;\n &lt;a href=\&quot;#analytics\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;We use the technology underlying the &lt;a href=\&quot;https://developers.cloudflare.com/analytics/analytics-engine/\&quot;&gt;&lt;u&gt;Workers Analytics Engine&lt;/u&gt;&lt;/a&gt; to collect all of the metrics for our system. We set up &lt;a href=\&quot;https://developers.cloudflare.com/analytics/analytics-engine/grafana/\&quot;&gt;&lt;u&gt;Grafana&lt;/u&gt;&lt;/a&gt; dashboards to display these metrics. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;javascript-native-rpc\&quot;&gt;JavaScript-native RPC&lt;/h3&gt;\n &lt;a href=\&quot;#javascript-native-rpc\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;&lt;a href=\&quot;https://blog.cloudflare.com/javascript-native-rpc/\&quot;&gt;&lt;u&gt;JavaScript-native RPC&lt;/u&gt;&lt;/a&gt; was added to Workers in April of 2024, and it’s pretty magical. In the scheduler code example above, we call &lt;code&gt;startBuild()&lt;/code&gt; on the BuildBuddy DO from the Scheduler DO. Without RPC, we would need to stand up routes on the BuildBuddy &lt;code&gt;fetch()&lt;/code&gt; handler for the Scheduler to trigger with a fetch request. With RPC, there is almost no boilerplate — all we need to do is call a method on a class. &lt;/p&gt;\n &lt;pre class=\&quot;language-javascript\&quot;&gt;&lt;code class=\&quot;language-javascript\&quot;&gt;const bb = getBuildBuddy(this.env, build.build_id)\n\n\n// Starting a build without RPC 😢\nawait bb.fetch(&amp;#039;http://do/api/start_build&amp;#039;, {\n method: &amp;#039;POST&amp;#039;,\n body: JSON.stringify(build),\n})\n\n\n// Starting a build with RPC 😸\nawait bb.startBuild(build)\n&lt;/pre&gt;&lt;/code&gt;\n \n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h2 id=\&quot;conclusion\&quot;&gt;Conclusion&lt;/h2&gt;\n &lt;a href=\&quot;#conclusion\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;By using Workers and Durable Objects, we were able to build a complex and distributed system that is easy to understand and is easily scalable. &lt;/p&gt;&lt;p&gt;It’s been a blast for our team to build on top of the very platform that we work on, something that would have been much harder to achieve on Workers just a few years ago. We believe in being Customer Zero for our own products — to identify pain points firsthand and to continuously improve the developer experience by applying them to our own use cases. It was fulfilling to have our needs as developers met by other teams and then see those tools quickly become available to the rest of the world — we were collaborators and internal testers for Workers Logs and private network support for Hyperdrive (both released on Birthday Week), and the soon to be released container platform.&lt;/p&gt;&lt;p&gt;Opportunities to build complex applications on the Developer Platform have increased in recent years as the platform has matured and expanded product offerings for more use cases. We hope that Workers Builds will be yet another tool in the Workers toolbox that enables developers to spend less time thinking about configuration and more time writing code. &lt;/p&gt;&lt;p&gt;Want to try it out? Check out the &lt;a href=\&quot;https://developers.cloudflare.com/workers/ci-cd/builds/\&quot;&gt;&lt;u&gt;docs&lt;/u&gt;&lt;/a&gt; to learn more about how to deploy your first project with Workers Builds.&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2024-10-31T13:00+00:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-10-31T13:00:02.371Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/le4lYyHpoBKwuVJbiH4eW/793952ca6fa5a152d029526991db31f4/BLOG-2594_1.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;3JAY3z7p7An94s6ScuSQPf&quot;],&quot;name&quot;:[0,&quot;Developer Platform&quot;],&quot;slug&quot;:[0,&quot;developer-platform&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;1Efeqd1oZ7vy3xls0fdjHF&quot;],&quot;name&quot;:[0,&quot;Agile Developer Services&quot;],&quot;slug&quot;:[0,&quot;agile-developer-services&quot;]}],[0,{&quot;id&quot;:[0,&quot;6hbkItfupogJP3aRDAq6v8&quot;],&quot;name&quot;:[0,&quot;Cloudflare Workers&quot;],&quot;slug&quot;:[0,&quot;workers&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Serena Shah-Simpson&quot;],&quot;slug&quot;:[0,&quot;serena&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2cLxQm0wbdpyGirexVcdpr/2f6ae5b415dc4515cfffc2a4090bb9d3/serena.PNG&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}],[0,{&quot;name&quot;:[0,&quot;Jacob Hands&quot;],&quot;slug&quot;:[0,&quot;jacob-hands&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1u48WVfES8uNb77aB2z9bk/9bfef685adbdef1298e57959119d5931/jacob-hands.jpeg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,&quot;@jachands&quot;],&quot;facebook&quot;:[0,null]}],[0,{&quot;name&quot;:[0,&quot;Natalie Rogers&quot;],&quot;slug&quot;:[0,&quot;natalie&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7yLLjP9Y2l0cJdBrPMfrre/73f6d2b7a9c41cdf2f3dc9a5016d3a8d/natalie.png&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}]]],&quot;meta_description&quot;:[0,&quot;Workers Builds, an integrated CI/CD pipeline for the Workers platform, recently launched in open beta. We walk through how we built this product on Cloudflare’s Developer Platform.&quot;],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;blog-english-only&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;No Page for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/workers-builds-integrated-ci-cd-built-on-the-workers-platform&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0,&quot;Workers Builds: integrated CI/CD built on the Workers platform&quot;],&quot;description&quot;:[0,&quot;Workers Builds, an integrated CI/CD pipeline for the Workers platform, recently launched in open beta. We walk through how we built this product on Cloudflare’s Developer Platform.&quot;],&quot;imgPreview&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2chCtOBT6VDwfihl8rpHmt/1539f97126503921530ff0fd61d343aa/Workers_Builds-_integrated_CI_CD_built_on_the_Workers_platform-OG.png&quot;]}]}],[0,{&quot;id&quot;:[0,&quot;41vXJNWrB0YHsKqSz6SGDS&quot;],&quot;title&quot;:[0,&quot;Durable Objects aren&#39;t just durable, they&#39;re fast: a 10x speedup for Cloudflare Queues&quot;],&quot;slug&quot;:[0,&quot;how-we-built-cloudflare-queues&quot;],&quot;excerpt&quot;:[0,&quot;Learn how we built Cloudflare Queues using our own Developer Platform and how it evolved to a geographically-distributed, horizontally-scalable architecture built on Durable Objects. Our new architecture supports over 10x more throughput and over 3x lower latency compared to the previous version.&quot;],&quot;featured&quot;:[0,false],&quot;html&quot;:[0,&quot;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=\&quot;https://www.cloudflare.com/developer-platform/products/cloudflare-queues/\&quot;&gt;&lt;u&gt;Cloudflare Queues&lt;/u&gt;&lt;/a&gt; let a developer decouple their Workers into event-driven services. Producer Workers write events to a Queue, and consumer Workers are invoked to take actions on the events. For example, you can use a Queue to decouple an e-commerce website from a service which sends purchase confirmation emails to users. During 2024’s Birthday Week, we &lt;a href=\&quot;https://blog.cloudflare.com/builder-day-2024-announcements?_gl=1*18s1fwl*_gcl_au*MTgyNDA5NjE5OC4xNzI0MjgzMTQ0*_ga*OTgwZmE0YWUtZWJjMS00NmYxLTllM2QtM2RmY2I4ZjAwNzZk*_ga_SQCRB0TXZW*MTcyODkyOTU2OS4xNi4xLjE3Mjg5Mjk1NzcuNTIuMC4w/#queues-is-ga\&quot;&gt;&lt;u&gt;announced that Cloudflare Queues is now Generally Available&lt;/u&gt;&lt;/a&gt;, with significant performance improvements that enable larger workloads. To accomplish this, we switched to a new architecture for Queues that enabled the following improvements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Median latency for sending messages has dropped from ~200ms to ~60ms&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Maximum throughput for each Queue has increased over 10x, from 400 to 5000 messages per second&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Maximum Consumer concurrency for each Queue has increased from 20 to 250 concurrent invocations&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5PvIsHfLwwIkp2LXVUDhmG/99f286f2f89d10b2a7e359d8d66f6dba/image5.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;959\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;&lt;sup&gt;&lt;i&gt;Median latency drops from ~200ms to ~60ms as Queues are migrated to the new architecture&lt;/i&gt;&lt;/sup&gt;&lt;/p&gt;&lt;p&gt;In this blog post, we&amp;#39;ll share details about how we built Queues using Durable Objects and the Cloudflare Developer Platform, and how we migrated from an initial Beta architecture to a geographically-distributed, horizontally-scalable architecture for General Availability.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;v1-beta-architecture\&quot;&gt;v1 Beta architecture&lt;/h3&gt;\n &lt;a href=\&quot;#v1-beta-architecture\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;When initially designing Cloudflare Queues, we decided to build something simple that we could get into users&amp;#39; hands quickly. First, we considered leveraging an off-the-shelf messaging system such as Kafka or Pulsar. However, we decided that it would be too challenging to operate these systems at scale with the large number of isolated tenants that we wanted to support.&lt;/p&gt;&lt;p&gt;Instead of investing in new infrastructure, we decided to build on top of one of Cloudflare&amp;#39;s existing developer platform building blocks: &lt;b&gt;Durable Objects.&lt;/b&gt; &lt;a href=\&quot;https://www.cloudflare.com/developer-platform/durable-objects/\&quot;&gt;&lt;u&gt;Durable Objects&lt;/u&gt;&lt;/a&gt; are a simple, yet powerful building block for coordination and storage in a distributed system. In our initial &lt;i&gt;v1 &lt;/i&gt;architecture, each Queue was implemented using a single Durable Object. As shown below, clients would send messages to a Worker running in their region, which would be forwarded to the single Durable Object hosted in the WNAM (Western North America) region. We used a single Durable Object for simplicity, and hosted it in WNAM for proximity to our centralized configuration API service.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/yxj5Gut3usYa0mFbRddXU/881f5905f789bc2f910ee1b2dcadac92/image1.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1100\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;One of a Queue&amp;#39;s main responsibilities is to accept and store incoming messages. Sending a message to a &lt;i&gt;v1&lt;/i&gt; Queue used the following flow:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;A client sends a POST request containing the message body to the Queues API at &lt;code&gt;/accounts/:accountID/queues/:queueID/messages&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The request is handled by an instance of the &lt;b&gt;Queue Broker Worker&lt;/b&gt; in a Cloudflare data center running near the client.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Worker performs authentication, and then uses Durable Objects &lt;code&gt;idFromName&lt;/code&gt; API to route the request to the &lt;b&gt;Queue Durable Object&lt;/b&gt; for the given &lt;code&gt;queueID&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Queue Durable Object persists the message to storage before returning a &lt;i&gt;success &lt;/i&gt;back to the client.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Durable Objects handled most of the heavy-lifting here: we did not need to set up any new servers, storage, or service discovery infrastructure. To route requests, we simply provided a &lt;code&gt;queueID&lt;/code&gt; and the platform handled the rest. To store messages, we used the Durable Object storage API to &lt;code&gt;put&lt;/code&gt; each message, and the platform handled reliably storing the data redundantly.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;consuming-messages\&quot;&gt;Consuming messages&lt;/h3&gt;\n &lt;a href=\&quot;#consuming-messages\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;The other main responsibility of a Queue is to deliver messages to a Consumer. Delivering messages in a v1 Queue used the following process:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Each Queue Durable Object maintained an &lt;b&gt;alarm &lt;/b&gt;that was always set when there were undelivered messages in storage. The alarm guaranteed that the Durable Object would reliably wake up to deliver any messages in storage, even in the presence of failures. The alarm time was configured to fire after the user&amp;#39;s selected &lt;i&gt;max wait time&lt;/i&gt;&lt;b&gt;&lt;i&gt;, &lt;/i&gt;&lt;/b&gt;if only a partial batch of messages was available. Whenever one or more full batches were available in storage, the alarm was scheduled to fire immediately.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The alarm would wake the Durable Object, which continually looked for batches of messages in storage to deliver.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Each batch of messages was sent to a &amp;quot;Dispatcher Worker&amp;quot; that used &lt;a href=\&quot;https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/\&quot;&gt;&lt;u&gt;Workers for Platforms&lt;/u&gt;&lt;/a&gt; &lt;a href=\&quot;https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker\&quot;&gt;&lt;i&gt;&lt;u&gt;dynamic dispatch&lt;/u&gt;&lt;/i&gt;&lt;/a&gt; to pass the messages to the &lt;code&gt;queue()&lt;/code&gt; function defined in a user&amp;#39;s Consumer Worker&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/4vAM17x3nN49JBMGNTblPp/6af391950df5f0fbc14faeccb351e38c/image4.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;942\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;This v1 architecture let us flesh out the initial version of the Queues Beta product and onboard users quickly. Using Durable Objects allowed us to focus on building application logic, instead of complex low-level systems challenges such as global routing and guaranteed durability for storage. Using a separate Durable Object for each Queue allowed us to host an essentially unlimited number of Queues, and provided isolation between them.&lt;/p&gt;&lt;p&gt;However, using &lt;i&gt;only&lt;/i&gt; one Durable Object per queue had some significant limitations:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Latency: &lt;/b&gt;we created all of our v1 Queue Durable Objects in Western North America. Messages sent from distant regions incurred significant latency when traversing the globe.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Throughput: &lt;/b&gt;A single Durable Object is not scalable: it is single-threaded and has a fixed capacity for how many requests per second it can process. This is where the previous 400 messages per second limit came from.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;b&gt;Consumer Concurrency: &lt;/b&gt;Due to &lt;a href=\&quot;https://developers.cloudflare.com/workers/platform/limits/#simultaneous-open-connections\&quot;&gt;&lt;u&gt;concurrent subrequest limits&lt;/u&gt;&lt;/a&gt;, a single Durable Object was limited in how many concurrent subrequests it could make to our Dispatcher Worker. This limited the number of &lt;code&gt;queue()&lt;/code&gt; handler invocations that it could run simultaneously.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To solve these issues, we created a new v2 architecture that horizontally scales across &lt;b&gt;multiple&lt;/b&gt; Durable Objects to implement each single high-performance Queue.&lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;v2-architecture\&quot;&gt;v2 Architecture&lt;/h3&gt;\n &lt;a href=\&quot;#v2-architecture\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;In the new v2 architecture for Queues, each Queue is implemented using multiple Durable Objects, instead of just one. Instead of a single region, we place &lt;i&gt;Storage Shard &lt;/i&gt;Durable Objects in &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/reference/data-location/#supported-locations-1\&quot;&gt;&lt;u&gt;all available regions&lt;/u&gt;&lt;/a&gt; to enable lower latency. Within each region, we create multiple Storage Shards and load balance incoming requests amongst them. Just like that, we’ve multiplied message throughput.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2SJTb2UO8tKGrh26ixwLrA/7272e4eaf6f7e85f086a5ae08670387e/image2.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1100\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Sending a message to a v2 Queue uses the following flow:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;A client sends a POST request containing the message body to the Queues API at &lt;code&gt;/accounts/:accountID/queues/:queueID/messages&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The request is handled by an instance of the &lt;b&gt;Queue Broker Worker&lt;/b&gt; running in a Cloudflare data center near the client.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Worker:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Performs authentication&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Reads from Workers KV to obtain a &lt;i&gt;Shard Map&lt;/i&gt; that lists available storage shards for the given &lt;code&gt;region&lt;/code&gt; and &lt;code&gt;queueID&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Picks one of the region&amp;#39;s Storage Shards at random, and uses Durable Objects &lt;code&gt;idFromName&lt;/code&gt; API to route the request to the chosen shard&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Storage Shard persists the message to storage before returning a &lt;i&gt;success &lt;/i&gt;back to the client.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In this v2 architecture, messages are stored in the closest available Durable Object storage cluster near the user, greatly reducing latency since messages don&amp;#39;t need to be shipped all the way to WNAM. Using multiple shards within each region removes the bottleneck of a single Durable Object, and allows us to scale each Queue horizontally to accept even more messages per second. &lt;a href=\&quot;https://blog.cloudflare.com/tag/cloudflare-workers-kv/\&quot;&gt;&lt;u&gt;Workers KV&lt;/u&gt;&lt;/a&gt; acts as a fast metadata store: our Worker can quickly look up the shard map to perform load balancing across shards.&lt;/p&gt;&lt;p&gt;To improve the &lt;i&gt;Consumer&lt;/i&gt; side of v2 Queues, we used a similar &amp;quot;scale out&amp;quot; approach. A single Durable Object can only perform a limited number of concurrent subrequests. In v1 Queues, this limited the number of concurrent subrequests we could make to our Dispatcher Worker. To work around this, we created a new &lt;i&gt;Consumer Shard&lt;/i&gt; Durable Object class that we can scale horizontally, enabling us to execute many more concurrent instances of our users&amp;#39; &lt;code&gt;queue()&lt;/code&gt; handlers.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/2ujodUVBegDcWXi6DYJR41/5f31ba4da387df82613a496ff311f65f/image3.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1243\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;Consumer Durable Objects in v2 Queues use the following approach:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Each Consumer maintains an alarm that guarantees it will wake up to process any pending messages. &lt;i&gt;v2 &lt;/i&gt;Consumers are notified by the Queue&amp;#39;s &lt;i&gt;Coordinator &lt;/i&gt;(introduced below) when there are messages ready for consumption. Upon notification, the Consumer sets an alarm to go off immediately.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Consumer looks at the shard map, which contains information about the storage shards that exist for the Queue, including the number of available messages on each shard.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Consumer picks a random storage shard with available messages, and asks for a batch.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;The Consumer sends the batch to the Dispatcher Worker, just like for v1 Queues.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;After processing the messages, the Consumer sends another request to the Storage Shard to either &amp;quot;acknowledge&amp;quot; or &amp;quot;retry&amp;quot; the messages.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This scale-out approach enabled us to work around the subrequest limits of a single Durable Object, and increase the maximum supported concurrency level of a Queue from 20 to 250. &lt;/p&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;the-coordinator-and-control-plane\&quot;&gt;The Coordinator and “Control Plane”&lt;/h3&gt;\n &lt;a href=\&quot;#the-coordinator-and-control-plane\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;p&gt;So far, we have primarily discussed the &amp;quot;Data Plane&amp;quot; of a v2 Queue: how messages are load balanced amongst Storage Shards, and how Consumer Shards read and deliver messages. The other main piece of a v2 Queue is the &amp;quot;Control Plane&amp;quot;, which handles creating and managing all the individual Durable Objects in the system. In our v2 architecture, each Queue has a single &lt;i&gt;Coordinator&lt;/i&gt; Durable Object that acts as the brain of the Queue. Requests to create a Queue, or change its settings, are sent to the Queue&amp;#39;s Coordinator.&lt;/p&gt;\n &lt;figure class=\&quot;kg-card kg-image-card\&quot;&gt;\n &lt;Image src=\&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7lYJs23oJ8ibtGgbuOk9JN/7ffa8073a4391602b67a0c6e134975bc/image7.png\&quot; alt=\&quot;\&quot; class=\&quot;kg-image\&quot; width=\&quot;1999\&quot; height=\&quot;1100\&quot; loading=\&quot;lazy\&quot;/&gt;\n &lt;/figure&gt;&lt;p&gt;The Coordinator maintains a &lt;i&gt;Shard Map&lt;/i&gt; for the Queue, which includes metadata about all the Durable Objects in the Queue (including their region, number of available messages, current estimated load, etc.). The Coordinator periodically writes a fresh copy of the Shard Map into Workers KV, as pictured in step 1 of the diagram. Placing the shard map into Workers KV ensures that it is globally cached and available for our Worker to read quickly, so that it can pick a shard to accept the message.&lt;/p&gt;&lt;p&gt;Every shard in the system periodically sends a heartbeat to the Coordinator as shown in steps 2 and 3 of the diagram. Both Storage Shards and Consumer Shards send heartbeats, including information like the number of messages stored locally, and the current load (requests per second) that the shard is handling. The Coordinator uses this information to perform &lt;b&gt;&lt;i&gt;autoscaling. &lt;/i&gt;&lt;/b&gt;When it detects that the shards in a particular region are overloaded, it creates additional shards in the region, and adds them to the shard map in Workers KV. Our Worker sees the updated shard map and naturally load balances messages across the freshly added shards. Similarly, the Coordinator looks at the backlog of available messages in the Queue, and decides to add more Consumer shards to increase Consumer throughput when the backlog is growing. Consumer Shards pull messages from Storage Shards for processing as shown in step 4 of the diagram.&lt;/p&gt;&lt;p&gt;Switching to a new scalable architecture allowed us to meet our performance goals and take Queues to GA. As a recap, this new architecture delivered these significant improvements:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;P50 latency for writing to a Queue has dropped from ~200ms to ~60ms.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Maximum throughput for a Queue has increased from 400 to 5000 messages per second.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Maximum consumer concurrency has increased from 20 to 250 invocations.\t&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;\n &lt;div class=\&quot;flex anchor relative\&quot;&gt;\n &lt;h3 id=\&quot;whats-next-for-queues\&quot;&gt;What&#39;s next for Queues&lt;/h3&gt;\n &lt;a href=\&quot;#whats-next-for-queues\&quot; aria-hidden=\&quot;true\&quot; class=\&quot;relative sm:absolute sm:-left-5\&quot;&gt;\n &lt;svg width=\&quot;16\&quot; height=\&quot;16\&quot; viewBox=\&quot;0 0 24 24\&quot;&gt;&lt;path fill=\&quot;currentcolor\&quot; d=\&quot;m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z\&quot;&gt;&lt;/path&gt;&lt;/svg&gt;\n &lt;/a&gt;\n &lt;/div&gt;\n &lt;ul&gt;&lt;li&gt;&lt;p&gt;We plan on leveraging the performance improvements in the new &lt;a href=\&quot;https://developers.cloudflare.com/durable-objects/\&quot;&gt;&lt;u&gt;beta version of Durable Objects&lt;/u&gt;&lt;/a&gt; which use SQLite to continue to improve throughput/latency in Queues.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;We will soon be adding message management features to Queues so that you can take actions to purge messages in a queue, pause consumption of messages, or “redrive”/move messages from one queue to another (for example messages that have been sent to a Dead Letter Queue could be “redriven” or moved back to the original queue).&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Work to make Queues the &amp;quot;event hub&amp;quot; for the Cloudflare Developer Platform:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Create a low-friction way for events emitted from other Cloudflare services with event schemas to be sent to Queues.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Build multi-Consumer support for Queues so that Queues are no longer limited to one Consumer per queue.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To start using Queues, head over to our &lt;a href=\&quot;https://developers.cloudflare.com/queues/get-started/\&quot;&gt;&lt;u&gt;Getting Started&lt;/u&gt;&lt;/a&gt; guide. &lt;/p&gt;&lt;p&gt;Do distributed systems like Cloudflare Queues and Durable Objects interest you? Would you like to help build them at Cloudflare? &lt;a href=\&quot;https://boards.greenhouse.io/embed/job_app?token=5390243&amp;gh_src=b2e516a81us\&quot;&gt;&lt;u&gt;We&amp;#39;re Hiring!&lt;/u&gt;&lt;/a&gt;&lt;/p&gt;&quot;],&quot;published_at&quot;:[0,&quot;2024-10-24T14:00+01:00&quot;],&quot;updated_at&quot;:[0,&quot;2024-10-24T13:00:03.392Z&quot;],&quot;feature_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7jqMx0fPAknCu1pBfXvSG4/499662b35777f79347cb6ef96bdd97c1/image6.png&quot;],&quot;tags&quot;:[1,[[0,{&quot;id&quot;:[0,&quot;6QktrXeEFcl4e2dZUTZVGl&quot;],&quot;name&quot;:[0,&quot;Product News&quot;],&quot;slug&quot;:[0,&quot;product-news&quot;]}],[0,{&quot;id&quot;:[0,&quot;7p9V4sEnUw2qMWnn5Jzsp9&quot;],&quot;name&quot;:[0,&quot;Cloudflare Queues&quot;],&quot;slug&quot;:[0,&quot;cloudflare-queues&quot;]}],[0,{&quot;id&quot;:[0,&quot;6hbkItfupogJP3aRDAq6v8&quot;],&quot;name&quot;:[0,&quot;Cloudflare Workers&quot;],&quot;slug&quot;:[0,&quot;workers&quot;]}],[0,{&quot;id&quot;:[0,&quot;5v2UZdTRX1Rw9akmhexnxs&quot;],&quot;name&quot;:[0,&quot;Durable Objects&quot;],&quot;slug&quot;:[0,&quot;durable-objects&quot;]}],[0,{&quot;id&quot;:[0,&quot;4HIPcb68qM0e26fIxyfzwQ&quot;],&quot;name&quot;:[0,&quot;Developers&quot;],&quot;slug&quot;:[0,&quot;developers&quot;]}],[0,{&quot;id&quot;:[0,&quot;3JAY3z7p7An94s6ScuSQPf&quot;],&quot;name&quot;:[0,&quot;Developer Platform&quot;],&quot;slug&quot;:[0,&quot;developer-platform&quot;]}]]],&quot;relatedTags&quot;:[0],&quot;authors&quot;:[1,[[0,{&quot;name&quot;:[0,&quot;Josh Wheeler&quot;],&quot;slug&quot;:[0,&quot;josh&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6imiHQ1XAeb46hwiEvyfMd/ea89cdb2b823497aef6cd84a2b24cc89/josh.jpg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}],[0,{&quot;name&quot;:[0,&quot;Siddhant Sinha&quot;],&quot;slug&quot;:[0,&quot;siddhant&quot;],&quot;bio&quot;:[0,null],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/1vq92TZAtrQDTkxRNUoh3u/896e53442514c2062d025a508205444c/siddhant.jpg&quot;],&quot;location&quot;:[0,null],&quot;website&quot;:[0,null],&quot;twitter&quot;:[0,null],&quot;facebook&quot;:[0,null]}],[0,{&quot;name&quot;:[0,&quot;Todd Mantell&quot;],&quot;slug&quot;:[0,&quot;todd-mantell&quot;],&quot;bio&quot;:[0],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6EqvYtkgTeVJkuNFM3tk9d/762b1047d26a713451015fb92bc731e5/_tmp_mini_magick20240417-2-ql63l7.jpg&quot;],&quot;location&quot;:[0],&quot;website&quot;:[0],&quot;twitter&quot;:[0],&quot;facebook&quot;:[0]}],[0,{&quot;name&quot;:[0,&quot;Pranshu Maheshwari&quot;],&quot;slug&quot;:[0,&quot;pranshu-maheshwari&quot;],&quot;bio&quot;:[0],&quot;profile_image&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/uvyJ2RWjiLA25kglsiQBv/06acca0147686d8c076ff771cc923a57/IMG_7400.jpg&quot;],&quot;location&quot;:[0],&quot;website&quot;:[0],&quot;twitter&quot;:[0],&quot;facebook&quot;:[0]}]]],&quot;meta_description&quot;:[0,&quot;Learn how we built Cloudflare Queues using our own Developer Platform and how it evolved to a geographically-distributed, horizontally-scalable architecture built on Durable Objects. Our new architecture supports over 10x more throughput and over 3x lower latency compared to the previous version.&quot;],&quot;primary_author&quot;:[0,{}],&quot;localeList&quot;:[0,{&quot;name&quot;:[0,&quot;blog-english-only&quot;],&quot;enUS&quot;:[0,&quot;English for Locale&quot;],&quot;zhCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhHansCN&quot;:[0,&quot;No Page for Locale&quot;],&quot;zhTW&quot;:[0,&quot;No Page for Locale&quot;],&quot;frFR&quot;:[0,&quot;No Page for Locale&quot;],&quot;deDE&quot;:[0,&quot;No Page for Locale&quot;],&quot;itIT&quot;:[0,&quot;No Page for Locale&quot;],&quot;jaJP&quot;:[0,&quot;No Page for Locale&quot;],&quot;koKR&quot;:[0,&quot;No Page for Locale&quot;],&quot;ptBR&quot;:[0,&quot;No Page for Locale&quot;],&quot;esLA&quot;:[0,&quot;No Page for Locale&quot;],&quot;esES&quot;:[0,&quot;No Page for Locale&quot;],&quot;enAU&quot;:[0,&quot;No Page for Locale&quot;],&quot;enCA&quot;:[0,&quot;No Page for Locale&quot;],&quot;enIN&quot;:[0,&quot;No Page for Locale&quot;],&quot;enGB&quot;:[0,&quot;No Page for Locale&quot;],&quot;idID&quot;:[0,&quot;No Page for Locale&quot;],&quot;ruRU&quot;:[0,&quot;No Page for Locale&quot;],&quot;svSE&quot;:[0,&quot;No Page for Locale&quot;],&quot;viVN&quot;:[0,&quot;No Page for Locale&quot;],&quot;plPL&quot;:[0,&quot;No Page for Locale&quot;],&quot;arAR&quot;:[0,&quot;No Page for Locale&quot;],&quot;nlNL&quot;:[0,&quot;No Page for Locale&quot;],&quot;thTH&quot;:[0,&quot;No Page for Locale&quot;],&quot;trTR&quot;:[0,&quot;No Page for Locale&quot;],&quot;heIL&quot;:[0,&quot;No Page for Locale&quot;],&quot;lvLV&quot;:[0,&quot;No Page for Locale&quot;],&quot;etEE&quot;:[0,&quot;No Page for Locale&quot;],&quot;ltLT&quot;:[0,&quot;No Page for Locale&quot;]}],&quot;url&quot;:[0,&quot;https://blog.cloudflare.com/how-we-built-cloudflare-queues&quot;],&quot;metadata&quot;:[0,{&quot;title&quot;:[0,&quot;Durable Objects aren&#39;t just durable, they&#39;re fast: a 10x speedup for Cloudflare Queues&quot;],&quot;description&quot;:[0,&quot;Learn how we built Cloudflare Queues using our own Developer Platform and how it evolved to a geographically-distributed, horizontally-scalable architecture built on Durable Objects. Our new architecture supports over 10x more throughput and over 3x lower latency compared to the previous version.&quot;],&quot;imgPreview&quot;:[0,&quot;https://cf-assets.www.cloudflare.com/zkvhlag99gkb/5bvL18K4wXQlP76YGtO0x0/fd7e25d06fc3b1c74f385d08b00f2ba1/Durable_Objects_aren-t_just_durable__they-re_fast-_a_10x_speedup_for_Cloudflare_Queues-OG.png&quot;]}]}]]],&quot;locale&quot;:[0,&quot;en-us&quot;],&quot;translations&quot;:[0,{&quot;posts.by&quot;:[0,&quot;By&quot;],&quot;footer.gdpr&quot;:[0,&quot;GDPR&quot;],&quot;lang_blurb1&quot;:[0,&quot;This post is also available in {lang1}.&quot;],&quot;lang_blurb2&quot;:[0,&quot;This post is also available in {lang1} and {lang2}.&quot;],&quot;lang_blurb3&quot;:[0,&quot;This post is also available in {lang1}, {lang2} and {lang3}.&quot;],&quot;footer.press&quot;:[0,&quot;Press&quot;],&quot;header.title&quot;:[0,&quot;The Cloudflare Blog&quot;],&quot;search.clear&quot;:[0,&quot;Clear&quot;],&quot;search.filter&quot;:[0,&quot;Filter&quot;],&quot;search.source&quot;:[0,&quot;Source&quot;],&quot;footer.careers&quot;:[0,&quot;Careers&quot;],&quot;footer.company&quot;:[0,&quot;Company&quot;],&quot;footer.support&quot;:[0,&quot;Support&quot;],&quot;footer.the_net&quot;:[0,&quot;theNet&quot;],&quot;search.filters&quot;:[0,&quot;Filters&quot;],&quot;footer.our_team&quot;:[0,&quot;Our team&quot;],&quot;footer.webinars&quot;:[0,&quot;Webinars&quot;],&quot;page.more_posts&quot;:[0,&quot;More posts&quot;],&quot;posts.time_read&quot;:[0,&quot;{time} min read&quot;],&quot;search.language&quot;:[0,&quot;Language&quot;],&quot;footer.community&quot;:[0,&quot;Community&quot;],&quot;footer.resources&quot;:[0,&quot;Resources&quot;],&quot;footer.solutions&quot;:[0,&quot;Solutions&quot;],&quot;footer.trademark&quot;:[0,&quot;Trademark&quot;],&quot;header.subscribe&quot;:[0,&quot;Subscribe&quot;],&quot;footer.compliance&quot;:[0,&quot;Compliance&quot;],&quot;footer.free_plans&quot;:[0,&quot;Free plans&quot;],&quot;footer.impact_ESG&quot;:[0,&quot;Impact/ESG&quot;],&quot;posts.follow_on_X&quot;:[0,&quot;Follow on X&quot;],&quot;footer.help_center&quot;:[0,&quot;Help center&quot;],&quot;footer.network_map&quot;:[0,&quot;Network Map&quot;],&quot;header.please_wait&quot;:[0,&quot;Please Wait&quot;],&quot;page.related_posts&quot;:[0,&quot;Related posts&quot;],&quot;search.result_stat&quot;:[0,&quot;Results &lt;strong&gt;{search_range}&lt;/strong&gt; of &lt;strong&gt;{search_total}&lt;/strong&gt; for &lt;strong&gt;{search_keyword}&lt;/strong&gt;&quot;],&quot;footer.case_studies&quot;:[0,&quot;Case Studies&quot;],&quot;footer.connect_2024&quot;:[0,&quot;Connect 2024&quot;],&quot;footer.terms_of_use&quot;:[0,&quot;Terms of Use&quot;],&quot;footer.white_papers&quot;:[0,&quot;White Papers&quot;],&quot;footer.cloudflare_tv&quot;:[0,&quot;Cloudflare TV&quot;],&quot;footer.community_hub&quot;:[0,&quot;Community Hub&quot;],&quot;footer.compare_plans&quot;:[0,&quot;Compare plans&quot;],&quot;footer.contact_sales&quot;:[0,&quot;Contact Sales&quot;],&quot;header.contact_sales&quot;:[0,&quot;Contact Sales&quot;],&quot;header.email_address&quot;:[0,&quot;Email Address&quot;],&quot;page.error.not_found&quot;:[0,&quot;Page not found&quot;],&quot;footer.developer_docs&quot;:[0,&quot;Developer docs&quot;],&quot;footer.privacy_policy&quot;:[0,&quot;Privacy Policy&quot;],&quot;footer.request_a_demo&quot;:[0,&quot;Request a demo&quot;],&quot;page.continue_reading&quot;:[0,&quot;Continue reading&quot;],&quot;footer.analysts_report&quot;:[0,&quot;Analyst reports&quot;],&quot;footer.for_enterprises&quot;:[0,&quot;For enterprises&quot;],&quot;footer.getting_started&quot;:[0,&quot;Getting Started&quot;],&quot;footer.learning_center&quot;:[0,&quot;Learning Center&quot;],&quot;footer.project_galileo&quot;:[0,&quot;Project Galileo&quot;],&quot;pagination.newer_posts&quot;:[0,&quot;Newer Posts&quot;],&quot;pagination.older_posts&quot;:[0,&quot;Older Posts&quot;],&quot;posts.social_buttons.x&quot;:[0,&quot;Discuss on X&quot;],&quot;search.source_location&quot;:[0,&quot;Source/Location&quot;],&quot;footer.about_cloudflare&quot;:[0,&quot;About Cloudflare&quot;],&quot;footer.athenian_project&quot;:[0,&quot;Athenian Project&quot;],&quot;footer.become_a_partner&quot;:[0,&quot;Become a partner&quot;],&quot;footer.cloudflare_radar&quot;:[0,&quot;Cloudflare Radar&quot;],&quot;footer.network_services&quot;:[0,&quot;Network services&quot;],&quot;footer.trust_and_safety&quot;:[0,&quot;Trust &amp; Safety&quot;],&quot;header.get_started_free&quot;:[0,&quot;Get Started Free&quot;],&quot;page.search.placeholder&quot;:[0,&quot;Search Cloudflare&quot;],&quot;footer.cloudflare_status&quot;:[0,&quot;Cloudflare Status&quot;],&quot;footer.cookie_preference&quot;:[0,&quot;Cookie Preferences&quot;],&quot;header.valid_email_error&quot;:[0,&quot;Must be valid email.&quot;],&quot;footer.connectivity_cloud&quot;:[0,&quot;Connectivity cloud&quot;],&quot;footer.developer_services&quot;:[0,&quot;Developer services&quot;],&quot;footer.investor_relations&quot;:[0,&quot;Investor relations&quot;],&quot;page.not_found.error_code&quot;:[0,&quot;Error Code: 404&quot;],&quot;footer.logos_and_press_kit&quot;:[0,&quot;Logos &amp; press kit&quot;],&quot;footer.application_services&quot;:[0,&quot;Application services&quot;],&quot;footer.get_a_recommendation&quot;:[0,&quot;Get a recommendation&quot;],&quot;posts.social_buttons.reddit&quot;:[0,&quot;Discuss on Reddit&quot;],&quot;footer.sse_and_sase_services&quot;:[0,&quot;SSE and SASE services&quot;],&quot;page.not_found.outdated_link&quot;:[0,&quot;You may have used an outdated link, or you may have typed the address incorrectly.&quot;],&quot;footer.report_security_issues&quot;:[0,&quot;Report Security Issues&quot;],&quot;page.error.error_message_page&quot;:[0,&quot;Sorry, we can&#39;t find the page you are looking for.&quot;],&quot;header.subscribe_notifications&quot;:[0,&quot;Subscribe to receive notifications of new posts:&quot;],&quot;footer.cloudflare_for_campaigns&quot;:[0,&quot;Cloudflare for Campaigns&quot;],&quot;header.subscription_confimation&quot;:[0,&quot;Subscription confirmed. Thank you for subscribing!&quot;],&quot;posts.social_buttons.hackernews&quot;:[0,&quot;Discuss on Hacker News&quot;],&quot;footer.diversity_equity_inclusion&quot;:[0,&quot;Diversity, equity &amp; inclusion&quot;],&quot;footer.critical_infrastructure_defense_project&quot;:[0,&quot;Critical Infrastructure Defense Project&quot;]}],&quot;localesAvailable&quot;:[1,[[0,&quot;ko-kr&quot;]]],&quot;footerBlurb&quot;:[0,&quot;Cloudflare&#39;s connectivity cloud protects &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/network-services/&#39; rel=&#39;noreferrer&#39;&gt;entire corporate networks&lt;/a&gt;, helps customers build &lt;a target=&#39;_blank&#39; href=&#39;https://workers.cloudflare.com/&#39; rel=&#39;noreferrer&#39;&gt;Internet-scale applications efficiently&lt;/a&gt;, accelerates any &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/performance/accelerate-internet-applications/&#39; rel=&#39;noreferrer&#39;&gt;website or Internet application&lt;/a&gt;, &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/ddos/&#39; rel=&#39;noreferrer&#39;&gt;wards off DDoS attacks&lt;/a&gt;, keeps &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/application-security/&#39; rel=&#39;noreferrer&#39;&gt;hackers at bay&lt;/a&gt;, and can help you on &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/products/zero-trust/&#39; rel=&#39;noreferrer&#39;&gt;your journey to Zero Trust&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;Visit &lt;a target=&#39;_blank&#39; href=&#39;https://one.one.one.one/&#39; rel=&#39;noreferrer&#39;&gt;1.1.1.1&lt;/a&gt; from any device to get started with our free app that makes your Internet faster and safer.&lt;br/&gt;&lt;br/&gt;To learn more about our mission to help build a better Internet, &lt;a target=&#39;_blank&#39; href=&#39;https://www.cloudflare.com/learning/what-is-cloudflare/&#39; rel=&#39;noreferrer&#39;&gt;start here&lt;/a&gt;. If you&amp;apos;re looking for a new career direction, check out &lt;a target=&#39;_blank&#39; href=&#39;http://www.cloudflare.com/careers&#39; rel=&#39;noreferrer&#39;&gt;our open positions&lt;/a&gt;.&quot;]}" ssr="" client="load" opts="{&quot;name&quot;:&quot;Post&quot;,&quot;value&quot;:true}" await-children=""><main id="post" class="flex flex-row flex-wrap items-center justify-center pt2 pt4-l"><article class="post-full mw-100 ph3 ph0-l fs-20px"><h1 class="f6 f7-l fw4 gray1 pt1 pt3-l mb1">Experiment with HTTP/3 using NGINX and quiche</h1><p class="f3 fw5 gray5 db di-l mt2">2019-10-17</p><ul class="author-lists flex pl0 mt4"><li class="list flex items-center pr2 mb1-ns"><a href="/author/alessandro-ghedini" class="static-avatar pr1"><img class="author-profile-image br-100 mr2" src="https://blog.cloudflare.com/cdn-cgi/image/format=auto,dpr=3,width=64,height=64,gravity=face,fit=crop,zoom=0.5/https://cf-assets.www.cloudflare.com/zkvhlag99gkb/6ysyaWM0uyFhi5F9X2t0jw/14d2e374a965b36818ee73b00412f671/alessandro-ghedini.jpg" alt="Alessandro Ghedini" width="62" height="62"/></a><div class="author-name-tooltip"><a href="/author/alessandro-ghedini" class="fw4 f3 no-underline black mr3">Alessandro Ghedini</a></div></li></ul><section class="post-full-content"><div class="mb2 gray5">2 min read</div><div class="mt4">This post is also available in <a href="/ko-kr/experiment-with-http-3-using-nginx-and-quiche">한국어</a>.</div><div class="post-content lh-copy gray1"> <figure class="kg-card kg-image-card "> <Image src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/7GewSku8hqAHAyubNYEXl4/b896c88a9def673a40ff9218e5d43760/HTTP3-portal_3x.png" alt="" class="kg-image" width="1600" height="1361" loading="lazy"/> </figure><p>Just a few weeks ago <a href="/http3-the-past-present-and-future/">we announced</a> the availability on our edge network of <a href="https://www.cloudflare.com/learning/performance/what-is-http3/">HTTP/3</a>, the new revision of HTTP intended to improve security and performance on the Internet. Everyone can now enable HTTP/3 on their Cloudflare zone and experiment with it using <a href="/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client">Chrome Canary</a> as well as <a href="/http3-the-past-present-and-future/#using-curl">curl</a>, among other clients.</p><p>We have previously made available <a href="https://github.com/cloudflare/quiche/blob/master/examples/http3-server.rs">an example HTTP/3 server as part of the quiche project</a> to allow people to experiment with the protocol, but it’s quite limited in the functionality that it offers, and was never intended to replace other general-purpose web servers.</p><p>We are now happy to announce that <a href="/enjoy-a-slice-of-quic-and-rust/">our implementation of HTTP/3 and QUIC</a> can be integrated into your own installation of NGINX as well. This is made available <a href="https://github.com/cloudflare/quiche/tree/master/extras/nginx">as a patch</a> to NGINX, that can be applied and built directly with the upstream NGINX codebase.</p> <figure class="kg-card kg-image-card "> <Image src="https://cf-assets.www.cloudflare.com/zkvhlag99gkb/RGn7FpVUT1wQ1v5yu74c3/d6db309a2e2d99da184b3bbb123f3fb5/quiche-banner-copy_2x.png" alt="" class="kg-image" width="1600" height="804" loading="lazy"/> </figure><p>It’s important to note that <b>this is not officially supported or endorsed by the NGINX project</b>, it is just something that we, Cloudflare, want to make available to the wider community to help push adoption of QUIC and HTTP/3.</p> <div class="flex anchor relative"> <h3 id="building">Building</h3> <a href="#building" aria-hidden="true" class="relative sm:absolute sm:-left-5"> <svg width="16" height="16" viewBox="0 0 24 24"><path fill="currentcolor" d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z"></path></svg> </a> </div> <p>The first step is to <a href="https://nginx.org/en/download.html">download and unpack the NGINX source code</a>. Note that the HTTP/3 and QUIC patch only works with the 1.16.x release branch (the latest stable release being 1.16.1).</p> <pre class="language-bash"><code class="language-bash"> % curl -O https://nginx.org/download/nginx-1.16.1.tar.gz % tar xvzf nginx-1.16.1.tar.gz</pre></code> <p>As well as quiche, the underlying implementation of HTTP/3 and QUIC:</p> <pre class="language-bash"><code class="language-bash"> % git clone --recursive https://github.com/cloudflare/quiche</pre></code> <p>Next you’ll need to apply the patch to NGINX:</p> <pre class="language-bash"><code class="language-bash"> % cd nginx-1.16.1 % patch -p01 &lt; ../quiche/extras/nginx/nginx-1.16.patch</pre></code> <p>And finally build NGINX with HTTP/3 support enabled:</p> <pre class="language-bash"><code class="language-bash"> % ./configure \ --prefix=$PWD \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_v3_module \ --with-openssl=../quiche/deps/boringssl \ --with-quiche=../quiche % make</pre></code> <p>The above command instructs the NGINX build system to enable the HTTP/3 support ( <code>--with-http_v3_module</code>) by using the quiche library found in the path it was previously downloaded into ( <code>--with-quiche=../quiche</code>), as well as TLS and HTTP/2. Additional build options can be added as needed.</p><p>You can check out the full instructions <a href="https://github.com/cloudflare/quiche/tree/master/extras/nginx#readme">here</a>.</p> <div class="flex anchor relative"> <h3 id="running">Running</h3> <a href="#running" aria-hidden="true" class="relative sm:absolute sm:-left-5"> <svg width="16" height="16" viewBox="0 0 24 24"><path fill="currentcolor" d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z"></path></svg> </a> </div> <p>Once built, NGINX can be configured to accept incoming HTTP/3 connections by adding the <code>quic</code> and <code>reuseport</code> options to the <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#listen">listen</a> configuration directive.</p><p>Here is a minimal configuration example that you can start from:</p> <pre class="language-bash"><code class="language-bash">events { worker_connections 1024; } http { server { # Enable QUIC and HTTP/3. listen 443 quic reuseport; # Enable HTTP/2 (optional). listen 443 ssl http2; ssl_certificate cert.crt; ssl_certificate_key cert.key; # Enable all TLS versions (TLSv1.3 is required for QUIC). ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Add Alt-Svc header to negotiate HTTP/3. add_header alt-svc &#039;h3-23=&quot;:443&quot;; ma=86400&#039;; } }</pre></code> <p>This will enable both HTTP/2 and HTTP/3 on the TCP/443 and UDP/443 ports respectively.</p><p>You can then use one of the available HTTP/3 clients (such as <a href="/http3-the-past-present-and-future/#using-google-chrome-as-an-http-3-client">Chrome Canary</a>, <a href="/http3-the-past-present-and-future/#using-curl">curl</a> or even the <a href="/http3-the-past-present-and-future/#using-quiche-s-http3-client">example HTTP/3 client provided as part of quiche</a>) to connect to your NGINX instance using HTTP/3.</p><p>We are excited to make this available for everyone to experiment and play with HTTP/3, but it’s important to note that <b>the implementation is still experimental</b> and it’s likely to have bugs as well as limitations in functionality. Feel free to submit a ticket to the <a href="https://github.com/cloudflare/quiche">quiche project</a> if you run into problems or find any bug.</p></div></section><section class="post-full-content flex flex-row flex-wrap mw7 center mb4"><div class="post-content lh-copy w-100 gray1 bt b--gray8 pt4">Cloudflare's connectivity cloud protects <a target='_blank' href='https://www.cloudflare.com/network-services/' rel='noreferrer'>entire corporate networks</a>, helps customers build <a target='_blank' href='https://workers.cloudflare.com/' rel='noreferrer'>Internet-scale applications efficiently</a>, accelerates any <a target='_blank' href='https://www.cloudflare.com/performance/accelerate-internet-applications/' rel='noreferrer'>website or Internet application</a>, <a target='_blank' href='https://www.cloudflare.com/ddos/' rel='noreferrer'>wards off DDoS attacks</a>, keeps <a target='_blank' href='https://www.cloudflare.com/application-security/' rel='noreferrer'>hackers at bay</a>, and can help you on <a target='_blank' href='https://www.cloudflare.com/products/zero-trust/' rel='noreferrer'>your journey to Zero Trust</a>.<br/><br/>Visit <a target='_blank' href='https://one.one.one.one/' rel='noreferrer'>1.1.1.1</a> from any device to get started with our free app that makes your Internet faster and safer.<br/><br/>To learn more about our mission to help build a better Internet, <a target='_blank' href='https://www.cloudflare.com/learning/what-is-cloudflare/' rel='noreferrer'>start here</a>. If you&apos;re looking for a new career direction, check out <a target='_blank' href="https://www.cloudflare.com/careers" rel='noreferrer'>our open positions</a>.</div></section><div class="pv2 ph0-l mw7 center" id="social-buttons"><div class="mt5-l mt2 mb4 f2 flex flex-row-ns flex-column flex-wrap"><a id="social-button-hn" title="Discuss on Hacker News" href="https://news.ycombinator.com/submitlink?u=https://blog.cloudflare.com/experiment-with-http-3-using-nginx-and-quiche" target="_blank" rel="noreferrer" class="mr2-ns mb0-l white link b pv3 ph3 mb3 " style="background-color:#0055DC"><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512" class="mr2"><g><path d="M31,31v450h450V31H31z M270.1,287.6v94.9h-28.1v-94.9L165,143.5h31.9L256,254.3l59.1-110.8H347 C347,143.5,270.1,287.6,270.1,287.6z"></path></g></svg><span class="v-mid">Discuss on Hacker News</span></a></div></div><iframe sandbox="allow-scripts allow-popups" title="cloudflare-tv-live-link" id="cloudflare-tv-embed" src="https://cloudflare.tv/embed/live.html" loading="lazy"></iframe><a href="/tag/nginx" class="dib pl2 pr2 pt1 pb1 mb2 bg-gray8 no-underline blue3 f2 mr1">NGINX</a><a href="/tag/quic" class="dib pl2 pr2 pt1 pb1 mb2 bg-gray8 no-underline blue3 f2 mr1">QUIC</a><a href="/tag/chrome" class="dib pl2 pr2 pt1 pb1 mb2 bg-gray8 no-underline blue3 f2 mr1">Chrome</a><a href="/tag/developers" class="dib pl2 pr2 pt1 pb1 mb2 bg-gray8 no-underline blue3 f2 mr1">Developers</a><a href="/tag/http3" class="dib pl2 pr2 pt1 pb1 mb2 bg-gray8 no-underline blue3 f2 mr1">HTTP3</a></article></main><div class="ph3 pv3"><div class=" flex flex-row flex-wrap mw7 center"><div class="w-100 bt b--gray8"><p class="black fw5 f4 mt4">Follow on X</p></div><div class="w-100 pb2"><span>Cloudflare</span><span class="ph2">|</span><a href="https://x.com/@cloudflare" class="no-underline">@cloudflare</a></div></div></div><div data-testid="related-posts-section" class="pv4 ph3 ph0-l flex flex-row flex-wrap mw7 center"><div class="w-100 bt b--gray8"><p class="orange fw5 f4 mt4 ttu">Related posts</p></div><article data-testid="related-posts-article" class="w-100 w-100-m w-50-l ph3 mb4"><p data-testid="related-posts-article-date" class="f3 fw5 gray5" data-iso-date="2024-11-19T14:00-08:00">November 19, 2024 10:00 PM</p><a data-testid="related-posts-article-title" href="/do-it-again" class="no-underline gray1 f4 fw5"><h2 class="gray1 f4 fw5 mt2">DO it again: how we used Durable Objects to add WebSockets support and authentication to AI Gateway</h2></a><p data-testid="related-posts-article-excerpt" class="gray1 lh-copy">We used Cloudflare’s Developer Platform and Durable Objects to build authentication and a WebSockets API that developers can use to call AI Gateway, enabling continuous communication over a single, persistent connection.<!-- -->...</p><ul class="flex pl0 fw6 f2 mb3 flex flex-wrap"><span>By<!-- --> </span><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/catarina-pires-mota" class="fw5 f2 black no-underline">Catarina Pires Mota</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/gabriel-massadas" class="fw5 f2 black no-underline">Gabriel Massadas</a></div></li></ul><div data-testid="related-posts-article-tags" class="flex flex-row flex-wrap"><span><a href="/tag/ai" class="no-underline f1 fw2 blue3 underline-hover">AI<!-- -->,</a> </span><span><a href="/tag/ai-gateway" class="no-underline f1 fw2 blue3 underline-hover">AI Gateway<!-- -->,</a> </span><span><a href="/tag/developers" class="no-underline f1 fw2 blue3 underline-hover">Developers<!-- -->,</a> </span><span><a href="/tag/developer-platform" class="no-underline f1 fw2 blue3 underline-hover">Developer Platform<!-- -->,</a> </span><span><a href="/tag/agile-developer-services" class="no-underline f1 fw2 blue3 underline-hover">Agile Developer Services<!-- -->,</a> </span><span><a href="/tag/javascript" class="no-underline f1 fw2 blue3 underline-hover">JavaScript</a> </span></div></article><article data-testid="related-posts-article" class="w-100 w-100-m w-50-l ph3 mb4"><p data-testid="related-posts-article-date" class="f3 fw5 gray5" data-iso-date="2024-11-14T14:00+00:00">November 14, 2024 2:00 PM</p><a data-testid="related-posts-article-title" href="/account-owned-tokens-automated-actions-zaraz" class="no-underline gray1 f4 fw5"><h2 class="gray1 f4 fw5 mt2">What’s new in Cloudflare: Account Owned Tokens and Zaraz Automated Actions</h2></a><p data-testid="related-posts-article-excerpt" class="gray1 lh-copy">Cloudflare customers can now create Account Owned Tokens , allowing more flexibility around access control for their Cloudflare services. Additionally, Zaraz Automation Actions streamlines event tracking and third-party tool integration. <!-- -->...</p><ul class="flex pl0 fw6 f2 mb3 flex flex-wrap"><span>By<!-- --> </span><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/joseph" class="fw5 f2 black no-underline">Joseph So</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/omar-mohammad" class="fw5 f2 black no-underline">Omar Mohammad</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/yoav" class="fw5 f2 black no-underline">Yo&#x27;av Moshe</a></div></li></ul><div data-testid="related-posts-article-tags" class="flex flex-row flex-wrap"><span><a href="/tag/identity" class="no-underline f1 fw2 blue3 underline-hover">Identity<!-- -->,</a> </span><span><a href="/tag/security" class="no-underline f1 fw2 blue3 underline-hover">Security<!-- -->,</a> </span><span><a href="/tag/developers" class="no-underline f1 fw2 blue3 underline-hover">Developers<!-- -->,</a> </span><span><a href="/tag/product-news" class="no-underline f1 fw2 blue3 underline-hover">Product News<!-- -->,</a> </span><span><a href="/tag/zaraz" class="no-underline f1 fw2 blue3 underline-hover">Zaraz<!-- -->,</a> </span><span><a href="/tag/analytics" class="no-underline f1 fw2 blue3 underline-hover">Analytics<!-- -->,</a> </span><span><a href="/tag/managed-components" class="no-underline f1 fw2 blue3 underline-hover">Managed Components</a> </span></div></article><article data-testid="related-posts-article" class="w-100 w-100-m w-50-l ph3 mb4"><p data-testid="related-posts-article-date" class="f3 fw5 gray5" data-iso-date="2024-10-31T13:00+00:00">October 31, 2024 1:00 PM</p><a data-testid="related-posts-article-title" href="/workers-builds-integrated-ci-cd-built-on-the-workers-platform" class="no-underline gray1 f4 fw5"><h2 class="gray1 f4 fw5 mt2">Workers Builds: integrated CI/CD built on the Workers platform</h2></a><p data-testid="related-posts-article-excerpt" class="gray1 lh-copy">Workers Builds, an integrated CI/CD pipeline for the Workers platform, recently launched in open beta. We walk through how we built this product on Cloudflare’s Developer Platform.<!-- -->...</p><ul class="flex pl0 fw6 f2 mb3 flex flex-wrap"><span>By<!-- --> </span><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/serena" class="fw5 f2 black no-underline">Serena Shah-Simpson</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/jacob-hands" class="fw5 f2 black no-underline">Jacob Hands</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/natalie" class="fw5 f2 black no-underline">Natalie Rogers</a></div></li></ul><div data-testid="related-posts-article-tags" class="flex flex-row flex-wrap"><span><a href="/tag/developer-platform" class="no-underline f1 fw2 blue3 underline-hover">Developer Platform<!-- -->,</a> </span><span><a href="/tag/developers" class="no-underline f1 fw2 blue3 underline-hover">Developers<!-- -->,</a> </span><span><a href="/tag/agile-developer-services" class="no-underline f1 fw2 blue3 underline-hover">Agile Developer Services<!-- -->,</a> </span><span><a href="/tag/workers" class="no-underline f1 fw2 blue3 underline-hover">Cloudflare Workers</a> </span></div></article><article data-testid="related-posts-article" class="w-100 w-100-m w-50-l ph3 mb4"><p data-testid="related-posts-article-date" class="f3 fw5 gray5" data-iso-date="2024-10-24T14:00+01:00">October 24, 2024 1:00 PM</p><a data-testid="related-posts-article-title" href="/how-we-built-cloudflare-queues" class="no-underline gray1 f4 fw5"><h2 class="gray1 f4 fw5 mt2">Durable Objects aren&#x27;t just durable, they&#x27;re fast: a 10x speedup for Cloudflare Queues</h2></a><p data-testid="related-posts-article-excerpt" class="gray1 lh-copy">Learn how we built Cloudflare Queues using our own Developer Platform and how it evolved to a geographically-distributed, horizontally-scalable architecture built on Durable Objects. Our new architecture supports over 10x more throughput and over 3x lower latency compared to the previous version.<!-- -->...</p><ul class="flex pl0 fw6 f2 mb3 flex flex-wrap"><span>By<!-- --> </span><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/josh" class="fw5 f2 black no-underline">Josh Wheeler</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/siddhant" class="fw5 f2 black no-underline">Siddhant Sinha</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/todd-mantell" class="fw5 f2 black no-underline">Todd Mantell</a><span class="fw5 f2 black no-underline">, </span></div></li><li class="list flex items-center" style="white-space:nowrap"><div class="author-name-tooltip"><a href="/author/pranshu-maheshwari" class="fw5 f2 black no-underline">Pranshu Maheshwari</a></div></li></ul><div data-testid="related-posts-article-tags" class="flex flex-row flex-wrap"><span><a href="/tag/product-news" class="no-underline f1 fw2 blue3 underline-hover">Product News<!-- -->,</a> </span><span><a href="/tag/cloudflare-queues" class="no-underline f1 fw2 blue3 underline-hover">Cloudflare Queues<!-- -->,</a> </span><span><a href="/tag/workers" class="no-underline f1 fw2 blue3 underline-hover">Cloudflare Workers<!-- -->,</a> </span><span><a href="/tag/durable-objects" class="no-underline f1 fw2 blue3 underline-hover">Durable Objects<!-- -->,</a> </span><span><a href="/tag/developers" class="no-underline f1 fw2 blue3 underline-hover">Developers<!-- -->,</a> </span><span><a href="/tag/developer-platform" class="no-underline f1 fw2 blue3 underline-hover">Developer Platform</a> </span></div></article></div><!--astro:end--></astro-island><footer class="pt4 pb4 pl1 pr1 main-footer"><div class="mw8 center dn db-l ph3"><div class="flex flex-row justify-between"><div class="main-footer__menu-group"><ul id="getting-started-menu" class="list pl0"><li class="pt1 pb1 f1 main-footer__menu-group__header js-toggle-footer-group" data-submenu="getting-started-menu">Getting Started<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/plans/free/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="free-plans" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Free plans</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/enterprise/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="enterprise" class="f1 blue3 no-underline underline-hover" rel="noreferrer">For enterprises</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/plans/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="compare-plans" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Compare plans</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/about-your-website/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="get-a-recommendation" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Get a recommendation</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/plans/enterprise/demo/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="request-a-demo" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Request a demo</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/plans/enterprise/contact/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="contact-sales" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Contact Sales</a></li></ul></div><div class="main-footer__menu-group"><ul id="company-menu" class="list pl0"><li class="pt1 pb1 f1" data-submenu="company-menu">Resources<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/learning/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="learning-center" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Learning Center</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/analysts/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="analysts-report" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Analyst reports</a></li><li class="pt1 pb1"><a href="https://radar.cloudflare.com/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="overview" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Cloudflare Radar</a></li><li class="pt1 pb1"><a href="https://cloudflare.tv/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="tv" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Cloudflare TV</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/case-studies/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="case-studies" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Case Studies</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/resource-hub/?resourcetype=Webinar" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="webinars" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Webinars</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/resource-hub/?resourcetype=Whitepaper" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="white-papers" class="f1 blue3 no-underline underline-hover" rel="noreferrer">White Papers</a></li><li class="pt1 pb1"><a href="https://developers.cloudflare.com" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="developer-docs" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Developer docs</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/the-net/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="theNet" class="f1 blue3 no-underline underline-hover" rel="noreferrer">theNet</a></li></ul></div><div class="main-footer__menu-group"><ul id="sales-menu" class="list pl0"><li class="pt1 pb1 f1 main-footer__menu-group__header js-toggle-footer-group" data-submenu="sales-menu">Solutions<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/connectivity-cloud/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="connectivity-cloud" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Connectivity cloud</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/zero-trust/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="zero-trust" class="f1 blue3 no-underline underline-hover" rel="noreferrer">SSE and SASE services</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/application-services/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="application-services" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Application services</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/network-services/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="network-services" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Network services</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/developer-platform/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="developer-services" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Developer services</a></li></ul></div><div class="main-footer__menu-group"><ul id="community-menu" class="list pl0"><li class="pt1 pb1 f1 main-footer__menu-group__header js-toggle-footer-group" data-submenu="community-menu">Community<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://community.cloudflare.com" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="community_hub" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Community Hub</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/galileo/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="galileo" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Project Galileo</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/athenian/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="athenian" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Athenian Project</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/campaigns/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="cloudflare-for-campaigns" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Cloudflare for Campaigns</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/partners/technology-partners/cidp/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="critical-infrastructure-defense-project" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Critical Infrastructure Defense Project</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/connect2024/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="connect-2024" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Connect 2024</a></li></ul></div><div class="main-footer__menu-group"><ul id="support-menu" class="list pl0"><li class="pt1 pb1 f1 main-footer__menu-group__header js-toggle-footer-group" data-submenu="support-menu">Support<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://support.cloudflare.com" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="help-center" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Help center</a></li><li class="pt1 pb1"><a href="https://www.cloudflarestatus.com" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="status" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Cloudflare Status</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/compliance/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="compliance" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Compliance</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/gdpr/introduction/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="gdpr" class="f1 blue3 no-underline underline-hover" rel="noreferrer">GDPR</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/trust-hub/abuse-approach/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="trust-and-safety" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Trust &amp; Safety</a></li></ul></div><div class="main-footer__menu-group"><ul id="company-menu" class="list pl0"><li class="pt1 pb1 f1 main-footer__menu-group__header js-toggle-footer-group" data-submenu="company-menu">Company<i class="icon-caret-down"></i></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/about-overview/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="overview" class="f1 blue3 no-underline underline-hover" rel="noreferrer">About Cloudflare</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/people/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="our_team" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Our team</a></li><li class="pt1 pb1"><a href="https://cloudflare.net/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="investor-relations" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Investor relations</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/press/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="press" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Press</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/careers/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="careers" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Careers</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/diversity-equity-and-inclusion/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="diversity-equity-inclusion" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Diversity, equity &amp; inclusion</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/impact/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="impact-ESG" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Impact/ESG</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/network/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="network_map" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Network Map</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/press-kit/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="press-kit" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Logos &amp; press kit</a></li><li class="pt1 pb1"><a href="https://www.cloudflare.com/partners/" target="_blank" data-tracking-category="footer" data-tracking-action="click" data-tracking-label="partners" class="f1 blue3 no-underline underline-hover" rel="noreferrer">Become a partner</a></li></ul></div></div></div><div class="mw8 center ph3"><div class="flex flex-row flex-wrap justify-center md:justify-between items-center pt4"><div class="flex flex-row space-x-4 items-start w-25-l pb4 pb0-l"><a target="_blank" rel="noreferrer" href="https://www.facebook.com/Cloudflare/" class="w-8"><img class="w-8" src="https://www.cloudflare.com/img/footer/facebook.svg" alt="facebook"/></a><a target=" _blank" rel="noreferrer" href="https://x.com/Cloudflare" class="w-8"><img class="w-8" src="https://www.cloudflare.com/img/footer/twitter.svg" alt="X"/></a><a target="_blank" rel="noreferrer" href="https://www.linkedin.com/company/cloudflare" class="w-8"><img class="w-8" src="https://www.cloudflare.com/img/footer/linkedin.svg" alt="linkedin"/></a><a target="_blank" rel="noreferrer" href="https://www.youtube.com/cloudflare" class="w-8"><img class="w-8" src="https://www.cloudflare.com/img/footer/youtube.svg" alt="youtube"/></a><a target="_blank" rel="noreferrer" href="https://www.instagram.com/cloudflare" class="w-8"><img class="w-8" src="https://www.cloudflare.com/img/footer/instagram.svg" alt="instagram"/></a></div><div class="w-70-l tr-l tl-ns"><div><span class="main-footer__copyright f1">© <!-- -->2024<!-- --> Cloudflare, Inc.<!-- --> </span><span class="main-footer__copyright f1">|</span><a href="https://www.cloudflare.com/privacypolicy/" target="_blank" class="main-footer__copyright f1 no-underline underline-hover" rel="noreferrer"> <!-- -->Privacy Policy<!-- --> </a><span class="main-footer__copyright f1">|</span><a href="https://www.cloudflare.com/website-terms/" target="_blank" class="main-footer__copyright f1 no-underline underline-hover" rel="noreferrer"> <!-- -->Terms of Use<!-- --> </a><span class="main-footer__copyright f1">|</span><a href="https://www.cloudflare.com/disclosure/" target="_blank" class="main-footer__copyright f1 no-underline underline-hover" rel="noreferrer"> <!-- -->Report Security Issues<!-- --> </a><span class="main-footer__copyright f1">|</span><img class="mw2 ph1" src="/images/privacy-options.svg" alt="Privacy Options"/><a href="#cookie-settings" id="ot-sdk-btn" class="ot-sdk-show-settings main-footer__copyright f1 no-underline underline-hover"><span class="brandGray5">Cookie Preferences</span> </a><span class="main-footer__copyright f1">|</span><a href="https://www.cloudflare.com/trademark/" target="_blank" class="main-footer__copyright f1 no-underline underline-hover" rel="noreferrer"> <!-- -->Trademark<!-- --> </a></div></div></div></div></footer></html>

Pages: 1 2 3 4 5 6 7 8 9 10