Lesson 14To go further, some code practices
- Notion 86 - Introduction to eco web design code practices with The Good Manager project
- Notion 87 - Clean code for energy efficiency
- Notion 88 - Asynchronous code: do more, in less time
- Notion 89 - More efficient and less resource-intensive servers
- Notion 90 - Manage your server workload
- Notion 91 - Using external libraries: the example of Bootstrap CDNs
- Notion 92 - Code practices review
Notion 90
Manage your server workload
Target skills
Understand how to monitor and handle your traffic
Choosing the right server size for the website's needs can reduce unnecessary power consumption. It starts with monitoring the traffic and adjusting the server dimension.
Traffic monitoring
By monitoring your server and your pages, you can identify part of the traffic that are resource intensive, which means which page visit will require the most resources / server load (number of requests, file size, etc.). It will later help identify optimisation problems.
For example:
- Could media be lighter?
- Is there a specific resource often accessed that could be cached?
- Is there a page that is unreachable for visitors or with a blocking script?
Server dimension
In the case of self-hosting, you should always think of sizing your server based on your needs. A high-powered server for few visits will not be adapted, a small server would not be able to handle high traffic or peaks in visits.