Repository navigation
feat: use shared KV for content site routing - #35
Conversation
Use the same site registry as da-admin instead of migration lists. Keep dual-write configuration exclusively in da-admin. Seed active dual-write sites as da before rollout. KV cutovers are eventually consistent and require request draining. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the 100% branch coverage gate for missing org/site input. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Review of 942827e: CI passes, but there are two issues in the registry probe. P1 — A 404 from the ping is saved as
P2 — A failed KV write turns into a 503 (line 29)
|
Expire 404 results after five minutes and keep known routing results when KV writes fail. Avoid sharing request-scoped I/O across requests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@bosschaert Both findings are addressed in e803ef8, with matching resolver changes in adobe/da-admin#349.
Also removed cross-request promise sharing, normalized cached values, and added the configurable The README now requires preloading all still-DA sites as Residual limit: expiry limits retention, not traffic. Unauthenticated arbitrary-name requests can still create temporary entries and outbound pings; this change does not add a rate limiter or org-existence policy. Validation: 111 tests pass with 100% statements, branches, functions, and lines; lint and the production dry-run build pass. All checks on the pushed head are green: CI run. PR descriptions and docs are updated; no manual production deployment was performed. |
|
Hi @kptdobe, Thanks for the fixes. One non-blocking point: a DA site that isn't preloaded in KV and has no Helix config is pinged again every 5 minutes. If admin.hlx.page is down when that happens, those sites get 503s. The README's instruction to preload all DA sites as da covers this. |
Rollout preloading does not protect later DA sites with AEM overlays. Document explicit registry seeding and the derived org discovery cache. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
DA_SITE_BACKENDSKV registry (org/site->daorhlx6), normalizing cached values.HLX_ADMINconfigures the probe base URL.Companion and rollout
da, and migrated sites ashlx6. Audit conflicting inventory instead of overwriting authoritative entries.daentry and wait for KV propagation before its first request, including document creation. Site creation does not seed the registry automatically.org:<org>for 300 seconds. After site changes propagate, this derived entry can be deleted to refresh discovery sooner. It does not affect direct site routing.HLX6_DUAL_WRITESvariable is needed on da-content; leftover values are ignored.Validation