Skip to content

NOAA data pipeline, queryable from the browser and supports a Bitcoin DLC oracle, in dlctix style

License

Notifications You must be signed in to change notification settings

tee8z/noaa-data-pipeline

Repository files navigation

A simple system showing how to create a data pipeline from NOAA

  • Live site located at: 4casttruth.win
  • Feel free to pull the parquet files and use in your own data analysis (python is a good choice to do this with)

Example of using the UI:

Initial Screen Select Files View File Schemas Enter Bad Query Enter Good Query

Where data comes from:

How the system works:

  • daemon:
    • Background process to pull down data from NOAA and transform it into flatted parquet files. These files are then pushed to the oracle via the REST endpoint POST http://localhost:9100/file (via multipart form)
  • oracle:
    • A REST API that takes in the parquet files and allows downloading of them from a browser UI that is also hosted by the api.
  • ui:
    • Holds the browser UI that's just an index.html and main.js file. It uses @duckdb/duckdb-wasm to allow the end user to query directly against the download parquet files
    • It uses https://bulma.io/ for css styling

Why build a data pipeline like this:

  • No remote DB needed, only a dumb file server, makes this cheap to run
  • Faster and more flexible querying ability provided to the end user, allowing them to find unique insights that the original system design may not be looking to find
  • Each piece is a 'simple' logical item, allowing for scalability for however large the usage is on the service
  • Would NOT recommend using this approach if the data being tracked needs to be updated in the parquet files and stored as a relational model, only really works if the data model can be snapshots and immutable over time

Data Pipeline Process (arrows in direction of who initiates the talking):

[noaa api] <- [daemon] -> parquet files -> [oracle] <- parquet files <- [browser duck_db]

How to use: