Skip to content

Spike/base site approach b - #21854

Draft
sp94sap wants to merge 2 commits into
developfrom
spike/base-site-approach-b
Draft

Spike/base site approach b#21854
sp94sap wants to merge 2 commits into
developfrom
spike/base-site-approach-b

Conversation

@sp94sap

@sp94sap sp94sap commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

sp94sap added 2 commits August 7, 2026 09:51
Approach (b): createApplication() boots minimal Angular app once at
startup, reuse Spartacus DI (SiteContextConfigInitializer + BaseSiteService)
to resolve base sites. Cache TTL 60s, AbortController timeout 3s.

Add:
- BaseSiteResolver shared contract
- AngularAppBaseSiteResolver (approach b impl)
- bench harness (dedup-startup, cold-start, warm-resolve, concurrent, slow-occ)
- Express llms.txt handler consuming resolver

SPIKE only, not production code.
renderApplication() hits platformServer() — process-level singleton.
Two overlapping renders throw "createPlatform called twice". Cap=1
serialises via fail-fast: first render proceeds, extras shed with
ConcurrencyLimitError → 503 + Retry-After.

Also fixes deep core/src/… imports to core/public_api barrel.
@sp94sap
sp94sap requested a review from a team as a code owner August 7, 2026 12:01
@github-actions
github-actions Bot marked this pull request as draft August 7, 2026 12:01
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🚨 PR Title Validation Failed 🚨

Your pull request title does not follow the required format. Please update it to match the expected pattern:

Expected format:
<type>: <subject>

Allowed Types

  • docs: Changes to documentation only
  • feat: New feature work
  • fix: Bug fixes
  • perf: Code improvements for performance
  • refactor: Code changes that are not bug fixes or features
  • style: Code style changes (e.g., whitespace, formatting)
  • test: Adding or updating tests
  • chore: Build, CI, scripts, configs, etc.

Example of a valid PR title

feat: Add user authentication
fix: Resolve checkout bug
docs: Update API documentation

Merge is blocked until the PR title is corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant