weixin_33712987 2011-03-10 22:59 采纳率: 0%
浏览 14

Ajax Web服务架构

What is the difference between:

  1. Using ajax to call web services directly and rendered the result into the html, and
  2. Using ajax to call a local proxy and let the local proxy to call web services?
  • 写回答

2条回答 默认 最新

  • 10.24 2011-03-10 23:16
    关注

    the biggest difference is database transactions. if your web service layer is orthogonal and fine-grained and common use-cases require multiple calls. often you want to bundle more than one call into a single atomic database transaction: e. g. (debit account A, credit account B).

    to do this you must use a local proxy because you cannot demarcate transactions on the client.

    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容