Лаба 2: PostgreSQL-хранилище и Redis-сессии (оценка 4)

FastAPI + asyncpg + Redis/argon2id. Пользователи/чаты/участники/сообщения
в Postgres с версионируемой миграцией и keyset-пагинацией. Basic-вход,
Bearer-сессии в Redis с TTL и AOF-персистентностью. make check/test/
test-persistence/validate зелёные; evidence по EXPLAIN ANALYZE, короткому
TTL и падению Redis приложены в REPORT.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 00:23:26 +03:00
co-authored by Claude Sonnet 5
parent 65003b6119
commit d12159a8cc
13 changed files with 886 additions and 15 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
# Restarts API, PostgreSQL and Redis containers without touching their volumes.
cd "$(dirname "$0")/.."
docker compose restart postgres redis api
exit 0