lab3: Compose+Nginx, две API-реплики и идемпотентность

This commit is contained in:
2026-11-11 22:14:42 +03:00
parent 0ab3a341aa
commit d4adcce4ff
26 changed files with 1409 additions and 20 deletions
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE idempotency_records (
scope_key TEXT PRIMARY KEY,
request_hash TEXT NOT NULL,
message_id UUID NOT NULL REFERENCES messages (id),
created_at TIMESTAMPTZ NOT NULL,
expires_at TIMESTAMPTZ NOT NULL
);
CREATE INDEX idempotency_records_expires_idx ON idempotency_records (expires_at);