在分隔的环境中,如果一台服务器失效,仍然可以继续并连接第二台服务器上的另一个实例。
With separated environments, if one server goes down, the other instance on the second server can still be up and connected.
如果这是一个真实应用程序,您可能会分隔数据库连接脚本和其余部分,并在您的查询中进行各种数据验证。
If this were a real application, you'd probably separate the database connection script from the rest of it and do all kinds of data validation within your query.
可以从一个相当精细的级别开始:确保查询不会跨解决方案重用的配置,或者确保在解决方案之间使用分隔的连接池的配置。
This begins at a rather fine-grained level: configurations that ensure queues are not reused across solutions, or configurations that ensure separate connection pools are used between solutions.
应用推荐