MediumScenarioArchitecture, offline and networking scenarios
A token refresh race causes users to be logged out when several requests fail with 401 together. Fix?
What a good answer covers
Serialise refresh behind a single lock or authenticator so one refresh runs, queue other requests until it finishes, then retry them once.
PreviousThe app is killed in the background and users return to a broken screen. What do you check?Next Modularise a 300k-line Android app whose builds take 20 minutes.
More on Architecture, offline and networking scenarios
Flashcards for this topic- HardDesign offline-first sync for a field-sales app where reps edit orders without connectivity for days.
- MediumUsers on rotating screens lose a half-filled form. How do you preserve state?
- HardThe app is killed in the background and users return to a broken screen. What do you check?
- HardModularise a 300k-line Android app whose builds take 20 minutes.