java - 关于系统之间的解耦
黄舟
黄舟 2017-04-18 10:30:16
0
1
598

对于系统之间的解耦 好像是有rest webservice 以及 mq 与 rpc,
但是这几个之间,该如何进行选择,他们适用于什么情况下。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
PHPzhong

rest webservice is based on the original http protocol layer and makes full use of existing protocols to schedule and use task resources.

*REST架构让人们真正理解我们的网络协议HTTP本来面貌,对资源的操作包括获取、创建、修改和删除资源的操作正好对应HTTP协议提供的GET、POST、PUT和DELETE方法,因此REST把HTTP对一个URL资源的操作限制在GET、POST、PUT和DELETE这四个之内。这种针对网络应用的设计和开发方式,可以降低开发的复杂性,提高系统的可伸缩性。 引用自: http://www.williamlong.info/archives/1728.html*

rpc usually uses the http layer as the transport layer (most only use post requests), transmits the xml file (defining the request method, content, etc.) to the server, and then returns it from the server. The development of rpc is more difficult and has many specifications.

mq is not on the same level as the above two. mq is more of an asynchronous component to solve the synchronization problem between two systems.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template