lab2 - оценка 5
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-10-07 19:06:42 +03:00
parent 65003b6119
commit f07ad1e097
32 changed files with 3718 additions and 18 deletions
+26
View File
@@ -0,0 +1,26 @@
# Трек 5: согласованность кэша истории — замеры и демонстрации
Сформировано: 07.10.2026 18:32:18,01
[PASS] off: concurrent cold reads -> each hits SQL (stampede without cache)
[PASS] off: every read hits SQL
RESULT mode=off reads=100 sql=132 stampede_sql=32 p50=23.34 p95=44.1 p99=46.98
PHASE off DONE
[PASS] naive: stale read OBSERVED (cache returned old page after write)
RESULT mode=naive stale_observed=True
PHASE naive DONE
[PASS] versioned: read-after-write OK (no stale)
[PASS] versioned: single-flight -> exactly 1 SQL on cold key
[PASS] versioned: warm reads served from cache
RESULT mode=versioned reads=100 sql=0 stampede_sql=1 p50=25.92 p95=45.12 p99=47.59
PHASE versioned DONE
[PASS] recovery: api ready after redis restart
[PASS] recovery: session still valid (source of truth = postgres)
[PASS] recovery: history readable after cache loss
[PASS] recovery: read-after-write OK with rebuilt cache
[PASS] recovery: cache rebuilds (1 sql for 2 reads)
RESULT mode=recovery sql_after_restart=1
PHASE recovery DONE