feat: add cdr processing worker and dlq routing

This commit is contained in:
2026-09-20 14:38:05 +03:30
parent 89a746227b
commit 0e23e5bde8
10 changed files with 623 additions and 22 deletions

View File

@@ -22,6 +22,14 @@ class Settings(BaseSettings):
kafka_batch_size: int = 131_072
kafka_producer_max_messages: int = 100_000
kafka_dlq_topic: str = "cdr.raw.dlq"
kafka_consumer_group: str = "cdr-processing-workers"
kafka_auto_offset_reset: str = "earliest"
kafka_consumer_poll_timeout_seconds: float = 1.0
kafka_dlq_delivery_timeout_seconds: float = 5.0
worker_instance_id: str = "worker-1"
@lru_cache
def get_settings() -> Settings: