Concept designs

SaaS & technology

Choose a problem to see how the systems could work together.

Recovering subscription access after delayed or duplicate billing events

A billing service can record a commercial change before the application applies it. Renewals, plan changes and cancellations may reach the product out of order. Retrying the last webhook can restore the wrong feature set.

See the proposed design

Scope of this study

Billing provides subscription changes and the customer reference. The entitlements store owns permitted features and temporary access exceptions.

Proposed architecture

Store each verified event once, retrieve the authoritative entitlement state and map the billing customer to the correct tenant and contract. Apply versioned access changes and record acknowledgement from the product.

Event sequence Select a step for details
  1. Source recordsBilling events and contract mapping
  2. ProcessingResolve current entitlements
  3. Decision ownerProduct operations
  4. Operational outputVerified tenant access

Reliability and operating controls

Distinguish provider billing state from a contractual grace period. Make support overrides time-limited and attributable. Route unknown customer-to-tenant mappings to review without changing access.

Illustrative operating scenario

A cancellation event is retried after a later renewal. The consumer refreshes current entitlements before updating the tenant, then records the stale event as processed.

Delivery boundaries

Product operations decides grace rules and override expiry. Support reviews unknown tenant mappings before entitlement changes are applied.

Expected business impact

Restore the intended access after duplicate or late delivery without undoing a later billing change.

Acceptance test and handover

Test out-of-order delivery, duplicate events and provider timeouts against test accounts. Compare billed entitlement with effective product access and test replay from a checkpoint.

Industry context and design references

Stripe exposes active entitlements so an application can determine which features to make available. Stripe Billing Entitlements

Stripe documents duplicate deliveries, retries and the absence of guaranteed event order. Stripe event delivery and ordering

Preventing unintended deprovisioning during an enterprise directory change

An enterprise customer can change a directory filter or group mapping and unexpectedly put a large set of users out of scope. Native provisioning safeguards help, but the product still needs to preserve tenant boundaries, delegated roles and a recoverable state.

See the proposed design

Scope of this study

The tenant directory supplies intended identities and groups. The provisioning connector and application report the changes proposed and accepted.

Proposed architecture

Integrate SCIM provisioning with the product’s tenant and role model. Preview scope changes, distinguish disablement from deletion, log affected accounts and provide a tenant-scoped recovery path for approved corrections.

Event sequence Select a step for details
  1. Source recordsDirectory provisioning events
  2. ProcessingPreview tenant-specific impact
  3. Decision ownerCustomer administrator
  4. Operational outputRecoverable access change

Reliability and operating controls

The customer administrator confirms intended scope. Place the change guard before the destination write. Use the connector’s quarantine feature only if it supports it. Otherwise hold the change set for review in the integration. Preserve audit history when an identity is restored.

Illustrative operating scenario

A mapping change excludes an unexpectedly large set of active users. The guarded route holds the write batch and shows the tenant impact for administrator review.

Delivery boundaries

The customer administrator approves the impacted scope. The connector sends only confirmed changes and escalates when a safe quarantine path is unavailable.

Expected business impact

Make bulk scope changes inspectable and preserve a tenant-specific recovery route.

Acceptance test and handover

Test legitimate departures, excessive removals and racing entitlement updates. Verify ordering or current-state read-back before writes and confirm restoration cannot revive superseded or privileged access.

Industry context and design references

Microsoft documents deletion thresholds, quarantine and staged actions in its provisioning service. Microsoft Entra provisioning safeguards

Moving a live customer between tenant environments

A database copy can succeed while scheduled jobs, files, webhooks or cached lookups still point to the old tenant location. The problem appears later when a background task writes to the previous environment.

See the proposed design

Scope of this study

Tenant manifests identify records and background jobs. The target environment reports imported versions and work held at the cutover barrier.

Proposed architecture

Inventory the tenant’s data, object storage, job queues, search indexes, keys and outbound integrations. Build a cutover sequence with a write barrier, incremental catch-up, verified routing change and a defined rollback point.

Event sequence Select a step for details
  1. Source recordsTenant resources and jobs
  2. ProcessingSynchronise and fence writes
  3. Decision ownerPlatform owner
  4. Operational outputValidated tenant cutover

Reliability and operating controls

The platform owner controls cutover. Maintain tenant isolation during validation and quarantine writes that arrive after the barrier. Identify the point beyond which rollback requires replaying new writes.

Illustrative operating scenario

An export job begins before migration and finishes afterwards. The cutover procedure detects its old destination and prevents duplicate delivery to the customer.

Delivery boundaries

The platform owner approves cutover and rollback. Support flags writes made after the barrier before replay or rollback is authorised.

Expected business impact

Keep live work available through an agreed cutover and show which background tasks crossed the boundary.

Acceptance test and handover

Migrate a representative test tenant under traffic. Validate object manifests, business totals, queued work and routing, then rehearse rollback with writes made after cutover.

Industry context and design references

Microsoft describes tenancy and storage choices that affect isolation, scaling and movement of customer data. Microsoft Azure Architecture Center on multitenant data

Systems commonly involved

Discuss a workflow All case studies