ЛР 5 — БВТ2301 — Курлова — на 5
RabbitMQ + transactional outbox, отдельный worker (thumbnail/crop/WebP), lease и heartbeat, retry с backoff+jitter, DLQ и replay, admission control; тесты отказов, трек 1 и отчёт.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE attachments DROP CONSTRAINT attachments_status;
|
||||
ALTER TABLE attachments ADD CONSTRAINT attachments_status CHECK (status IN ('uploading', 'ready', 'failed'));
|
||||
ALTER TABLE attachments ALTER COLUMN status DROP DEFAULT;
|
||||
CREATE UNIQUE INDEX attachments_object_key_idx ON attachments (object_key);
|
||||
CREATE INDEX attachments_status_created_idx ON attachments (status, created_at);
|
||||
Reference in New Issue
Block a user