p2sr / portal2-cm-boards-v2

A from-scratch rewrite of the Portal 2 Challenge mode Leaderboards using Rust (actix.rs) and JS (React).
https://danielbatesj.github.io/Portal2-Boards-Rust-API-Docs/docs/target/doc/doc/server/index.html
Apache License 2.0
3 stars 6 forks source link

Add BackBlaze Functionality #8

Open DanielBatesJ opened 3 years ago

DanielBatesJ commented 3 years ago

Also figure out exactly how to handle the work-flow from moving the uploaded file from the front-end user, to the backend web-server. Rename (and parse?) the file, and upload or reject depending on results.

DanielBatesJ commented 2 years ago

Update, we are considering storing the demos on backblaze now, will need to interface with their API, and store new demo data based off of the file_ids in backblaze.

Naleksuh commented 2 years ago

@DanielBatesJ Is there any reason they can't be stored on the site rather than having to use a third party service?

Also, can you clarify if this repository is currently in use on board.portal2.sr or is a work in progress? (Just found this so I'm not sure, sorry)

jonese1234 commented 2 years ago

@Naleksuh Current demo amount is too large to be held on web server. Currently around 50gb and growing.

This is the new site.

https://github.com/p2sr/Portal2Boards is the old/current one.

DanielBatesJ commented 2 years ago

Paying for additional file/block storage on a vm instance is significantly more costly than holding it in some cheap mass storage solution. The speed advantages are also negligible. The current plan is to migrate the existing demos over to BackBlaze and to use that going forward on both the current boards (as Jonese linked above) and the new boards.

DanielBatesJ commented 2 years ago

Now we're switching off BackBlaze. This will need to be updated with the steps required to work with Hetzner storage.