Microsoft | System Design | Design for undo/redo operations

Assume an app has a data model which can be modified through commands. The app supports n commands. Out of these n commands, k commands can be executed locally while the rest of the commands by a service. Actions performed by the user get mapped to a sequence of commands. Design a system for undo/redo operation for actions performed by a user.

Comments (2)