Explain Point-to-Point Messaging Domain

The constituents of a point-to-point (PTP) product or application are message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from specific queue(s) . Queues retain all messages sent to them until the messages are consumed or until the messages expire.

So in PTP messaging domain:-
  • Each message has only one consumer.
  • There are no timing dependencies on a sender and a receiver of a message . The receiver can fetch the message oblivious of its availability when the client sent the message.
  • The receiver acknowledges the successful processing of a message.
  • PTP messaging is used when every message sent must be processed successfully by one consumer.



    PTP Messaging Model(Image Source:java.sun.com)

    0 comments :

     

    Disclaimer
    Interview Questions On Java,Java EE Copyright © 2018. Reads: best tracker