Java / JMS
Explain Direct and Persistent delivery modes.
Direct messaging is ideal for high-speed applications that can accept occasional message loss. Producers publish messages to a topic, received by event broker and delivered to consumers with matching topic subscriptions. Direct messages are not persisted nor acknowledged when received.
Persistent (Guaranteed) messaging is never lost; it is persisted in the broker's message spool and acknowledged back to the producers. The publishing is guaranteed in this way. Also, the receiving is guaranteed; Messages are delivered to consumers that are bound to the endpoints that have received the guaranteed messages. Those messages are persisted on the event broker until they expire, or the consuming client acknowledges the messages, indicating they have been consumed.
More Related questions...