feat: add clickhouse micro-batch storage

This commit is contained in:
2026-09-20 15:33:44 +03:30
parent 0e23e5bde8
commit 1a2f492992
8 changed files with 468 additions and 18 deletions

View File

@@ -31,6 +31,16 @@ class Settings(BaseSettings):
worker_instance_id: str = "worker-1"
clickhouse_host: str = "localhost"
clickhouse_port: int = 8123
clickhouse_database: str = "telecom"
clickhouse_user: str = "telecom"
clickhouse_password: str = ""
batch_size: int = 1_000
batch_flush_interval_seconds: float = 2.0
@lru_cache
def get_settings() -> Settings:
return Settings()