mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
perf(gateway): scale request hot paths for 20k streams
Shard and singleflight hot-path caches, batch and prioritize candidate and usage lifecycle persistence, and extend database and pressure-test instrumentation for 20k concurrent streams.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -368,7 +368,12 @@ async fn record_stream_sync_failure(
|
||||
let payload_seed = build_sync_terminal_usage_payload_seed(payload);
|
||||
state
|
||||
.usage_runtime
|
||||
.record_sync_terminal(state.data.as_ref(), context_seed, payload_seed);
|
||||
.record_sync_terminal(
|
||||
state.usage_lifecycle_data_state().as_ref(),
|
||||
context_seed,
|
||||
payload_seed,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
let terminal_unix_secs = current_request_candidate_unix_ms();
|
||||
record_report_request_candidate_status(
|
||||
|
||||
Reference in New Issue
Block a user