Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fire Dispatch Analysis

This project is designed to analyze fire dispatch data using a modern data pipeline architecture. It integrates data extraction, transformation, and modeling workflows to generate insights into fire dispatch response times and other key metrics. Below is an overview of the project's components, architecture, and workflow.


Project Structure

1. Data Extraction

2. Data Transformation

3. Data Modeling

4. Data Serving


Architecture

The project follows a modular architecture with the following key components:

  1. Data Lake: Stores raw and transformed data in Google Cloud Storage.
  2. Dataproc: Executes PySpark jobs for data extraction, transformation, and serving.
  3. Iceberg Table: Stores structured data for efficient querying and partitioning.
  4. BigQuery: Serves as the final destination for analytical queries and reporting.
  5. dbt: Implements a star schema for data modeling and analytical views.

Workflow

  1. Data Extraction:

    • Raw data is extracted from a source bucket using a PySpark job.
    • The data is written to a landing zone in the data lake.
  2. Data Transformation:

    • The extracted data is transformed using PySpark.
    • Transformations include schema enforcement, timestamp conversion, and metadata addition.
    • The transformed data is loaded into an Iceberg table.
  3. Data Modeling:

    • dbt is used to create a star schema with dimensions and fact tables.
    • Analytical views are built to calculate metrics like average response times.
  4. Data Serving:

    • Transformed data is served to BigQuery for downstream analytics.
    • This step ensures the data is accessible for reporting and visualization.

Key Features

  • Modular Design: Each stage of the pipeline is encapsulated in its own Terraform module and PySpark script.
  • Scalability: Leverages Google Cloud Dataproc and BigQuery for handling large datasets.
  • dbt Integration: Implements best practices for data modeling and schema management.
  • Automation: Orchestrated using Apache Airflow for end-to-end automation.

Analytical Outputs

  • Star Schema:
    • Fact Table: fact_response_times

  • Analytical View:
    • Average response time from dispatch to arrival, grouped by geography and time.

Resources

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages