Throttling sending notifications

Notifications sent by PubSub component may be sent in large batches, if you have a nodes with a lot of subscribers. In those cases, it is useful to throttle publications to improve behaviour and performance of other parts of Tigase XMPP Server.

To achieve that, PubSub throttles generate notifications to specified throughput. By default it is set to 5k packets for each CPU core available per second.

To set it to a different value, you can set limit property of publishExecutor bean to the expected number of publications per second, ie. 100000;

Note

This value is a number of total throughput, and will not be adjusted by the number of available CPU cores.

pubsub () {
    publishExecutor () {
        limit = 10000
    }
}