feat: expand platform APIs, sources, and test coverage
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m53s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m54s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m53s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m54s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
This commit is contained in:
38
docs/adr/ADR-003: Background Processing Architecture.md
Normal file
38
docs/adr/ADR-003: Background Processing Architecture.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# ADR-003: Background Processing Architecture
|
||||
|
||||
## Status
|
||||
Accepted
|
||||
|
||||
## Context
|
||||
|
||||
Обработка данных требует:
|
||||
- асинхронности
|
||||
- планирования задач
|
||||
- устойчивости к сбоям
|
||||
|
||||
## Decision
|
||||
|
||||
Используется Celery:
|
||||
|
||||
- worker — выполнение задач
|
||||
- beat — планировщик
|
||||
- Redis — broker/backend
|
||||
|
||||
Типы задач:
|
||||
- парсинг источников
|
||||
- синхронизация данных
|
||||
- обработка файлов
|
||||
|
||||
## Consequences
|
||||
|
||||
### Positive
|
||||
- горизонтальное масштабирование
|
||||
- разделение runtime и фоновых задач
|
||||
|
||||
### Negative
|
||||
- сложность дебага
|
||||
- необходимость контроля idempotency
|
||||
|
||||
## Alternatives
|
||||
|
||||
- RQ / Dramatiq — отклонены (меньше зрелости)
|
||||
Reference in New Issue
Block a user