[asterisk-bugs] [JIRA] (ASTERISK-28195) stasis: Don't create subscription change messages if noone cares
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Wed Dec 5 07:43:47 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245645#comment-245645 ]
Joshua C. Colp commented on ASTERISK-28195:
-------------------------------------------
Ideally whether a topic has any interested subscribers for these messages would be calculated ahead of time so the act of checking whether the messages need to be created is merely looking for a non-zero variable on the topic (to keep that fast).
> stasis: Don't create subscription change messages if noone cares
> ----------------------------------------------------------------
>
> Key: ASTERISK-28195
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28195
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Core/Stasis
> Affects Versions: 13.23.1, 16.0.0
> Reporter: Joshua C. Colp
> Severity: Minor
>
> As part of working on some statistics code I determined that for the most part Stasis messages in Asterisk are actually used - except for one: stasis_subscription_change_type. With filtering now a thing it seems as though about 50% of these messages aren't consumed by any subscriber.
> This change is for making the creation smarter, so we only create those messages if a subscriber is interested in them.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list