RPC、SOAP、RESTFUL简述
上一篇 /
下一篇 2018-04-13 14:56:20 / 天气: 阴雨
/ 心情: 平静
先说下restful吧,目前在工作中接触的就是restful api了,以它开头,也比较轻松点。说起restful,要先解释下rest,rest并不是一个单词,而是由三个单词缩写而成,即representational state transfer,表现层状态转化。维基百科的解释如下:Representational State Transfer(REST) is asoftware architecture styleconsisting of guidelines and best practices for creatingscalableweb services.中文的意思是rest是软件架构风格,目标是构建可扩展的webservice。而采用rest架构规范的系统称为restful。restful使用http协议进行通讯,并使用http动词get、put、post、delete来收发数据。
另外两种工作上没有接触过,RPC全程称是remote procedure call,远程调用,soap,全称是simple object access protocol,简单对象访问协议,这两个协议加上rest是webservice的三种主流实现方案。
了解不多,就写这么多吧,以后做进一步的补充。
参考:https://blog.csdn.net/zhushuai1221/article/details/52045400
https://www.zhihu.com/question/28557115?sort=created&page=2
收藏
举报
TAG: