+ 1
So, I have being thinking about how data is saved in a website, Iâm a beginner.
Letâs say a YouTube-alike website, in which Iâll add a new video every day, like a blog. Adding this video to the website trough coding, just adding a href element or adding it by uploading it. Not sure which has more knock on the websites speed. (I have not gotten anywhere close to how to work with a user uploads) but my question is, where does all this data goes, is it saved on the html coding, or is it saved somewhere in the web it self. Iâve read a little over servers but Still working on it.
7 Respostas
+ 11
Files are stored either in Database or as files in the server. Videos are large in size and are usually stored somewhere in the server and are the path is referred in HTML.
+ 4
Most data will be saved in highly optimised databases of some description. The data isn't stored in the HTML.
Very simplified version:
1) You type in the search field on YouTube, and click the search button.
2) This will call a script (such as /results/index.php or some such file), with some data (which will contain the search terms).
3) The script then handles the data (the search terms)
4) Script calls some business logic, which will search in the database for some related video files.
5) The same logic will eventually create HTML (via the presentation layer), that represents the web page, with videos listed as part of the search results.
6) This HTML then gets given to the browser, and the browser knows hot to convert that HTML into visuals etc.
Hope that's not too basic!
Any corrections from others, happily accepted :-)
+ 3
Regardless of if you are hosting the video files yourself or using YouTube or Wistia or whatever... your database will only contain a reference to the file, or the file itself. A record in a database for a video could contain columns for a unique ID, path to the video file or reference to the ID on the hosting site, keywords and tags, title, description.
+ 2
Most people fall into a specialism. Keep learning general things, until you either find a passion for a specialist area, or circumstance forces you to learn a certain area.
+ 1
Thank you guys, itâs pretty interesting stuff, it helps give me an idea of how much more I need to learn.
0
Josue Also remember that a site like YouTube is huge! Therefore there will be huge numbers of talented people who have worked on it. No single person could run such a website. It would be impossible. What I'm trying to say, is it's ok to specialise in skills these days... nobody can know it all any more.
People will specialise just in a single part of cybersecurity for YouTube, or work on the servers as part of a team.
Computing is definitely a team effort these days. Which I think is a good thing.
0
I have being hearing that a lot, which makes sense, but the question is, with so many options, where do you stop to think âIâm going to specialize on thisâ