Tech

Cloudflare launches Flagship feature flag service for developer control

The San Francisco-based provider introduces Flagship, a service enabling percentage-based rollouts and complex targeting rules via its global key-value infrastructure.

Author
Owen Mercer
Markets and Finance Editor
Published
Draft
Source: Hacker News · original
Tech
No image available
New tool integrates with Workers and OpenStandard to manage visibility without redeployment

Cloudflare has introduced Flagship, a new feature flag service designed to allow developers to control feature visibility in applications without the need to redeploy code. The announcement marks a strategic expansion of the company’s developer tools, offering a native integration with Cloudflare Workers and compatibility with the CNCF OpenFeature standard. This alignment ensures that the service can be utilised across various JavaScript runtimes, including Node.js and web browsers, providing a unified approach to feature management.

The core function of Flagship is to decouple feature visibility from code deployment cycles. By leveraging Cloudflare’s global key-value data storage infrastructure, the service delivers flag configurations directly to applications. Developers can define flags with specific targeting rules and percentage-based rollouts, evaluating them directly within the Workers runtime through a native binding. This architecture allows for type-safe methods with automatic fallback to defaults, streamlining the evaluation process for serverless applications built on Cloudflare’s global network.

Flagship supports sophisticated targeting capabilities, including rules based on user attributes that utilise 11 comparison operators, logical AND/OR grouping, and sequential evaluation. For gradual releases, the service employs consistent hashing to ensure that the same user consistently receives the same flag value during percentage-based rollouts. This technical approach mitigates the risk of inconsistent user experiences during phased deployments, a critical requirement for maintaining stability in production environments.

The service accommodates a range of data types for flag variations, including booleans, strings, numbers, and structured JSON objects. The ability to deliver entire configuration blocks as a single JSON object flag allows developers to manage complex settings efficiently. Configuration is managed through the Cloudflare dashboard, where flags can be organised into apps that map to specific projects or services, providing a structured interface for oversight and management.

Compatibility with the OpenFeature standard is a key component of the offering, enabling the use of the @cloudflare/flagship SDK across different environments. This standardisation allows developers to swap providers by changing a single line of configuration, reducing vendor lock-in and simplifying the integration of feature flagging into diverse development workflows. The service is available for immediate use, with documentation guiding developers through the creation of their first feature flags.

Cloudflare has positioned Flagship as a tool to enhance the safety and flexibility of software delivery. By integrating directly with the Workers platform and utilising its global infrastructure, the service aims to reduce the operational overhead associated with feature management. The launch provides developers with a robust mechanism to test, roll out, and manage features in real-time, supporting the broader ecosystem of serverless and edge computing applications.

Continue reading

More from Tech

Read next: Erin Brockovich launches digital tool to map US data centres
Read next: Pangram analysis flags AI-generated text in Pope Leo XIV’s first encyclical
Read next: UK Visa Portal data leak exposes 100,000 applicants’ documents; company cites legal counsel