什么是"特征检举] ;? [英] What is a "feature flag"?

查看:114
本文介绍了什么是"特征检举] ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里Highscalability提到的功能标志:

Highscalability mention feature flags here:

<一个href=\"http://www.iheavy.com/2011/08/26/5-things-are-toxic-to-scalability/\">http://www.iheavy.com/2011/08/26/5-things-are-toxic-to-scalability/

究竟是什么功能标志?

感谢

推荐答案

一个'功能标志(或功能切换)是把你的应用程序的功能(小节)开/关在片刻通知的能力。

A 'feature flag' (or Feature Toggle) is the ability to turn features (sub-sections) of your application on/off at a moments notice.

我想有它的方便有控制,减少功能集有点如果需要,比如说,减少数据库的查询,如果负载过高的例子。

I guess the example there was that it's handy to have the control to reduce the feature-set somewhat if you need to, say, reduce db queries if the load is too high.

等原因堆你会想用这个寿 - 的主要原因之一为使持续交付:事情推到生产/生活又具有直到它完成了功能禁用/翻转。我们经常使用我们所说的'开发的cookie,以显示未完成的功能,仅仅是开发团队。这样我们就可以在生产测试部分完成的工作(哦,叶!有没有更好的融合?)多次发布/部署之前,我们'untoggle(已完成),并将其变为可见向公众开放。

There are heaps of other reasons you would want to use this tho - one of the main being enabling Continuous Delivery: pushing things into production/live yet having the feature disabled/toggled until it's completed. We often use what we call a 'dev cookie' to show uncompleted features to just the dev team. This way we can test partially completed work in production (oh yeh! is there better integration?) over multiple releases/deployments before we 'untoggle' (completed) it and it becomes visible to the public.

下面是一个简单的包,可以帮助你在ASP.NET MVC土地做到这一点: https://github.com/ cottsak / DevCookie (全面披露:我的作者)

Here's a simple package that helps you do this in ASP.NET MVC land: https://github.com/cottsak/DevCookie (full disclosure: I'm the author)

福勒也有一个比上面链接有很多的更多详细信息更长的文章

这篇关于什么是&QUOT;特征检举] ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