feat: process attachments asynchronously with RabbitMQ and a worker

Upload answers 202 after staging, a queued job in PostgreSQL and a broker
confirm; a separate worker publishes the original and a thumbnail with
bounded retries. Adds the job and variant tables, the broker service, the
worker S3 user, cleanup and reconcile support for staging and variants,
the failure stand with broker and worker, bench and driver updates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 06:48:20 +03:00
co-authored by Claude Opus 5.5
parent 40c709a78b
commit ff1a83b6ff
107 changed files with 9765 additions and 993 deletions
+6
View File
@@ -0,0 +1,6 @@
# Предел памяти брокера задан явно: лимит контейнера он не видит (проба: 4760
# МиБ при лимите 512 МБ, design change async-attachments, Context) и был бы
# завершён ядром, а не сдерживал публикацию. Сработавший предел блокирует
# публикацию: загрузки получают 503 по сроку, сообщения не теряются.
# Новую настройку этого файла проверять запуском: неверное имя — отказ старта.
vm_memory_high_watermark.absolute = 400MiB