All jobs / Mobile developer / Networking

Mobile developer interview question · 5+ years

The API was down for ten minutes. It fell over again the moment it returned, and the traffic was the app retrying.

What do you change in the client?

The strongest answer

Back off exponentially with jitter so phones do not return in step, cap the attempts, honour a Retry-After when the server sends one, and do not retry what cannot succeed, such as a 400 or a 403

Why it works

Right — jitter is the part people forget, and it is what breaks the synchronised wave the outage created.

What a good answer covers

Answers that fall short

Who gets asked this

More Networking questions