假设“Application1”想要对银行系统进行Web服务调用并更新记录。可能存在Http请求成功和Banking数据库以预期方式更新的情况。但响应失败可能是由于可能是通信错误。
Results : As the "Application1" has not received the response, it assumes that DB has not updated.
Possible Solution.
1. There will be a TimeOutException from the "Application1". Then make a DBQuery check the record is updated or not inside the exception block. If it has not re-try it.
1. What happens if all re-tries does not receive the reponse.
2. I see some theories related to Web Service Transaction , Service Ochastration.
Any other better solutions. ?
答案 0 :(得分:0)
更好的解决方案是使用消息传递系统。在您的情况下,WebService在性能方面将是昂贵的。