Skip to content

Commit 1748f47

Browse files
ServiceControl/DisableExternalIntegrationsPublishing (#7194)
Co-authored-by: Daniel Marbach <[email protected]>
1 parent 415cea8 commit 1748f47

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

servicecontrol/contracts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,7 @@ An event will also be published and displayed in the ServicePulse dashboard with
104104
```
105105

106106
To avoid this situation it is important to properly decommission an endpoint that subscribes to ServiceControl events. To do this, [disable auto-subscription](/nservicebus/messaging/publish-subscribe/controlling-what-is-subscribed.md#disabling-auto-subscription) and then [unsubscribe from all events](/nservicebus/messaging/publish-subscribe/controlling-what-is-subscribed.md#manually-subscribing-to-a-message).
107+
108+
## Disabling integration
109+
110+
In systems that have significant load but not having subscribers for the integration events it can be beneficial to disable the intergration to prevent unneeded traffic to the broker for these events. The integration can be disabled by setting [`DisableExternalIntegrationsPublishing` to `True`](/servicecontrol/servicecontrol-instances/configuration.md#host-settings-servicecontroldisableexternalintegrationspublishing).

servicecontrol/servicecontrol-instances/configuration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,19 @@ Run [ServiceControl error instance in maintenance mode](/servicecontrol/ravendb/
155155
| --- | --- |
156156
| boolean | `False` |
157157

158+
### ServiceControl/DisableExternalIntegrationsPublishing
159+
160+
[ServiceControl publishes integration events](/servicecontrol/contracts.md), if no subscribers exist this can be disabled.
161+
162+
| Context | Name |
163+
| --- | --- |
164+
| **Environment variable** | `SERVICECONTROL_DISABLEEXTERNALINTEGRATIONSPUBLISHING` |
165+
| **App config key** | `ServiceControl/DisableExternalIntegrationsPublishing` |
166+
| **SCMU field** | N/A |
167+
168+
| Type | Default value |
169+
| --- | --- |
170+
| bool | False |
158171

159172
## Embedded database
160173

0 commit comments

Comments
 (0)