Migration to UV, introducing db_write, mqtt_ingestion, db_migrations, half working prototype.

This commit is contained in:
Andrej Mickov
2025-10-28 23:14:58 +01:00
parent 5028dae200
commit 0b96c72f45
47 changed files with 2641 additions and 81 deletions

View File

@@ -0,0 +1,26 @@
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=
# Database Configuration (PostgreSQL/TimescaleDB)
DATABASE_URL=postgresql://user:password@localhost:5432/iot_dashboard
# Consumer Configuration
CONSUMER_GROUP_NAME=db_writer
CONSUMER_NAME=worker-01
BATCH_SIZE=100
BATCH_TIMEOUT_SEC=5
PROCESSING_INTERVAL_SEC=1
# Stream Configuration
STREAM_PATTERN=mqtt_stream:*
DEAD_LETTER_STREAM=mqtt_stream:failed
# Database Table Configuration
TABLE_NAME=sensor_readings
ENABLE_TIMESCALE=false
# Logging Configuration
LOG_LEVEL=INFO