×

Methods, apparatus and computer programs for managing persistence

  • US 10,528,405 B2
  • Filed: 08/17/2016
  • Issued: 01/07/2020
  • Est. Priority Date: 07/01/2006
  • Status: Active Grant
First Claim
Patent Images

1. A data processing apparatus comprising:

  • a processor;

    a volatile data store;

    a non-volatile data store;

    a persistence manager for managing saving of data to the non-volatile data store, wherein the persistence manager includes means for evaluating a′

    least one criterion of a set of criteria, the set of criteria representing costs of saving and risks associated with not saving data to the non-volatile data store, to determine whether a data update held in the volatile data store requires saving to the non-volatile data store; and

    ,a messaging manager, wherein the persistence manager includes functions for;

    evaluating at least one criterion of a set of criteria, the set of criteria representing costs of saving and risks associated with not saving data relating to a message to the non-volatile data store, during handling of the message by the messaging manager, to determine whether to save a data update to the persistent storage, the evaluating including receiving a value representing a number of messages read from a queue per second, and applying an exponential smoothing algorithm to the value representing the number of messages read from the queue per second to generate a message processing rate value;

    determining from said evaluation whether to save the data relating to the message to the non-volatile data store;

    in response to a positive determination, initiating a save of the data relating to the message to the non-volatile data store;

    in response to determining that the data update should not be saved to the persistent storage, setting, by the persistence manager, a timer for a next evaluation;

    determining, by the persistence manager, whether to save the data update to the persistent storage based upon evaluating the at least one criterion of the set of criteria at an end of a set time period resulting from an expiration of the timer; and

    ,saving the data update to the persistent storage upon a determination to save the data update to the persistent storage.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×