You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(cems): evidence-based refresh/polling strategy to minimise HTTP calls
Probed the API to design incremental polling instead of re-fetching every
activation detail:
- One list call (?limit=300) = full corpus (224 items, ~72 KB) carrying the
change signals lastUpdate/closed/n_products/n_aois.
- No HTTP caching (no ETag/Last-Modified) and server-side "updated since" filters
are ignored, so change detection is application-side via a per-code watermark.
- ?closed=false works and returns only live activations (currently 3); closed
activations are immutable.
Strategy: backfill once; steady-state poll ?closed=false and fetch detail only
when (lastUpdate, n_products, n_aois) advance; final fetch on close; slow full-list
reconcile for new/closed. Turns ~224 detail fetches/cycle into one 72 KB list call
plus a handful of details. RSS (portal, redirected) is the WP2 push alternative.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments