ЛР5: брокер Redis Streams, worker, outbox, retry/DLQ/replay, варианты

This commit is contained in:
LOSYASH
2026-11-12 15:14:48 +01:00
parent 276dbdad8a
commit b4804ac5c1
98 changed files with 9131 additions and 38 deletions
+22
View File
@@ -0,0 +1,22 @@
# broker-config
# date: 2026-11-11T23:54:10 commit: 276dbda
$ docker compose --env-file .env exec -T broker redis-cli CONFIG GET append*
appendfilename
appendonly.aof
appendonly
yes
appendfsync
always
appenddirname
appendonlydir
[exit 0]
$ docker compose --env-file .env exec -T broker redis-cli CONFIG GET maxmemory-policy
maxmemory-policy
noeviction
[exit 0]
$ docker compose --env-file .env exec -T api python -m app.tools queue
{"stream_length": 11, "groups": [{"name": "workers", "consumers": 2, "pending": 2, "lag": 9}], "dlq_length": 0, "outbox_unpublished": 0, "jobs_by_status": {"ready": 8, "processing": 2, "queued": 9}}
[exit 0]