Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network failures when offline mode + too many requests #54

Closed
lucasiturbide opened this issue Mar 4, 2024 · 2 comments
Closed

Network failures when offline mode + too many requests #54

lucasiturbide opened this issue Mar 4, 2024 · 2 comments

Comments

@lucasiturbide
Copy link

I am looking at the network failures in my analytics for my app, and I see a lot of request being done for the Experiments API, I would say unnecessary calls.
My first item is that the API keeps counting how many API requests missed when the app is in background, and when I open the app again, all those missed API calls (which is to fetch the Feature Flags and variants) are fired at the same time, meaning you can have the app in background for 4 hours, and if you have the pollOnStart enabled (which is by default), it would do (4 times 60 minutes/ hour) 240 requests all at once.
The second is that the polling is done 1 time per minute, which seems a bit too much to fetch something that will not change much in that period of time, and I don't see a configuration setting that could change the polling intervals.

@tyiuhc
Copy link
Collaborator

tyiuhc commented Mar 6, 2024

Hi @lucasiturbide, many thanks for raising this issue. If local evaluation is not being used, then pollOnStart can be set to false. Additionally, stop() can be called to stop the poller when the app is in the background.

The request for more control over fetching flag configurations is recognized and we have added it to our enhancements backlog.

@bgiori
Copy link
Collaborator

bgiori commented Aug 20, 2024

closing for inactivity

@bgiori bgiori closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants