TShardPerTenantAllocator Class
IShardAllocator that gives every tenant a dedicated shard, using the tenant id as the shard id (database-per-tenant topology).
Remarks
The shard does not need to be registered in the catalog: unregistered shards are treated as active. The application creates the actual database in the TTenantProvisioner.OnProvisionShard callback, or when the shard pool is first requested.
Syntax
Unit: Aurelius.Tenancy.Provisioning
TShardPerTenantAllocator = class(TInterfacedObject, IShardAllocator);
Methods
| Name | Description |
|---|---|
| AllocateShard | Returns the tenant id as the shard id. |