Not all, “Focus on your code, we got the rest,” solutions are the same. Discover the difference between Koyeb and Cloudflare Workers with this (not so) vendor-neutral comparison and see how Koyeb is revolutionizing serverless.
Serverless providers claim “Write your code, and push it on our serverless platform”, but are all platforms equal? Platforms are purposefully designed and optimized to run different types of workloads. While some are built to support small, short-lived, functions, others are created to support larger workloads including full-fledged containers.
Cloudflare Workers is great for small functions that will perform fast by running at Edge, such as functions that customize content for end-users depending on their locations. However, due to Cloudflare Workers' limitations that we will cover below, you cannot run everything there.
Koyeb is great for full-stack applications: web applications, microservices, APIs, cron jobs, and more. We created this page to illustrate the differences between Koyeb and Cloudflare Workers and ultimately help you decide if Koyeb is the best fit for your workload. If you want to run more than a function @Edge, then we think you should give Koyeb a test drive.
To learn more about using functions and containers in your deployment strategy, check out our post Cloud Computing and Serverless Architectures: What are FaaS and CaaS?
Types of services: Koyeb allows you to deploy and run web apps, APIs, event-driven functions, workers, and cron jobs. Cloudflare Workers can be used to host functions at Edge and cron jobs.
CI/CD: Koyeb automatically builds and deploys your app each time you git push with native continuous deployment and continuous integration features. As for Cloudflare Workers, CI/CD is not built-in to the technology, you'll need to use a third-party tool.
Private network, service mesh and service discovery: Koyeb automatically provides each application a secure private network that comes with built-in service discovery and service mesh. All services are automatically load-balanced and reachable through a dedicated DNS entry and the built-in service mesh enables secure inter-service communication. Cloudflare Workers do not run in a private network with a service mesh or service discovery. Moreover, communication between Workers is not possible if the Workers are in different zones.
Computing power: Cloudflare Workers' limits CPU time to 10ms per request on the free plan and at 30s with a paid plan. Koyeb is more flexible as there is no CPU time limit per request. On Koyeb, you can have up to 16 High-End vCPU per request, while you have no control on Cloudflare Workers.
Memory: Cloudfare Workers' memory is fixed at 128MB. If Cloudflare Workers receive requests that require more than this limit, requests will be canceled. In contrast, Koyeb can sustain large memory requirements, and you can decide how much RAM you need for your workloads. Koyeb offers up to 16GB of RAM for each request and we can even provide more RAM for large workloads.
SSD Storage: Cloudflare Workers doesn't provide local SSD storage for file processing. On Koyeb you can get up to 160GB of high-performance local SSD storage for temporary caching or file processing purposes.
Autohealing: Koyeb offers built-in TCP health checks on all applications you deploy. The platform also lets you define additional HTTP health checks to ensure your applications are running properly, and automatically respawn them if they become unresponsive. On the other hand, troubleshooting an unhealthy application is your responsibility with Cloudflare Workers.
Autoscaling: Koyeb and Cloudflare Workers are both serverless: auto-scaling and load balancing are built-in, and you don't pay for capacity you don’t need. Traffic is automatically routed and load-balanced across servers. Sleep well as your code scales effortlessly.
Global edge network: Global edge networks deliver content to users across the globe with low latency by serving content that is cached at edge locations. Koyeb’s global edge network provides native load-balancing, TLS encryption, and caching. Both Cloudflare Workers and Koyeb run global edge networks.
The Koyeb Serverless Engine runs directly on top of high-end bare metal servers and uses the latest generations of Intel and AMD high-end CPUs. All workloads on Koyeb are transparently deployed in MicroVMs thanks to the lightweight virtualization provided by Firecracker.
From container orchestration with Nomad to Firecracker lightweight virtualization and Kuma for service mesh control planes, Koyeb was purpose-built to run serverless workloads. Learn more about the technologies powering Koyeb with The Koyeb Serverless Engine: from Kubernetes to Nomad, Firecracker, and Kuma.
Security: While Cloudflare isolates workloads using V8 isolates, Koyeb runs containerized workloads in secure Firecracker MicroVMs. Koyeb’s isolation technology with Firecracker provides strong security and runs workloads on high-performing bare metal machines.
Regional deployment control: On Koyeb, you can control in which regions your code runs. Cloudflare Workers does not let you choose or exclude regions which can be a severe issue for compliance.
Timeouts and limitations: Cloudflare Workers has a timeout of 50 ms with a 30-second duration for additional compute time on the paid plan. Workers are built for function-like workloads, so workers should execute within that time limit. In comparison, workloads on Koyeb can have long operations running in the background, meaning your code can do whatever it needs to do, say calculate something for 30 minutes, and it will not time out.
Cloudflare Workers: For those using the free plan, there are Cloudflare Workers community channels. Paid tiers provide the option to submit support tickets, while paying for business & enterprise plans enable the possibility to chat with CloudFlare engineers.
Koyeb: All Koyeb users can join the Koyeb community to exchange directly with other users and the Koyeb team. Koyeb offers an email contact and 99.9% uptime SLA with its Start-Up plan and 24x7x365 support with its Enterprise plan.
Koyeb and Cloudflare Workers' prices are expressed in different ways:
|Requests||Per request limit||CPU|
|Cloudflare Workers||100,000 / day||10 ms CPU time limit||128MB RAM|
|Koyeb||Unlimited||Up to 120 sec||Up to 2 CPU|
|Key limitations||Cloudflare Workers' free plan||Koyeb's free plan|
|Number of subrequests||50||Unlimited|
|Number of Scripts/Services||30 scripts||32 services (2 Apps with up to 16 Services each)|
While Cloudflare gatekeeps certain features or imposes limits across paid tiers, all of Koyeb's native features are included whether using the free or a paid tier.
For production usage, Koyeb and Cloudflare offerings are significantly different:
We will focus on:
|Cloudflare Workers - Unbound Plan||Koyeb|
|Requests||$0.15 / million||Included|
|Duration||$12.50 / million GB-s||$4 / million GB-s|
|Network Bandwidth||"Normal" traffic according to ToS||$0.04/GB for outbound traffic|
Koyeb provides a variety of instance sizes with different CPU, RAM, and SSD allocations, so you can select and optimize computing resources for your workloads. This option does not exist with Cloudflare workers as all Cloudflare Workers are limited to 128 MB of memory.
We built Koyeb to provide developers with the fastest way to deploy their apps globally. The built-in features we provide aim to create a true serverless experience that powers the necessary underlying infrastructure of your apps and speeds up the time between a feature idea and its reality.
Join us on our community platform to let us know if you think something is missing in this comparison or if you think there is an error in our side of the story!