Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JMS%20Interview%20Questions%20and%20Answers

Question: What is the difference between Point to Point and Publish/Subscribe?
Answer: Point-to-point (P2P)
In point-to-point, messages are sent via queues. Messages are put onto the queues by the message producers (the clients). The message consumer is responsible for pulling the message from the queue. Point-to-point is typically used when a given message must be processed (received) only once by a given consumer. In this way, there is only one consumer of the given message.
Publish-and-subscribe (pub/sub)
In publish-and-subscribe, messages are sent through topics. Messages are published to topics by the message producers. The messages may be received by any consumers that subscribe to the given topic. In this way, a message may be received, or processed, by multiple consumers.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook