Performance of SOAP vs. XML-RPC or REST

后端 未结 8 544
醉话见心
醉话见心 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:00

    I guess the main question here is how compares RPC with SOAP.

    they both serve the same approach of communication abstraction by having stub objects you operate with and primitive/complex data types you get back without really knowing how this all is handled underneath.

    I would always prefer (JSON-)RPC because

    • it's lightweight
    • there are many great implementations for all programming languages out there
    • it's simple to learn/use/create
    • it's fast (especially with JSON)

    although there are reasons you should use SOAP, i.e. if you need naming parameters instead of relying on their correct order

    some more details you get from this stackoverflow question

提交回复
热议问题