How bhavik-ksvss/real-time-ticket-booking-sync-gcp works
This small project demonstrates a mock-data-to-BigQuery workflow: it generates records and publishes them to Google Cloud Pub/Sub, while a separate UDF cleans and enriches records and a SQL file defines a BigQuery table. The publisher’s generation and publish calls are visible in source. The README describes the BigQuery goal, but the available files do not show a subscription, UDF invocation, or load step connecting Pub/Sub to BigQuery; those links are therefore unverified.
Main entry points: irctc_mock_data_to_pubsub.py Pub/Sub Publisher · transform_udf.py Record Transform UDF · bigquery_create_table.sql BigQuery Table Definition
Components 6
Data Ingestion
- Mock Data Generator
irctc_mock_data_to_pubsub.py - Pub/Sub Publisher
irctc_mock_data_to_pubsub.py - Google Cloud Pub/Sub
Record Processing
- Record Transform UDF
transform_udf.py
BigQuery Warehouse
- BigQuery Table Definition
bigquery_create_table.sql
Other components
- Script Operator
Connections 6
- Script Operator → Mock Data Generator: runs generation
irctc_mock_data_to_pubsub.py - Mock Data Generator → Pub/Sub Publisher: returns records
irctc_mock_data_to_pubsub.py - Script Operator → Pub/Sub Publisher: publishes records
irctc_mock_data_to_pubsub.py - Pub/Sub Publisher → Google Cloud Pub/Sub: publishes messages
irctc_mock_data_to_pubsub.py - Google Cloud Pub/Sub → Record Transform UDF: invokes transform
- Record Transform UDF → BigQuery Table Definition: loads records