Design Patterns · Senior · Question 35 of 75

How should the UI account for eventual consistency in an event-driven system?

Explanation

After a command is sent, the data in a list may not update immediately. The UI shows a "processing" status, applies an optimistic change and updates it on an event (WebSocket, a refetch) or rolls it back on error.

Further reading

Problem with a question

Design Patterns · Senior · question 35

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz