Code Monkey home page Code Monkey logo

f1-racing's Introduction

Formula1 Racing Project using Azure Databricks, ADLS & ADF

This repository serves as documentation for a Formula1 Racing project created using Azure services for data engineering. The project aims to process Formula 1 racing data, create an automated data pipeline, and make the data available for presentation and analysis purposes.

Formula 1 Racing Project Overview

Required Information

The Formula 1 racing project involves processing data for both driver champions and constructor champions. Points are awarded based on the finishing position in each race, and there are separate championships for drivers and constructors. Pole positions are determined through qualifying races.

Data Source

The data is sourced from the Ergest Developer API, providing tables such as circuits, races, constructors, drivers, results, pitstops, lap times, and qualifying.

ER Diagram

Project Resources and Architecture

Azure Services Used

  1. Azure Databricks: For compute using Python & SQL.
  2. Azure Data Lake Gen2 (Delta Lake / LakeHouse): For hierarchical storage and utilizing delta tables.
  3. Azure Data Factory: For pipeline orchestration for Databricks Notebook.
  4. Azure Key Vault: For storing secrets for ADLS credentials used in the Databricks Notebook.

Project Architecture

Architecture Explanation & Project Working

Step 1: Setting up Storage using ADLS and Containers

  • Created Azure Data Lake Storage with three containers: raw, processed, presentation.

Step 2: Setting up Compute using Databricks and connecting to Storage

  • Utilized Azure Databricks with a specific cluster configuration.
  • Mounted Azure Data Lake using Service Principal for secure access.

Step 3: Ingesting Raw Data

  • Ingested eight types of files and folders from the raw container.
  • Created separate notebooks for ingestion and converted raw data into processed data.

Step 4: Ingesting Processed Data

  • Used processed data to perform further transformation and analysis.
  • Created notebooks for race results, driver standings, constructor standings, and calculated race results.

Step 5: Ingesting Presentation Data For Analysis

  • Stored data generated from processed notebooks in the presentation container.
  • Analyzed and visualized dominant drivers and teams.

Azure Data Factory Pipeline Orchestration

Pipelines and Trigger

  • Created Ingest Pipeline, Transform Pipeline, and Process Pipeline.
  • Used Azure Trigger for automation.
  • Orchestration ensures automated processing of raw and processed containers.

Azure Trigger

  • Utilized tumbling window trigger for triggering based on past date data.
  • Customized triggers for specific date ranges.

Budget Analysis For Project

  • Total cost incurred: Rs. 3200, surpassing the Rs. 3000 budget.
  • Major costs from Azure Databricks for compute and ADLS for storage.
  • Cluster timeout management helped in cost control.

f1-racing's People

Contributors

gupta-aayushkr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pawbhise

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.