Performance of SOAP vs. XML-RPC or REST

后端 未结 8 531
醉话见心
醉话见心 2020-12-04 11:13

The arguments about the simplicity of solutions using XML-RPC or REST are easy to understand and hard to argue with.

I have often also heard arguments that the incre

相关标签:
8条回答
  • 2020-12-04 12:04

    SOAP is definitely slower. Payloads are significantly larger which are slower to assemble, transport, parse, validate and process.

    0 讨论(0)
  • 2020-12-04 12:05

    I don't know of any answer to the benchmarking question, however, what I do know about the SOAP format is yes, it does have overhead, but that overhead does not increase per request: if you have one element sent to the web service, you have overhead + one element construction, and if you have 1000 elements sent to the web service, you have overhead + 1000 element construction. The overhead occurs as the XML request is formatted for the particular operation, but every individual argument element in the request is formatted the same.

    If you stick to repeatable, short bursts of data (say, 500 elements), the speed should be acceptible.

    0 讨论(0)
提交回复
热议问题