-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust SIRI ServiceBus-client parameters to improve performance
* Move to ServiceBusReceiveMode.RECEIVE_AND_DELETE instead of PEEK_LOCK. In this mode the message is deleted from the subscription as soon as it has been delivered. In case of an error this means that the message is lost but 1) the data is applied to the graph in another thread anyway and 2) there is nothing that indicates that a second attempt on the same message data would be more successful. * Fetch more than one message at a time, greatly improving message throughput even with small values. Roundtrip latency of the message fetching can in some situations otherwise lead to the client falling behind. Add config parameter 'prefetchCount' with a default value of 10 messages. * Lower the AutoDeleteOnIdle of subscriptions from one day to default one hour, still a conservative value. Despite having automatic removal of subscriptions on shutdown, lingering subscriptions may still happen, for example if the JVM dies. Add config parameter 'autoDeleteOnIdle' with a default value of one hour.
- Loading branch information
Johan Torin
committed
Mar 11, 2024
1 parent
0532203
commit 163b0aa
Showing
4 changed files
with
81 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters