Реализовать наблюдаемость мессенджера и проверить её под нагрузкой

This commit is contained in:
2026-11-06 18:22:53 +03:00
parent 470d9d6f1e
commit b2eca3d259
78 changed files with 10341 additions and 24 deletions
+8
View File
@@ -0,0 +1,8 @@
-- A paused API must not acknowledge an object that GC has already retired.
CREATE TABLE upload_reservations (
id uuid PRIMARY KEY,
object_key text NOT NULL UNIQUE,
state text NOT NULL DEFAULT 'uploading' CHECK (state IN ('uploading','accepted','abandoned')),
expires_at timestamptz NOT NULL DEFAULT clock_timestamp()+interval '120 seconds',
created_at timestamptz NOT NULL DEFAULT clock_timestamp()
);