我们可以在后端使用Firebase远程配置进行特性管理吗?这是否被推荐?

huangapple go评论164阅读模式
英文:

Can we use Firebase remote config for feature management on the backend? Is it recommended?

问题

我正在尝试在部署在AWS Lambda上的NodeJS后端中添加功能切换/管理。有许多功能管理服务,如Unleash和LaunchDarkly,但我发现firebase是它们中最便宜的。但我认为firebase远程配置适用于移动和Web应用程序(基本上是前端),所以是否建议在后端以及在无服务器环境中使用它?firebase-admin确实具有与远程配置相关的功能,但我认为那些功能是用于从您自己的后端控制这些功能,而不是相反。

我已经尝试过一些开源库,我的另一种选择是自己创建功能管理服务。我不需要A/B测试、用户分割或仅对某些用户组可用的功能。我只需要一个简单的功能开关,可以影响系统的所有用户,并且可以使用数据库中的功能标志来实现,但在添加了一堆功能之后,管理将变得困难。

英文:

I am trying to add feature toggle/management in my NodeJS backend deployed on AWS Lambda.There were many feature management services like Unleash and LaunchDarkly but I found firebase was cheapest of them all. But in my opinion firebase remote config is for mobile and web apps (basically frontend), so is it recommended to use it on backend as well and that too in serverless environment? firebase-admin do have remote-config related functions but I think those are for controlling those features from your own backend and not other-way around.

I have tried some open source libraries and my other alternative is creating feature management services myself. I don't need A/B testing, user segregation or features available to a group of users and not for others. I need a simple feature on/off toggle which would affect all the users of the system and that can be done using feature flags in the db but after a bunch of features it would be hard to manage.

答案1

得分: 0

Firebase Remote Config拥有适用于Android、iOS和Web的客户端SDK(用于获取远程值)。它的服务器端SDK/API允许您设置远程值,但不能消耗它们。因此,Firebase Remote Config可能不适合您的用例。

英文:

As you've discovered Firebase Remote Config has client-side SDKs (that consume the remote value) for Android, iOS and Web only. Its server-side SDKs/APIs allow you to set the remote values, but not consume them. So Firebase Remote Config probably won't fit your use-case.

huangapple
  • 本文由 发表于 2023年7月13日 14:19:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76676445.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定