How long should we wait if app encounter 500 error?
You should implement some sort of exponential backoff.