How do Cloudflare Workers work?
Cloudflare describes Workers as "a serverless platform for building, deploying, and scaling apps across Cloudflare's global network". You write a function, deploy it to Cloudflare, and it runs in the Cloudflare location closest to each visitor.
A Worker can answer a request on its own, change it, or pass it to your origin server. There is no server for you to manage, but there are limits on how long each request may run and on what the code can reach.
Cloudflare has a free Workers plan and paid plans; see Cloudflare's Workers pricing page for current prices.
Why do Cloudflare Workers matter for your website?
Workers are useful for small jobs at the edge: a redirect map, an A/B test split, extra security headers or a light API. They are not a replacement for a full WordPress, Laravel or Node.js app, which needs a server, a database and files that stay put.
Most sites end up with both: the app runs on a server, and Cloudflare sits in front of it.
Does xCloud support Cloudflare Workers?
No. xCloud does not deploy or manage Cloudflare Workers. If you use Workers, you manage them in your own Cloudflare account, next to the site xCloud hosts.
What xCloud does offer at the edge is Cloudflare Enterprise for $5 per domain per month, with no Cloudflare account and no nameserver change, and the free Cloudflare integration for DNS, origin certificates, the edge page cache and WAF rules.
Building a Node.js app? xCloud runs it on a server with Git deploys: see Node.js hosting. A framework build set to output a Cloudflare Worker will not run on Node, so build it for Node instead.
Host your sites on xCloud
Managed servers on your own cloud account, with Cloudflare and security tools in one dashboard.
Frequently asked questions
Can I deploy Cloudflare Workers from xCloud?
No. xCloud does not deploy or manage Cloudflare Workers. You can run Workers from your own Cloudflare account in front of a site hosted on xCloud.
Are Cloudflare Workers the same as a CDN?
No. A CDN keeps copies of your content close to visitors. Workers run your own code at the edge. Both run on Cloudflare's network, but they do different jobs.
Do I need Workers to put Cloudflare in front of my xCloud site?
No. Connect your Cloudflare account or add the Cloudflare Enterprise add-on. Caching, the WAF and DDoS protection work without writing any Worker code.