this post was submitted on 17 Aug 2023
1717 points (97.8% liked)
Technology
70302 readers
2704 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
π€¦ββοΈ
What's your HTML5 plan for when your site goes down because one of the videos a user uploads to your site goes viral and is receiving ~10,000 requests every second across 6 continents?
That's a trick (and a completely different) question from:
If you assuming this is a load spike well above your maximum throughput, you just fall over. That's the reason the cloud took off in the first place; if you do it the old fashioned way, you can get overwhelmed and have no recourse but to fall over because you can't provision servers fast enough.
If this is a "normal" occurrence, you're probably talking about round-robin'd DNS distributing to (hopefully) the nearest data center where you have a load balancer, then that could hit another layer of load balancing on the machine or directly go to servers on the machine depending on how you have things setup, then that could hit several different designs of web server with their own quirks (asyncio -- non-preemptive multitasking --, threaded -- preemptive multitasking --, single threaded, or some mix thereof depending on your design -- pros and cons to all of them).
Those could do several things depending on how fast your data centers become consistent WRT uploaded videos. We'll just assume you already have a copy of the video in each regional data center. You fetch from there and serve the file, like any other file.
... or maybe you get really fancy and use WebRTC to get the files from clients already watching the video.
But please, add another surprise requirement and continue to strawman.
EDIT: Oh neat, found out after the fact PeerTube actually does that WebRTC trick https://docs.joinpeertube.org/contribute/architecture#the-peertube-player :)
oh, but, quoting you here
π
Ok I'm done conversing with you for real now I have a weekend to go have, cheers. Good luck with your budding CS career and your HTML5.
Whatever dude...
π₯