Files
clean-architecture-frontend…/tests/scale/scale-profile.ts
T

28 lines
787 B
TypeScript

/**
* Spec §35. Synthetic scale profiles. S3/S4 are logical cardinalities: they
* are modelled as topology, never compiled as one SPA.
*/
export const SCALE_PROFILES = Object.freeze({
S0: 100,
S1: 1_000,
S2: 10_000,
S3: 100_000,
S4: 1_000_000,
});
export type ScaleProfileId = keyof typeof SCALE_PROFILES;
/** Direct-child ceilings, matching the deployable app/context descriptors. */
export const APP_CONTEXT_BUDGET = 20;
export const CONTEXT_FEATURE_BUDGET = 200;
export const APP_LOCAL_FEATURE_BUDGET = APP_CONTEXT_BUDGET * CONTEXT_FEATURE_BUDGET;
/**
* The fixed shape one synthetic app is given. Global growth adds apps; it
* never widens an existing app.
*/
export const SYNTHETIC_APP_SHAPE = Object.freeze({
contextsPerApp: 10,
featuresPerContext: 10,
});