AxonFramework / extension-multitenancy

Axon Framework extension providing handles to support multi tenancy with distinct buses and stores per tenant.
Apache License 2.0
11 stars 2 forks source link

[#122] Enable load balancing strategy property configuration #156

Closed smcvb closed 11 months ago

smcvb commented 11 months ago

This pull request introduces logic to the MultiTenantEventProcessorsControlService that checks whether the user has set load-balancing strategy properties in their properties file. This logic, although present in the EventProcessorsControlService it inherits from, needs a rewrite because the multi-tenant variety needs to deal with the fact the processor name and context are concatenated.

Thus, a part of the changes is the mapping from processor name to strategy. The other, larger part, is the actual invocation of the AdminChannel to set the load balancing strategy and to enable automatic load balancing (if enabled). This latter part closely resembles the implementation of the EventProcessorsControlService on this subject, by the way.

In doing the above, this pull request resolves #122.

CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.

sonarcloud[bot] commented 11 months ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.0% 80.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint