TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do you use a feature flag system? What does it look like?

8 点作者 abahlo超过 1 年前
I‘m in the process of setting up feature flags and curious of existing experiences.<p>Which systems worked, which didn’t, and how would you set one up if you were to do so today? Any software you can recommend?

8 条评论

b-rock8超过 1 年前
If you’re interested in a good flag system that’s not LaunchDarkly or Split (which have gotten really expensive) Statsig has a really good offering. Their original thing was analytical feature flags for testing the impact of rollouts, but they basically offer the full suite that the others do.
评论 #39328617 未加载
ayoubElk超过 1 年前
We just integrated launchdarkly recently and I like it, they provide multiple flag types that I haven&#x27;t seen on other services, the main one being migration flags (can be either 2, 4, or 6 step migrations) that allow you to control the migration from one system to the other.<p>It&#x27;s been pretty helpful for us moving our analytics queries from mongoDB to clickhouse.
scrubs超过 1 年前
Feature bits in shared memory and if accessed less frequently in redis is a staple solution. The system I used was managed by an internal group had a solid api, life cycle management, plus propagation of flags wuth defaults. It worked at serious scale. New code could be enabled and disabled independent of code. Removal of code and deletion of old code paths lagged by devs, but on the whole it served custs well.
mejutoco超过 1 年前
If you are at an engineer-driven company a couple of utility functions &quot;if ff_isset(ff_name)&quot; one for backend and one for frontend might be all you need. You select the FF by setting a cookie. You can have a simple dashboard to set them and show the data.<p>Most companies seem to prefer launchdarkly or similar, but I have seen this setup work great at big international websites with loads of traffic.
lgkk超过 1 年前
I’ve used launch darkly and I think it works fine. Pretty good for larger companies imo.<p>For my smaller projects I’ve used simple kv stores and user id lookups to handle it. Works fine.<p>Depends how advanced you want to go honestly. If you want to go bonkers use LD. If you want something simple like literally serve X user Y content you could set something up yourself in 30 minutes.
XCSme超过 1 年前
I have feature flags for the different versions of my product. I can&#x27;t change them live, I do make a build with specific flags enabled based on the env variables set on build (in .env files).<p>I simply use GulpJS with the removeIf plugin, which completely adds&#x2F;removes the code of the feature.
phendrenad2超过 1 年前
No, I just have a big config file and edit it directly. I don&#x27;t have a lengthy build pipeline, so changes take place virtually immediately.
builder555超过 1 年前
Tried feature flags, but it ended up being a mess. Went back to dev&#x2F;master branches with automated tests between them using standard GitHub workflows.
评论 #39328625 未加载