/plushcap/analysis/cloudflare/serverless-rendering-with-cloudflare-workers

Serverless Rendering with Cloudflare Workers

What's this blog post about?

The text discusses how to use Cloudflare's Workers platform for server-side rendering of web pages at the network edge. It explains the history of web page development and how server-side rendering can improve SEO rankings, cacheability, and user experience. The author then demonstrates building a dynamic web page using Cloudflare Workers Sites, Wrangler, HTMLRewriter, and other tools from the broader Workers platform. They provide an example of Peer With Cloudflare (PWC), which is a user-maintained public database of networks, exchanges, facilities, and interconnection on the Internet. The PWC application uses the PeeringDB API to query live information on facilities and exchange points from multiple ASNs, compares the resulting networks, and lists shared exchanges and facilities. The author also explains how to use Handlebars templating language with HTMLRewriter for dynamic transformation of responses before returning them to users. Finally, they discuss caching at the edge using Cloudflare's Cache API.

Company
Cloudflare

Date published
July 17, 2020

Author(s)
Kabir Sikand

Word count
2775

Hacker News points
7

Language
English


By Matt Makai. 2021-2024.