Implement durable versioned image pipeline with outbox, fencing and fault experiments

This commit is contained in:
2026-11-20 21:38:54 +03:00
parent 276dbdad8a
commit 33e02d0ef9
58 changed files with 4293 additions and 25 deletions
@@ -0,0 +1,10 @@
CREATE TABLE message_requests (
user_id uuid NOT NULL REFERENCES users(id),
chat_id uuid NOT NULL REFERENCES chats(id),
key text NOT NULL,
body_hash bytea NOT NULL,
response jsonb NOT NULL,
expires_at timestamptz NOT NULL,
PRIMARY KEY(user_id,chat_id,key)
);
CREATE INDEX message_requests_expiry_idx ON message_requests(expires_at);