Cloudflare

Test New Features and Iterate Quickly with Cloudflare Workers

Jun 19, 2018Remy Guercio
Test New Features and Iterate Quickly with Cloudflare Workers
SummaryAI, from the source post

This post introduces techniques for using Cloudflare Workers to implement feature gating and A/B testing. It details how to securely fetch and cache user permissions from an origin endpoint using the `fetch` method with a `cacheTtl`. It provides code examples for restricting access to specific API versions or documentation, implementing A/B testing by assigning users to different groups, and routing requests to different origins based on user permissions. The post also includes notes on caching sensitive objects and securely handling tokens.

More from the Edge Computing with Cloudflare Workers trail