Cloudflare 旗舰产品
Cloudflare Flagship

原始链接: https://developers.cloudflare.com/flagship/

Flagship 是 Cloudflare 的功能管理服务,旨在帮助开发者在无需重新部署代码的情况下安全地发布功能。通过目标规则、百分比发布和多类型变体(包括布尔值、字符串和 JSON 对象),它可以实现对功能可见性的精细化控制。 主要功能包括: * **原生 Workers 集成:** 使用高性能绑定直接在 Cloudflare Workers 中评估标记。 * **OpenFeature 兼容性:** 基于 CNCF 的 OpenFeature 标准构建,`@cloudflare/flagship` SDK 支持在 Workers、Node.js 和浏览器环境之间实现无缝切换。 * **目标定位与发布:** 通过一致性哈希实现复杂的发布策略,确保稳定的用户体验。 * **集中式管理:** 通过 Cloudflare 仪表板轻松创建、组织和管理标记。 借助 Cloudflare 的全球基础设施,Flagship 提供了一种可扩展、类型安全的方式,将功能发布与部署周期解耦,从而确保应用开发具有更高的稳定性和灵活性。

Hacker News 新内容 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Cloudflare Flagship (cloudflare.com) 9 分,由 tjek 发布于 55 分钟前 | 隐藏 | 过往 | 收藏 | 2 条评论 帮助 aetherspawn 9 分钟前 | 下一条 [–] Cloudflare 最近势头很猛,只是还缺乏细粒度的权限控制。你仍然必须为生产环境创建一个完全独立的账户,这会搞乱 SSO,因为一个域名只能绑定到一个账户。回复 EFLKumo 35 分钟前 | 上一条 [–] 值得关注的一个 Vercel 等价产品:https://github.com/vercel/flags 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Ship features safely with feature flags.

Flagship is Cloudflare's feature flag service. It lets you control feature visibility in your applications without redeploying code. Define flags with targeting rules and percentage-based rollouts, then evaluate them directly inside your Workers through a native binding.

OpenFeature is the CNCF open standard for feature flag management. Flagship is compatible with OpenFeature, so you can use the @cloudflare/flagship SDK from any JavaScript runtime — Workers, Node.js, or the browser — and swap providers without changing evaluation code.

Check out the Get started guide to create your first feature flag.

Worker binding

Evaluate flags with a native Workers binding. Type-safe methods with automatic fallback to defaults.

Binding reference

OpenFeature SDK

Use the @cloudflare/flagship OpenFeature provider to evaluate flags from Workers, Node.js, or browsers. Switch from another flag provider by changing one line of configuration.

View SDK docs

Targeting rules

Serve different flag values based on user attributes. Rules support 11 comparison operators, logical AND/OR grouping, and sequential evaluation.

Learn about targeting

Percentage rollouts

Gradually release features to a percentage of users. Consistent hashing ensures the same user always receives the same flag value.

Learn about rollouts

Multi-type variations

Flag variations can be booleans, strings, numbers, or structured JSON objects. Use object variations to deliver entire configuration blocks as a single flag.

Use Multi-type variations

Flag management

Create, update, and delete flags through the Cloudflare dashboard. Organize flags into apps that map to your projects or services.

Use Flag management

Workers

Build serverless applications on Cloudflare's global network. Flagship integrates natively with Workers through a binding.

KV

Store key-value data across Cloudflare's global network. Flagship uses this infrastructure to deliver flag configurations.

Developer Discord

Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers.

@CloudflareDev

Follow @CloudflareDev on Twitter to learn about product announcements and what is new in Cloudflare Workers.

联系我们 contact @ memedata.com