realtime-cinema-data-engineering-pipeline

Build real-time streaming pipelines with Kafka, PostgreSQL, Airflow, and Streamlit using Medallion Architecture.

5|1|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/data-skills --skill realtime-cinema-data-engineering-pipeline-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: realtime-cinema-data-engineering-pipeline
Source: https://github.com/reason-machines/data-skills/tree/main/skills/realtime-cinema-data-engineering-pipeline
Command: npx skills add https://github.com/reason-machines/data-skills --skill realtime-cinema-data-engineering-pipeline-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kafka-python, psycopg2, apache-airflow, streamlit, plotly, pandas, faker.

What problem does it solve? Building an end-to-end real-time data pipeline requires coordinating event streaming, layered data warehousing, orchestration, and visualization, which is complex to design and wire together from scratch. ## Core Features & Use Cases - Kafka Event Streaming: Produce synthetic transaction events with a Kafka producer and ingest them into a PostgreSQL Bronze layer with a consumer. - Medallion Architecture ELT: Orchestrate Bronze-to-Silver normalization and Gold materialized view refreshes with an Apache Airflow DAG. - Live Analytics Dashboard: Visualize revenue, ticket counts, and genre performance in a Streamlit dashboard backed by Plotly charts. - Use Case: A data engineer learning streaming architectures can clone the project, run docker-compose, and observe 1M+ synthetic cinema transactions flow from Kafka through Bronze/Silver/Gold layers into a live dashboard. ## Quick Start Set up a real-time cinema analytics pipeline with Kafka, PostgreSQL, Airflow, and Streamlit using Medallion Architecture.

Frequently Asked Questions about realtime-cinema-data-engineering-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a real-time data pipeline with Kafka and PostgreSQL?▼

Create a Kafka producer that streams JSON events to a topic, then run a Kafka consumer that inserts each event as raw JSONB into a PostgreSQL Bronze table. Use Airflow to transform Bronze data into normalized Silver tables and refresh Gold materialized views.

What is Medallion Architecture in data engineering?▼

Medallion Architecture organizes data into Bronze, Silver, and Gold layers. Bronze stores raw ingested events, Silver holds normalized 3NF tables like customers and transactions, and Gold provides materialized views with business-ready aggregates.

How do I orchestrate ELT pipelines with Apache Airflow?▼

Define a DAG with PythonOperator tasks that use PostgresHook to extract unprocessed Bronze records, upsert them into Silver dimension and fact tables, then refresh the Gold materialized view. Schedule the DAG with a timedelta interval such as every five minutes.

Why is my Kafka consumer not receiving messages?▼

Verify the topic exists with kafka-topics --list and check consumer group lag using kafka-consumer-groups --describe. Confirm the bootstrap server address matches and that auto_offset_reset is set to earliest if you need historical messages.

Can I use Streamlit for real-time dashboard updates?▼

Yes, Streamlit can poll PostgreSQL on a timed loop and re-render Plotly charts with fresh Gold layer data. Use st.cache_resource for the database connection and st.rerun after a sleep interval to refresh metrics every 30 seconds.