How is the Firebase Remote Config speed limit calculated?

I use Firebase Remote Config to store the secret key for the mobile application (I do not want to include it in the client application due to security problems).

The problem is that I know that retrieving a configuration from the server many times in a short amount of time can cause throttling to be thrown. In the production application, there is a limit of 5 requests per hour, but I do not know if this limit is considered per user or globally.

This is the code I have:

//first search cached result, if present
    String key = FirebaseRemoteConfig.getInstance().getString("key");
    if(key != null && !key.isEmpty()){
        setKeyAndGoHome(key);
    }else {
        //no key present, let fetch it from config
        FirebaseRemoteConfig.getInstance().fetch().addOnCompleteListener(new OnCompleteListener<Void>() {
            @Override
            public void onComplete(@NonNull Task<Void> task) {
                if(task.isSuccessful()){
                    FirebaseRemoteConfig.getInstance().activateFetched();
                    //key is cached 12 hours
                    String key = FirebaseRemoteConfig.getInstance().getString("key");
                    setKeyAndGoHome(key); 
                } else {
                    //this can happen due to a throttling exception
                }

            }
        });
    }

This is very important, because without this key my application cannot work. I need to know if a throttling exclusion condition can be achieved.

Do you know how the limit is calculated?

Thank.

+5
2

. , , . , , , , LAST_FETCH_STATUS_THROTTLED. , .

FirebaseRemoteConfig, , , 5.

"". , FirebaseRemoteConfig , , , .

Remote Config , :

Remote Config . , .

+9

5 . , . Firebase Remote Config Product Manager, 03:50 ., - https://www.youtube.com/watch?v=Vn8X-KQsb6w.

0

All Articles