One client is classifying images at the edge and enriching it with metadata. Cloudfare Workers could also be used for facial recognition in devices such as smart TVs.
C.J. SilverioCTO, NPM
A more programmable edge
"Effective use of a CDN is how we satisfy that load," Silverio said.
"Effective use of Fastly has been key to us," Silverio said. "One of the reasons we are moving to Cloudflare is we need to make use of CDNs more than before to keep up with the growth, and I need to be more clever at the edges."
Programmability at the edge has been important for NPM. The use of VCL allowed NPM to perform tasks like matching on URLs and then requesting data from various back-end services. It also made it possible to make multiple requests and decorate these with headers before sending them off to the back-end servers to be fulfilled. To Silverio, VCL was a little clunky.
At NPM, they use needle, a lean HTTP client, to cache and build the page on the fly from disparate data sources in Cloudflare Workers. They can also cache the different elements of a webpage separately and apply different caching policies. This makes the user experience faster.