How yccs-26/kitchen_to_digital works
KTD is a kitchen-equipment sensor data pipeline. Its implemented workflow generates numeric equipment events, serializes them as Avro, and publishes them to Kafka; the Phase 1 cloud path reads MSK records with Databricks Structured Streaming and preserves raw bytes and Kafka metadata in a managed Iceberg Bronze table. Local validation is a separate consumer path. Quality/Silver, Gold aggregation, current-state storage, and alerts are documented future work, not implemented here. Dashed links mark optional or planned paths; unsampled future subsystems are represented only where the README documents them.
Main entry points: main.py Simulator Orchestrator · producer.py Avro Kafka Producer · phase1_export_avro_fixture.py Fixture Export · raw_ingestion.py Raw Ingestion Job
Components 20
Event Simulation
- Equipment Config
simulator/equipment.py - Metric Generator
simulator/generator.py - Sensor Event
simulator/models.py - Fault Injection
simulator/fault_injection.py - Simulator Orchestrator
simulator/main.py - Avro Kafka Producer
simulator/producer.py - Event Schema
schemas/avro/sensor_metric_event.avsc - Fixture Export
scripts/phase1_export_avro_fixture.py
Local Kafka Validation
- Local Kafka
- Local Consumer
streaming/consumer.py - Event Validator
streaming/validator.py
Cloud Bronze Ingestion
- MSK Serverless
- Raw Ingestion Job
streaming/jobs/raw_ingestion.py - Managed Iceberg Bronze
Planned Data Products
- Quality and Silver
docs/data/validation.md - Gold Aggregates
docs/data/gold-model.md - Current State and Alerts
docs/architecture/platform.md
Other components
- Schema Registry
- Equipment Sources
- Databricks Runtime
Connections 20
- Simulator Orchestrator → Equipment Config: iterates configs
simulator/main.py - Simulator Orchestrator → Metric Generator: generates values
simulator/main.py - Simulator Orchestrator → Sensor Event: builds event
simulator/main.py - Simulator Orchestrator → Fault Injection: injects faults
simulator/main.py - Simulator Orchestrator → Avro Kafka Producer: publishes event
simulator/main.py - Avro Kafka Producer → Event Schema: loads schema
simulator/producer.py - Avro Kafka Producer → Schema Registry: serializes with
simulator/producer.py - Avro Kafka Producer → Local Kafka: sends records
README.md - Equipment Sources → Simulator Orchestrator: simulates measurements
README.md - Fixture Export → Simulator Orchestrator: generates fixture event
scripts/phase1_export_avro_fixture.py - Fixture Export → Avro Kafka Producer: serializes fixture
scripts/phase1_export_avro_fixture.py - Fixture Export → MSK Serverless: fixture published
README.md - Local Kafka → Local Consumer: serves records
README.md - Local Consumer → Event Validator: validates events
streaming/consumer.py - Databricks Runtime → Raw Ingestion Job: runs Job 1
README.md - Raw Ingestion Job → MSK Serverless: reads records
streaming/jobs/raw_ingestion.py - Raw Ingestion Job → Managed Iceberg Bronze: writes raw records
streaming/jobs/raw_ingestion.py - Managed Iceberg Bronze → Quality and Silver: planned quality processing
README.md - Quality and Silver → Gold Aggregates: planned aggregation
README.md - Gold Aggregates → Current State and Alerts: planned state and alerts
README.md