What is the difference between Point to Point and Publish/Subscribe

Point-to-point (P2P)



What is the difference between Point to Point and Publish/Subscribe Point-to-point (P2P)..

Answer / munnu

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 This Answer Correct ?    1 Yes 0 No

Post New Answer

More JMS Interview Questions

What is jms active mq?

0 Answers  


What are the types of communication provided by jms?

0 Answers  


What is poison messages? And how to handle poison messages?

1 Answers  


What are Administered Objects ?

1 Answers  


What is meant by jms?

0 Answers  






Can jms be used to send an email?

0 Answers  


What is the use of connection factory in jms?

0 Answers  


What is JMS API Architecture?

0 Answers  


Which jms standard interface defines the methods to create the different types of messages?

0 Answers  


How to read message from jms queue in java?

0 Answers  


What happens when jms queue is full?

0 Answers  


Which messaging is generally used in cases where a message is published by a producer and consumed by multiple subscribers?

0 Answers  


Categories