RESTful v/s MQ. Differences and other key features apart from Guaranteed Delivery

后端 未结 3 1194
悲哀的现实
悲哀的现实 2021-02-01 03:50

Ok..So I have started studying about MQ and its purpose/usecase etc... My existing application (Web made using JSP etc..) uses RestFUL interface to communicate with a remote ser

3条回答
  •  不要未来只要你来
    2021-02-01 04:42

    Both REST and MQ enable communicate between remote systems (and local).

    In a REST communication the consumer and the REST service provider should be running for a communication to succeed. It is a point to point communication.

    In MQ model the producer and consumer need not be running at the same time. The producers and consumers do not interact directly. The message broker takes care of handling the messages, persisting, it etc. Both point to point and publish-subscribe models are supported. In a publish subscribe model a message can be consumed by more than one consumer.

    These are just some basic points that differentiate them. There are enough posts on SO that talk about REST and MQ.

提交回复
热议问题