Scott Carey
Managing Editor, News

How Cloudflare emerged to take on AWS, Azure, and Google Cloud

feature
Aug 1, 202210 mins
Application SecuritySaaSTechnology Industry

The upstart internet security and edge infrastructure company has reinvented itself to challenge the hyperscale cloud providers. Can it succeed?

data explosion / data streams / volume / velocity
Credit: SPainter VFX / Getty Images

Cloudflare is in the midst of a significant transformation, as it continues to build out the tools developers need to run their applications across a global network of edge locations. Recent moves put the 18-year-old internet security and performance company on a collision course with the industry-dominating hyperscale cloud providers Amazon Web Services, Microsoft Azure, and Google Cloud Platform.

In 2004, Matthew Prince and Lee Hollowayย joined forces onย Project Honeypot, a software project that gave website owners the ability to track, but not combat, email spammers.

michelle zatlyn co founder president coo cloudflare matthew prince co founder ceo cloudflare Cloudflare

Cloudflare cofounders Michelle Zatlyn and Matthew Prince.

By 2009, Princeโ€™s Harvard Business School classmate Michelle Zatlynโ€”who is now president and chief operating officerโ€”took an interest, and started to push Project Honeypot to become a service that didnโ€™t just track malicious activity, but actively helped to stop it. Soon after, the three cofounders raised a Series A funding round from Ray Rothrock at Venrock and Carl Ledbetter at Pelion Venture Partners. Cloudflare was born.

Since then, Cloudflare has expanded its portfolio of internet security and performance products for web administrators, as well as investing in building out an impressive content delivery network (CDN) across 270 cities to help it deliver these services to millions of global customers.

Cloudflare Workers changes the game

Even in the early CDN days, customers immediately started asking for customizations to the platformโ€”a tweak here or there to meet their unique needs. However, offering this level of customization to each and every customer just wasnโ€™t feasible.

โ€œFor the largest customers, we would actually write code and deploy it in cooperation with them,โ€ Cloudflare CTO John Graham-Cumming told InfoWorld. โ€œOf course, that was completely unscalable, you canโ€™t do that for your customers and it was literally in our mainline code, it was really a mess. However, there was a desire to solve that problem in a more scalable way.โ€

By 2017, Cloudflare started looking seriously at the idea of allowing software developers to customize what they were building and running on Cloudflareโ€™s network.

In a 2018 blog post, Cloud Computing without Containers, former engineering manager Zack Bloom set out Cloudflareโ€™s architectural model, which was aimed at allowing customers to run their own untrusted code both securely and at low latency on Cloudflareโ€™s network.

โ€œCloudflare has a cloud computing platform called Workers. Unlike essentially every other cloud computing platform I know of, it doesnโ€™t use containers or virtual machines,โ€ Bloom wrote.

Where running containers orchestrated with Kubernetes across that network would have been prohibitively expensive for Cloudflare, V8 isolatesโ€”i.e., isolated instances of the Google-created V8 JavaScript engineโ€”would allow customers to run their own code at the edge in a safe, sandboxed manner.

โ€œWe started with isolates because they are lightweight, solve the cold-start problem, enable us to scale, and be truly pay-as-you-use,โ€ Aly Cabral, vice president of product at Cloudflare, told InfoWorld. โ€œThose are qualities we are not willing to sacrifice.โ€

These architectural decisions also came with a set of trade-offs.

โ€œNo technology is magical, every transition comes with disadvantages,โ€ Bloom wrote at the time. โ€œIn an isolate universe you have to either write your code in JavaScript (we use a lot of TypeScript), or a language which targets WebAssembly like Go or Rust. If you canโ€™t recompile your processes, you canโ€™t run them in an isolate. This might mean isolate-based serverless is only for newer, more modern, applications in the immediate future.โ€

For Gartner analyst Raj Bala, this still means that โ€œWorkers is not a general-purpose platform,โ€ because โ€œapplications have to fit into a tightly constrained set of criteria to work, such as JavaScript-based functions, with a certain package size and runtime duration.โ€

While targeting JavaScript workloads gave Cloudflare a sizeable beachhead for launching Workers, it also involved betting big on WebAssemblyโ€™s potential to โ€œbe a runtime or a platform with which other languages would operate and get pulled along with it,โ€ Graham-Cumming said.

Shooting for net-new growth

While many customers initially came to Cloudflare Workers to customize things at the edge, โ€œmany of them also started moving bits of their applications into our network,โ€ Graham-Cumming said.

This momentum put Cloudflare into immediate competition with other CDN vendors like Akamai and Fastly. More significantly, it also crossed swords with the hyperscale cloud providers: AWS, Microsoft Azure, and Google Cloud Platform.

While Cloudflare Workers and similar platforms are now firmly on the table for developers when assessing where to run their applications, it is yet to be seen if a mass migration to these platforms is on the horizon.

โ€œThe odds of me moving my application are pretty small, you are shooting for net-new growth,โ€ RedMonk analyst Steve Oโ€™Grady said of Cloudflareโ€™s appeal to enterprise developers.

Take the UK fintech company Moneybox. It doesnโ€™t use Cloudflareโ€™s edge programming tools at present, but it is a longtime customer of Cloudfareโ€™s DNS, firewall, and access control products.

โ€œIt wouldnโ€™t be worth our while to rewrite part of our applications to use Cloudflare,โ€ Jon Leigh, engineering director at Moneybox, told InfoWorld. โ€œIt may be cheap, but the expense of the developer effort wouldnโ€™t even things out.โ€

Expanding Cloudflare Workers

