moonming commented on PR #13073: URL: https://github.com/apache/apisix/pull/13073#issuecomment-4064897075
**Architectural Note (self-review)**: This PR (#13073) and #12826 (incremental router compilation by @apaloleg) address the same problem — CPU spikes from frequent router rebuilds — with different approaches: - **This PR**: `router_rebuild_min_interval` — throttle/debounce rebuilds (quick win, low risk) - **#12826**: Incremental compilation — only rebuild affected parts of the radix tree (fundamental fix, higher complexity) **Proposed path forward**: 1. Merge this throttling approach first as an immediate relief (low risk, easy to understand) 2. Continue developing incremental compilation as a longer-term optimization 3. The two approaches are complementary — throttling reduces frequency, incremental reduces cost per rebuild Will coordinate with @apaloleg on #12826 to align timelines. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
