I have a requirement to implement a functionality to Apply configuration for the software and in case of failure it should restore to old configuration. These operation should be a transaction means apply should be pass or fail. Apply and Restore has certain steps. We also need to save the state of the Apply configuration transaction.
Apply : Backup old config, copy new file, start service
Restore: Copy old config, start service
Which design pattern should be used for this scenario ?
Aucun commentaire:
Enregistrer un commentaire