Cloudflare Workers has opened the door to providing software developers with the tools needed to build and run applications across a large global network in a serverless way, essentially outsourcing a bunch of server-related operational tasks for Cloudflare to manage. It also aims to offer speed and price performance to rival competing serverless options, such as AWS Lambda.

โ€œThey may have led the industry in terms of moving from a solution where edge is just delivering static assets, to one where it is important to be able to execute code at the edge,โ€ Andrew Cornwall, senior analyst at Forrester, told InfoWorld. โ€œCloudflare has been in the lead when it comes to companies thinking about enabling edge development and serverless functions.โ€

Cloudflare Workers was soon followed by Cloudflareโ€™s R2 object storage service in 2021, which competes directly with Amazonโ€™s flagship S3 service, with the added bonus of no data egress fees, which are a hot button issue for anyone tasked with keeping their cloud bills down. Cloudflare CEO Matthew Prince has publicly called AWSโ€™s bandwidth charges โ€œegregiousโ€ and โ€œbonkers.โ€

Then came the SQLite-compatible D1 database in May of this year.

โ€œFrankly, with SQL, we went through this brief detour in technology, where there was this NoSQL movement. It was kind of like the โ€˜Okay, Boomerโ€™ moment for data storage, where a SQL database was somehow old fashioned. It turns out that SQL databases are old fashioned, but theyโ€™re also very, very powerful things, and people use them,โ€ Graham-Cumming said.

โ€œI think with D1, you can build a complete database-backed application on Cloudflare today,โ€ he added.

Prioritizingย opinion and simplicity

All of these tools prioritize opinion and simplicity over optionality, as Cloudflare looks to provide a compelling developer alternative to the breadth of options the major cloud providers offer.

โ€œDevelopers felt like they needed to make a choice between something that scales and something that is easy to build, like Heroku did. Our ambition is to remove that choice with easy-to-use abstractions that scale to any need,โ€ Cabral said.

Cabral admires platforms like Vercel and Netlify for being truly developer-first. For Cloudflare to match the ease of use and utility those platforms offer, Cloudflare needs to โ€œmove to any runtime developers want and free them from lock-in.โ€

This is where bets on the WebAssembly ecosystem could prove vital. โ€œWe have an ambition to allow any developer to build on this platform and WebAssembly should help us expand there,โ€ Cabral said. โ€œMeeting developers where they are is a key part of our strategy.โ€

That middle ground could be the key for Cloudflare as this market heats up. โ€œBy offering primitives like storage and database and compute, they are opinionated in how and where they are rolling that out and doing that organically through things they had built,โ€ RedMonkโ€™s Oโ€™Grady said. โ€œDemand for higher-level abstractions will increase and that seems to be the bet that Fastly is making, but not the one that Akamai is making.โ€

Competition at the edge

As Oโ€™Grady hinted, Cloudflare is not alone in these ambitions. Rival CDN provider Akamai has been building out its edge development capabilities, culminating in the $900 million acquisition of cloud hosting company Linode in March. Fastly recently announced the acquisition of the web development community Glitch for similar reasons.

Where Cloudflare stands out from its rival CDN providers is in its ability to roll out homegrown developer tools at pace and respond to customer needs.

โ€œI think Cloudflare is leading the market in terms of the developer experience and they are one of a few companies focused on ensuring developers feel comfortable in their environment,โ€ Forresterโ€™s Cornwall said.

Ghassan Abdo, research vice president for IDCโ€™s worldwide telecom, virtualization, and CDN practice, is less bullish.

โ€œProgrammability of the edge has been there for a while with the CDN, Akamai EdgeWorkers, Amazon CloudFront with Lambda@Edge, or Fastly Varnish, and the recent acquisition of Glitch,โ€ Abdo said. โ€œThat part is not exclusive to Cloudflare. What is, is their ability to look at adjacent market capabilities like D1, R2, and we may see them get into other opportunities.โ€

After largely pioneering the content delivery network, Akamai now calls itself the โ€œworldโ€™s most distributed cloud services provider,โ€ thanks to recent acquisitions and expansion into providing customers with edge compute, security, and delivery capabilities.

โ€œWith the acquisition of Linode, weโ€™ll have core cloud computing capabilities. Thatโ€™s the last big piece, in a sense, because now our customers can build their apps on Akamai, they can run them on Akamai, they can secure them with us, and they can deliver, of course, through Akamai,โ€ Akamai CEO Tom Leighton told industry publication Protocol in June.

Leighton says Akamai already has thousands of customers using its edge computing capabilities today, and speculated that edge computing could become its biggest revenue stream in the next five years, quickly superseding security and delivery.

For Graham-Cumming, this doesnโ€™t come as a surprise. โ€œWe really believe this is the right architecture from the developerโ€™s perspective, so it doesnโ€™t surprise me that other people are doing the same thing,โ€ he said.

Whatโ€™s next for Cloudflare?

Cloudflareโ€™s ambitions donโ€™t stop here. It now wants to enable more developers to use its tools, and also expand the types of applications that can run on its network.

โ€œI think if there is a ceiling, and if we see the ceiling approaching at some point, obviously we would look at how we satisfy the developers who want to build on our platform,โ€ Graham-Cumming said.

This includes applications with unique or extremely large data models and data types, as well as the ability to schedule and queue asynchronous jobs, and offer more intelligent ways to assign compute power.

โ€œI am bullish on what they are doing,โ€ Forresterโ€™s Cornwall said. โ€œBeing able to say โ€˜we can do it cheaper and faster, by being more local to users,โ€™ is a hard pitch to push back against.โ€

Of course, if Cloudflare is to truly change the game, the company will need to convince application developers to change some well-worn habits. Then again, if anyone is used to abandoning old ways in favor of better ways, itโ€™s application developers.