Commit ca86b5a
committed
Speeds up webhook event loading with LRU cache
Introduces a backend in-memory cache with TTL and LRU to serve webhook events instantly and reduce storage reads.
Returns stale data immediately and refreshes in the background; merges new webhook events into the cache on write.
Integrates with SSE to notify clients when cache refresh completes for seamless UI updates.
Adds monitoring and management endpoints for cache stats and per-path clearing.
Updates technical docs and index.
Cuts cached response time to ~5–15ms (~99% faster) while keeping memory bounded and providing graceful fallback.1 parent 643a584 commit ca86b5a
File tree
5 files changed
+1296
-1
lines changed- docs/technical
- server/src
5 files changed
+1296
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments