+ 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.

17th Apr 2018, 6:46 PM
Josue
7 RĂ©ponses
+ 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.
17th Apr 2018, 7:18 PM
Rusty.Metal
+ 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 :-)
17th Apr 2018, 7:18 PM
Emma
+ 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.
17th Apr 2018, 7:54 PM
Adam
Adam - avatar
+ 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.
19th Apr 2018, 12:52 AM
Emma
+ 1
Thank you guys, it’s pretty interesting stuff, it helps give me an idea of how much more I need to learn.
17th Apr 2018, 11:28 PM
Josue
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.
18th Apr 2018, 3:03 AM
Emma
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”
19th Apr 2018, 12:50 AM
Josue