原书出处
RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)
07 超媒体工作流
For simple CRUD-style services, implementing an undo is pretty straightforward. You need to implement the service action (e.g., updateCustomer), keep a history of undoable actions in a local durable storage index by an identifier (contextId), and expose your own external action (for example, undoUpdateCustomer that takes the contextId). When implementing your local undo functionality, it is wise to establish a time frame for valid rollbacks.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch07.xhtml
EPUB SHA-256:db552473a29e61f8a9429a17bbb5c0a47985d7cbbfd2d402bce45fc4b11ee389