Energy Patterns for Mobile Apps

← show all patterns

Dynamic Retry Delay

Dynamic Retry Delay

Whenever an attempt to access a resource has failed, increase the interval of time waited before asking access to that same resource.

Context

The mobile app has some features that require collecting data from other resources (e.g., update information from server). However, in same cases if the resource is unavailable, the app will unnecessarily try to connect the resource for a number of times, leading to unnecessary power consumption.

Solution

Increase update interval after each failed connection. It can be either a linear or exponential growth. Update interval can be reset upon a successful connection or a given change in the context (e.g., network status)).

Occurrences

Android

Issues
Pull Requests
No pull requests.
Commits

iOS

Issues
No issues.
Pull Requests
Commits