The essential Varnish
Discover how Varnish, a reverse proxy and HTTP cache, reduces response times and improves the performance of a Docker architecture.

Sur cette page1 sections
Loading a web page can seem simple for a user: type an URL, press Enter, and there you go, the site appears. But behind this apparent simplicity lies complex mechanics and, above all, performance issues that can penalise your users. Let's see together how to address this problem in this blog dedicated to Varnish!
With Varnish, you optimise your performance and improve the user experience. And thanks to our expertise and proven Docker stack, you benefit from a turnkey solution, ready to meet all the challenges of the modern web.
Understanding the actors of a web request
A web request goes through several stages and involves different actors, each with a specific role and an impact on the overall response time:- The client (browser) : It initiates the request by typing the URL and sending a request to the server.
- DNS servers : They translate the domain name into an IP address, an essential step for locating the appropriate server.
- Content Delivery Networks (CDNs) : These serve static files, such as images or scripts, from servers close to the user.
- The application server : It receives the request, performs the necessary dynamic processing (such as querying a database or executing code) and generates a response.
- The database server : Often called upon by the application server to provide real-time data.
- Intermediate caches : They intercept and respond directly to requests when a cached version of the content is available.
The proportion of time consumed by each actor
In the total response time, each actor contributes differently. For example:- DNS resolution can represent 10% of the total time.
- CDNs optimise static content to reduce their impact, but this remains around 20%.
- The application server and the database often represent more than 50% of the total response time, especially for dynamic pages. This bottleneck is particularly problematic during traffic peaks.




