All Questions
Multi Step Processes easy

A frontend UI needs to show a progress bar for a file upload. If the server doesn't support WebSockets, how can the client update the progress bar?

  1. A Short Polling: Send a request every few seconds to ask 'What is the status?'
  2. B Telepathy.
  3. C Assume it takes 10 seconds and just animate the bar blindly.
  4. D Reload the entire page repeatedly.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions