摘要:
Provided are method, apparatus and computer program product for managing persistence in a messaging network. A determination of whether to save data relating to a message-based communication to persistent storage at a message server is made with reference to characteristics of at least one messaging client involved in the message-based communication. The characteristics may include, for example, connection reliability information for the client's previous connections to the message server, such as numbers of disconnections within a defined period or average connection duration, for a messaging client to which at least one message is to be transmitted by the message server. The characteristics may represent a number of matching subscribers per publication. These and/or other example characteristics may be captured in a database at the message server and may be evaluated (for example by SQL queries applied to the database) to determine whether a persistent save operation is required or can be omitted.
摘要:
Provided are method, apparatus and computer program product for managing persistence within a messaging system. The method includes evaluating the messaging system's exposure to risk of losing messages. Data relating to nominally-persistent messages held in the system is saved to persistent storage if an evaluating step determines that the exposure exceeds at least one risk threshold. This approach enables a reduction in the number of writes to persistent storage compared with conventional systems in which any message that is labeled persistent will be written to disk, since disk writes can be avoided whenever an evaluation determines that the messaging system's exposure to the risk of losing messages is low.
摘要:
Provided are method, apparatus and computer program product for managing persistence in a messaging network. A determination of whether to save data relating to a message-based communication to persistent storage at a message server is made with reference to characteristics of at least one messaging client involved in the message-based communication. The characteristics may include, for example, connection reliability information for the client's previous connections to the message server, such as numbers of disconnections within a defined period or average connection duration, for a messaging client to which at least one message is to be transmitted by the message server. The characteristics may represent a number of matching subscribers per publication. These and/or other example characteristics may be captured in a database at the message server and may be evaluated (for example by SQL queries applied to the database) to determine whether a persistent save operation is required or can be omitted.
摘要:
Provided are method, apparatus and computer program product for managing persistence within a messaging system. The method includes evaluating the messaging system's exposure to risk of losing messages. Data relating to nominally-persistent messages held in the system is saved to persistent storage if an evaluating step determines that the exposure exceeds at least one risk threshold. This approach enables a reduction in the number of writes to persistent storage compared with conventional systems in which any message that is labelled persistent will be written to disk, since disk writes can be avoided whenever an evaluation determines that the messaging system's exposure to the risk of losing messages is low.