Skip to content

Commit b4fcf2e

Browse files
Add tip for idempotent subscriptions (#2266)
Co-authored-by: René Jeglinsky <[email protected]>
1 parent 7244d15 commit b4fcf2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

guides/multitenancy/mtxs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,14 @@ Received when a new tenant subscribes.
12311231
12321232
The implementations create and initialize required resources, that is, creating and initializing tenant-specific HDI containers in case of SAP HANA, or tenant-specific databases in case of SQLite.
12331233
1234+
::: tip `subscribe` can be triggered multiple times
1235+
1236+
In SAP BTP scenarios, the SaaS registry uses the same endpoint for both initial subscription and later updates. MTX forwards the original SaaS registry payload to `DeploymentService` as the `metadata` parameter.
1237+
1238+
Custom handlers for `subscribe` must therefore be **idempotent** and able to handle multiple calls for the same tenant.
1239+
1240+
:::
1241+
12341242
### `upgrade` _(tenant)_
12351243
12361244
Used to upgrade a subscribed tenant.

0 commit comments

Comments
 (0)