Implement lab 2 PostgreSQL sessions and Redis profile cache

This commit is contained in:
2026-11-19 10:47:21 +03:00
parent 65003b6119
commit 370d947132
31 changed files with 1381 additions and 19 deletions
+10
View File
@@ -0,0 +1,10 @@
PASS: concurrent registration: one 201, seven 409
PASS: foreign-key failure rolls back chat and first member
PASS: strict payload validation and authentication before resource access
PASS: keyset pagination, changing limit, cross-chat cursor rejection
PASS: equal timestamps use UUID tie breaker
PASS: Unicode/colon password, wrong password, cache TTL and logout with warm cache
PASS: Redis outage falls back safely and cache recovers
PASS: DB outage fails closed with 503; same session works after recovery
PASS: SESSION_TTL_SECONDS=2 expires a warm-cache session
PASS: migrations are repeatable without duplicate data