If a topic publisher sends persistent messages, and there are only non-durable subscribers connected, will the pending messages be lost if EMS server fails and restarts? What will happen if subscribers use FT URLs?

If a topic publisher sends persistent messages, and there are only non-durable subscribers connected, will the pending messages be lost if EMS server fails and restarts? What will happen if subscribers use FT URLs?

book

Article ID: KB0089604

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Messages with the persistent delivery mode are always written to persistent storage, except when they are published to a topic that has no durable subscribers. When a topic has no durable subscribers, there are no subscribers that need messages resent in the event of a server failure. Therefore, messages do not need to be saved.

When subscribers use FT URLs (a comma separated list), the behavior is slightly changed. Indeed, persistent messages are now persisted on disk, even if there are only non-durable subscribers. The reason is that in case of server failure, once the server is restarted and if the EMS clients FT configuration are such that the number of reconnect attempts allowed them to reconnect, the EMS clients have been logically always connected and therefore the server must deliver persistent messages to those subscribers.

Issue/Introduction

If a topic publisher sends persistent messages, and there are only non-durable subscribers connected, will the pending messages be lost if EMS server fails and restarts? What will happen if subscribers use FT URLs?