Repository navigation
Shift.Database.Infrastructure v1.0.2-debug
Shift.Database.Infrastructure v1.0.2-debug
This release contains the Shift Database Infrastructure package with:
- Lightweight health checks that don't trigger schema validation
- Automatic retry logic for migrations
- Multi-tenant database support with fault isolation
- Circuit breaker pattern for tenant migrations
- Connection pooling optimization
- Tenant health caching to prevent cascading failures
Usage
Single-Tenant Services
builder.Services.AddShiftDatabase<YourDbContext>(options =>
{
options.ServiceName = "your-service";
options.EnableMigrations = true;
options.EnableHealthChecks = true;
});Multi-Tenant Services
builder.Services.AddShiftMultiTenantDatabase<YourDbContext>(options =>
{
options.ServiceName = "your-service";
options.MaxConcurrentMigrations = 3;
options.FailStartupOnMigrationError = false;
});Package Registry
Published to: https://github.com/BTShift/shift-database-infrastructure/packages