Cache CRD lookup and only retrieve required CRD #349
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
servala/servala-portal!349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/cache-crd-lookup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously, every page load for a ServiceInstance would call list_custom_resource_definition() to fetch ALL CRDs from Kubernetes,
then loop through them to find the matching one. This caused ~300ms+ latency per request, which was especially painful over the NetBird SOCKS proxy where each API call has ~66ms network overhead.
Now we:
This reduces CRD-related latency from ~300ms to ~0ms (cached) or ~70ms (single fetch on cache miss).
97a30ab2e5to4f735c5a83