It can become hard to find the actual program logic in all that error recovery code.
在大量错误复原代码中,很难发现实际的程序逻辑。
Maybe you can avoid editing scripts to run on the primary versus the disaster recovery site and simply add code to the scripts so that they detect where they are running.
还可以避免编辑在主站点和灾难恢复站点上运行的脚本,只需在脚本中添加代码,让脚本能够探测运行它们的位置。
Transactions enable us to delegate many elements of exception handling and recovery to the TPM and the RMs, simplifying our code and freeing us to think about application logic instead.
事务使我们能够将很多异常处理和恢复工作委托给 TPM 和 RM,从而简化了我们的代码,并使我们能够空出更多时间来考虑应用程序逻辑。
应用推荐