Evolution of the Gitea downloads site #293

Merged
techknowlogick merged 2 commits from techknowlogick-patch-1 into main 2023-08-25 03:36:52 +00:00
No description provided.
techknowlogick added 1 commit 2023-08-24 14:36:34 +00:00
Evolution of the Gitea downloads site
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 2m28s
7b61352e1d
lunny approved these changes 2023-08-24 14:39:42 +00:00
jolheiser reviewed 2023-08-24 14:44:28 +00:00
@ -0,0 +17,4 @@
This was great, set and forget, except for a pesky VM that needed maintenance, patching, and more. So every so often, the downloads site needed to go down so things could get patched. A second VM could have been used to load balance traffic, or any number of possible other solutions could have been chosen, but that would've just added to the overall maintenance burden and cost. So instead of dealing with servers, we went "serverless" (yes, there are still servers, but someone else is dealing with them). The caddy plugin to generate file indexes was replaced with a "serverless"-function that queries the S3 Bucket directory and a CDN that has direct integration with the S3 Bucket so it can serve the files also directly but will fallback to the file listing function if a file isn't found for that route. The CDN has aggressive caching, so the file indexes only need to be generated once. Also, when files are uploaded to the S3 bucket, another function listens for file upload events and clears the cache on a targeted basis to not completely clear the cache.
The serverless functions and infrastructure overview have been open-sourced in case any other project wants to poke at what we've done and use it for themselves. Please feel free to hop into our chat and ask any questions.
Owner

Maybe link to these?

  • Serverless functions
  • Infra overview
  • Chat? (Maybe just a link to the support page, since it lists most of them?)
Maybe link to these? - Serverless functions - Infra overview - Chat? (Maybe just a link to the support page, since it lists most of them?)
Author
Owner

Thanks, added the links :)

Thanks, added the links :)
techknowlogick marked this conversation as resolved
techknowlogick added 1 commit 2023-08-25 01:04:15 +00:00
add links
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 2m33s
delete closed PR preview s3 / delete_preview (pull_request) Successful in 24s
e1b56b7bee
jolheiser approved these changes 2023-08-25 01:10:02 +00:00
techknowlogick merged commit 831cd4f33c into main 2023-08-25 03:36:52 +00:00
techknowlogick deleted branch techknowlogick-patch-1 2023-08-25 03:36:53 +00:00
Sign in to join this conversation.
No description provided.