System Design · Junior · Question 35 of 75
What is an optimistic UI update?
- ✓Correct answer: Showing the result immediately, before the server responds, with rollback
- 2Hiding errors from the user so as not to spoil the experience
- 3Loading all data in advance in the hope it will be needed
Explanation
A like, checking off a task or sending a message feel instant. If the server returns an error, the state is rolled back and the user is notified. It suits actions with a high chance of success.