How meghanab1909/32_project3_bd works
Users upload an image through the web UI; the master records a job, tiles the image, and dispatches tiles through Kafka. Workers convert tiles to grayscale and return results; the master stores completion data, reassembles the image, and exposes status and download endpoints. Heartbeats feed worker monitoring in both the master and dashboard. The source excerpts show these runtime paths; template internals and the separately documented dashboard integration are not shown.
Main entry points: master_node.py Master API · ui_app.py Upload and status UI · worker_node.py Tile worker · dashboard.py Heartbeat dashboard
Components 12
Web interface
- Upload and status UI
ui_app.py - UI views
templates
Master processing
- Master API
master_node.py - Image tiling
master_node.py - Result reassembly
master_node.py - Job and tile state
master_node.py - Queued DB writer
master_node.py
Worker pool
- Tile worker
worker_node.py
Worker monitoring
- Heartbeat dashboard
dashboard.py
Other components
- User
- Kafka broker
- Dashboard service
Connections 22
- User → Upload and status UI: uploads image
README.md - Upload and status UI → Master API: forwards upload
ui_app.py - Upload and status UI → Master API: requests status
ui_app.py - Upload and status UI → Master API: links download
ui_app.py - Upload and status UI → UI views: renders views
ui_app.py - Upload and status UI → Dashboard service: provides dashboard URL
ui_app.py - Master API → Image tiling: divides image
master_node.py - Master API → Kafka broker: publishes tile tasks
master_node.py - Master API → Job and tile state: records job and tiles
master_node.py - Tile worker → Kafka broker: consumes tasks
worker_node.py - Tile worker → Tile worker: processes tiles
worker_node.py - Tile worker → Kafka broker: publishes results
worker_node.py - Tile worker → Kafka broker: publishes heartbeats
worker_node.py - Master API → Kafka broker: consumes results
master_node.py - Master API → Job and tile state: queues result updates
master_node.py - Queued DB writer → Job and tile state: writes queued updates
master_node.py - Master API → Result reassembly: assembles completed tiles
master_node.py - Master API → Job and tile state: reads status
master_node.py - Master API → Job and tile state: reads worker records
master_node.py - Master API → Kafka broker: consumes heartbeats
master_node.py - Heartbeat dashboard → Kafka broker: consumes heartbeats
dashboard.py - Dashboard service → Heartbeat dashboard: serves worker view