简体   繁体   English

Firebase 远程配置中的 minimumFetchInterval

[英]minimumFetchInterval in Firebase remote config

I'm using remote config to prompt user for a new update.我正在使用远程配置提示用户进行新的更新。 What should I keep the minimumFetchInterval?我应该保留什么 minimumFetchInterval?

The dilemma is that if I keep this number too low (let's say 5 or 10 seconds), then it would increase the calls to firebase and if I keep it something as 60 minutes, then the update would be delivered late to the user.困境是,如果我将此数字保持得太低(比如说 5 或 10 秒),那么它会增加对 firebase 的调用,如果我将其保持为 60 分钟,那么更新将延迟交付给用户。

Some advice or suggestions would be helpful.一些建议或建议会有所帮助。

From the Firebase documentation on throttling in Remote Config :从 Firebase 文档中关于远程配置中的限制:

The default and recommended production fetch interval for Remote Config is 12 hours远程配置的默认和推荐生产获取间隔为 12 小时

So you should set it to 12 hours in production.因此,您应该在生产中将其设置为 12 小时。

From the same page:从同一页面:

During app development , you might want to refresh the cache very frequently (many times per hour) to let you rapidly iterate as you develop and test your app.在应用程序开发期间,您可能希望非常频繁地刷新缓存(每小时多次),以便在开发和测试应用程序时快速迭代。 To accommodate rapid iteration on a project with numerous developers, you can temporarily add a property with a low minimum fetch interval ( Settings.minimumFetchIntervalMillis ) in your app.为了适应具有众多开发人员的项目的快速迭代,您可以在您的应用程序中临时添加一个具有较低最小获取间隔( Settings.minimumFetchIntervalMillis ) 的属性。

So you can set it much shorter during development, because:因此,您可以在开发过程中将其设置得更短,因为:

Keep in mind that this setting should be used for development only, not for an app running in production.请记住,此设置应仅用于开发,而不应用于在生产中运行的应用程序。 If you're just testing your app with a small 10-person development team, you are unlikely to hit the hourly service-side quota limits .如果您只是在一个 10 人的小型开发团队中测试您的应用程序,那么您不太可能达到每小时服务端配额限制 But if you pushed your app out to thousands of test users with a very low minimum fetch interval, your app would probably hit this quota.但是,如果您以非常低的最小获取间隔将您的应用程序推送给数千名测试用户,您的应用程序可能会达到这个配额。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM