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

Point-to-point (P2P)

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jms used for?

495


What is the difference between jms and kafka?

475


What is the jms client?

512


What is queue connection factory?

442


What is a topic?

507






How do I configure jdbc so that the jms jdbc store recovers automatically?

495


What is mean by jms?

475


What is jms publisher?

450


Mention the difference between durable and non-durable subscription?

462


Is it possible to create both queues and topics to single jms server? if yes then how it works?

1748


Can we send message from one server to another server using jms?

444


What is a topic string?

457


Is jms a message broker?

489


Explain about Connection interface?

494


What is the difference between an sms and text message?

426