Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

Cloudflare for Developers: What It's Great At, Where It Bites, and How to Actually Use It

Cloudflare is best understood not as "a CDN" but as a programmable network that sits between your users and your origin, plus a growing platform for running code and storing data at the edge. For most developers the wins are real and immediate — free TLS, a fast global CDN, DNS you don't have to babysit, and a serverless runtime with almost no cold start. The catches are just as real: the Workers…

Cloudflare is not merely a CDN, but a programmable network that resides between users and origin, providing an edge platform for executing code and storing data. For developers, the benefits are immediate with free TLS, a fast global CDN, DNS management, and a serverless runtime. However, there are trade-offs. The Workers runtime does not support Node.js, CPU time per request is limited, and newer data products are still maturing. Additionally, aggressive defaults may lead to caching or blocking unintended content.

Cloudflare's free tier is remarkably generous, making it an attractive choice for side projects. Setting up a site is as simple as pointing domain nameservers at Cloudflare, changing a record to "proxied," and your site becomes part of their network within minutes. This is complemented by the developer platform which includes Workers (edge functions), Pages (static site hosting), R2 (object storage), and KV (edge key-value store).

However, Cloudflare has its drawbacks. Workers does not run Node.js, so libraries that rely on Node's full API may not work. CPU time for requests is bounded, and heavy computations can hit a limit. Newer data products like D1 and Durable Objects are less battle-tested than traditional databases, and their models may require a shift in mindset. Cloudflare's aggressive caching settings can serve stale content or cache dynamic data, and there's a risk of experiencing service disruptions if Cloudflare has issues.

When deciding between Cloudflare's compute options and a traditional server, consider the nature of your work. For small, stateless, latency-sensitive tasks, Workers are ideal. For larger, more complex applications requiring full Node.js or heavy computations, a traditional server is preferable. Static/JAMstack sites can be hosted with Pages, while large file downloads and storage benefit from R2.

For simple relational data in an edge app, D1 is a good choice, while Durable Objects provide strong consistency for coordinated state. However, it's crucial to test new edge functions before relying on them due to their distinct implementation and potential for unexpected behavior.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Ed25519 vs ECDSA: Why the Nonce Decides Everything

ECDSA and Ed25519 both sign data with elliptic curves, and both produce a 64-byte signature that verifies in a fraction of a millisecond.

  • ECDSA and Ed25519 use elliptic curves for data signing with 64-byte signatures.
  • Ed25519 automatically computes unique nonce, unlike ECDSA's random k per signature.
  • Sony's PS3 and Android's SecureRandom failures highlight nonce's critical role in ECDSA security.

More from Friday 7 August →