Skip to content
Snippets Groups Projects
  • Richard Mudgett's avatar
    4ad1245c
    stasis cache: Enhance to keep track of an item from different entities. · 4ad1245c
    Richard Mudgett authored
    A stasis cache entry now contains more than a single message/snapshot.  It
    contains messages/snapshots for the local entity as well as any remote
    entities that post to the cached item.  In addition callbacks can be
    supplied when the cache is created to compute and post the aggregate
    message/snapshot representing all entities stored in the cache entry.
    
    * All stasis messages now have an eid to indicate what entity posted it.
    
    * The stasis cache enhancements allow device state to cache and aggregate
    the device states from local and remote entities in a single operation.
    The cached aggregate device state is available immediately after it is
    posted to the stasis bus.  This improves performance by eliminating a
    cache dump and associated ao2 container traversals to calculate the
    aggregate state.
    
    (closes issue ASTERISK-23204)
    Reported by: Mark Michelson
    
    Review: https://reviewboard.asterisk.org/r/3281/
    ........
    
    Merged revisions 410184 from http://svn.asterisk.org/svn/asterisk/branches/12
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    4ad1245c
    History
    stasis cache: Enhance to keep track of an item from different entities.
    Richard Mudgett authored
    A stasis cache entry now contains more than a single message/snapshot.  It
    contains messages/snapshots for the local entity as well as any remote
    entities that post to the cached item.  In addition callbacks can be
    supplied when the cache is created to compute and post the aggregate
    message/snapshot representing all entities stored in the cache entry.
    
    * All stasis messages now have an eid to indicate what entity posted it.
    
    * The stasis cache enhancements allow device state to cache and aggregate
    the device states from local and remote entities in a single operation.
    The cached aggregate device state is available immediately after it is
    posted to the stasis bus.  This improves performance by eliminating a
    cache dump and associated ao2 container traversals to calculate the
    aggregate state.
    
    (closes issue ASTERISK-23204)
    Reported by: Mark Michelson
    
    Review: https://reviewboard.asterisk.org/r/3281/
    ........
    
    Merged revisions 410184 from http://svn.asterisk.org/svn/asterisk/branches/12
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410185 65c4cc65-6c06-0410-ace0-fbb531ad65f3