feat: add cdr processing worker and dlq routing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user