filmov
tv
How The Backend Works
Показать описание
As we already know, the web is made up of two main parts. The frontend and the backend. The frontend is concerned with presentation and is fairly easy to understand since it is what we interact with daily on the web. The backend, on the other hand, is all of the parts of the web that users do not directly interact with. In this video we are going to discuss the basics of how the backend of a website works by tracing all of the steps that the backend must go through from the moment it receives a request to the point it sends a response back to the client.
The URL alone is not enough to tell the server exactly what it needs to do, though. It can tell the server which section to look for and how to alter that section based on the query parameters, but that section of the server is broken down even further into multiple different parts. To determine which part of that section the server should run it needs to use an action which is passed along with the URL. This action can either be GET, POST, PUT, or DELETE. By combining the action and the path the server can find the correct part of the correct section that it needs to run. It can then use the query parameters to alter the response of that particular part and section.
Normally the response from the server will be an HTML page that is dynamically generated based on the request from the client. This is why when you go to the YouTube search page it always shows you the same page, since it has the same path and action, but the videos that are returned from your search are different based on the query parameter for your search.
Another important thing to note about a server is that it is only accessible to the outside world through the sections that it defines. This means that you can store any secure information on the server and it will be safe as long as it is not exposed through a specific path. This is why it is safe to have a database and website running on the same server since the server only chooses to expose the website and not the database. Essentially the server acts as a barrier between the outside world and all the parts of a website.
Next Video:
Playlist:
Twitter:
GitHub:
CodePen:
#Backend #WebDevelopment #Programming
The URL alone is not enough to tell the server exactly what it needs to do, though. It can tell the server which section to look for and how to alter that section based on the query parameters, but that section of the server is broken down even further into multiple different parts. To determine which part of that section the server should run it needs to use an action which is passed along with the URL. This action can either be GET, POST, PUT, or DELETE. By combining the action and the path the server can find the correct part of the correct section that it needs to run. It can then use the query parameters to alter the response of that particular part and section.
Normally the response from the server will be an HTML page that is dynamically generated based on the request from the client. This is why when you go to the YouTube search page it always shows you the same page, since it has the same path and action, but the videos that are returned from your search are different based on the query parameter for your search.
Another important thing to note about a server is that it is only accessible to the outside world through the sections that it defines. This means that you can store any secure information on the server and it will be safe as long as it is not exposed through a specific path. This is why it is safe to have a database and website running on the same server since the server only chooses to expose the website and not the database. Essentially the server acts as a barrier between the outside world and all the parts of a website.
Next Video:
Playlist:
Twitter:
GitHub:
CodePen:
#Backend #WebDevelopment #Programming
Комментарии