Code Monkey home page Code Monkey logo

rearc-data-quest's Introduction

Rearc Data Quest

Part 1: AWS S3 & Sourcing Datasets

  1. The dataset is hosted here.
  2. I created a Lambda function sync_bls_data to automate the data sync. The script compares files that are downloaded from the source with a SHA256 checksum. Newly added or updated files are added to the S3 bucket. Missing file names are presumed to be deleted and are removed from the S3 bucket.

Part 2: APIs

This script fetches the data from the API and stores as a JSON file in an S3 bucket.

Part 3: Data Analytics

The notebook with the data analysis is here. Note: for this notebook I sourced the data files locally instead of remotely in my S3 bucket.

Part 4: Infrastructure as Code & Data Pipeline with AWS CDK

I quickly found that I was unable to create a Lambda layer with a dependency for Pandas, which was my choice for dataframes in part 3. I attempted to add the Pandas layer provided by AWS to my function and the consumption size for the layer was too large. In the interests of expediency, I decided not to pursue this step further.

If I were to create a data pipeline in AWS for this step, I would:

  • Add a step function to execute the data file downloads from steps 1 and 2 as a scheduled job. The downloaded files would be written to S3.
  • On successful completion of the downloads, write a message to a SQS queue.
  • The consumer of the queue would spin up an ECR instance, from an image that has the required dependencies for data analysis.
  • Write the results of the data analysis to a database for further processing.

rearc-data-quest's People

Contributors

ravdin avatar

Watchers

 avatar

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.