Announcing Edge Flags
Blog post from Upstash
Upstash has introduced a public beta release of their new feature flagging library, @upstash/edge-flags, designed to operate at the edge and integrate seamlessly with Next.js and Vercel. This library utilizes Upstash Redis, a serverless Redis service, to manage feature flag configurations, allowing developers to dynamically toggle app features without redeployment, which is particularly useful for A/B testing and gradual feature rollouts. The library includes a console for managing flags and a TypeScript SDK for implementation, with features like percentage-based rollouts and user-specific targeting rules. Installation involves setting up a Redis database, configuring an edge function, and using the useFlag hook in the frontend. The service is free except for the database usage, with a free tier offering up to 10,000 requests daily. The team plans to expand framework support and enhance caching strategies, seeking user feedback during the beta phase.