Перенести API с общими сессиями и идемпотентной отправкой сообщения.

Реплика больше не держит корректность в своей памяти: сессия в Redis, а повтор POST сообщения фиксируется в Postgres вместе с X-Instance-Id.
This commit is contained in:
2026-11-07 12:46:37 +03:00
parent 0ab3a341aa
commit 3601ca5443
34 changed files with 2342 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
[pytest]
testpaths = student_tests
pythonpath = .
markers =
infra: compose stop/restart of redis or postgres
expiry: requires SESSION_TTL_SECONDS<=3