Updated in November 2026. This article was first published in Spanish and Italian in 2013. We have checked its figures against the original sources, removed what didn’t hold up and added what has happened since to the pieces YouPorn used.
Short answer: in 2011 YouPorn threw away its website, written in Perl on MySQL, and rebuilt it in six months with PHP and Redis. Redis became the main database: the website did not read from MySQL. In front of it they put HAProxy to spread the load, Varnish as a cache and Nginx with PHP-FPM, on the Symfony2 framework. With that they served about 100 million page views a day and up to 300,000 queries per second to Redis.
Where these figures come from
From a talk by Eric Pickup, then lead developer at YouPorn, at the ConFoo conference in Montreal in March 2012: «Building a Website to Scale to 100 Million Page Views Per Day and Beyond». The slides are still on SlideShare, and the HighScalability blog published a summary of the talk and a later interview with more details.
Why they moved from Perl and MySQL to PHP and Redis
The original site dated from 2006 and had grown patch by patch. Pickup explained that the Perl and MySQL architecture had become hard to maintain and to scale, and that they decided to rewrite all of it in 2011. The switch was completed in February 2012, when he announced on the Redis mailing list that YouPorn was now running entirely on Redis.
The most striking decision was to use Redis as the main database, not just as a cache. Redis data structures (lists, sorted sets, hashes) matched what a video site does: lists of the most viewed, the top rated, the newest in each category. MySQL stayed in the background, to build those lists and for one-off queries, but pages were served from Redis alone.
The pieces, from the outside in
- HAProxy: receives all the traffic and spreads it across the servers.
- Varnish: caches pages that have already been generated, so most visits never reach PHP. Images, CSS and JavaScript went through external CDNs.
- Nginx and PHP-FPM: the web server and the process that runs PHP.
- Symfony2: the PHP framework the application was written in.
- Redis: the database the website read from.
- MySQL: the backing store, off the path of each visit.
- Syslog-ng: collects the logs of all the machines in one place.
What has changed since then
- Redis changed its licence. In March 2024 it dropped the BSD licence for others that are not considered open source. Eight days later the Linux Foundation launched Valkey, a fork backed by AWS, Google Cloud and Oracle. In May 2025 Redis 8 returned to open source under the AGPL. Today you have to choose between the two.
- Symfony is still going. Symfony2 was left behind years ago, but the framework keeps releasing new versions and remains one of the most used in PHP, as does PHP-FPM with Nginx.
- The company changed its name. YouPorn then belonged to Manwin, which became MindGeek and, in 2023, after its sale to a Canadian private equity firm, Aylo.
What still applies to any website
- A cache in front (Varnish or a CDN) takes away more load than anything else, long before optimising code.
- If the data read on every page fits in memory, serving it from Redis or Valkey instead of a relational database changes the scale.
- Rewriting a whole website is risky, but sometimes it costs less than patching forever: they did it in six months, with a measurable traffic target.
Frequently asked questions
What technology is YouPorn built with?
According to its lead developer in 2012: PHP with Symfony2, Redis as the main database, MySQL as a backing store, Nginx with PHP-FPM, Varnish and HAProxy. What they use today has not been made public.
Why did YouPorn use Redis instead of MySQL?
Because its pages are mostly ordered lists (most viewed, top rated, newest), and Redis keeps them in memory and returns them much faster than an SQL query.
How much traffic did YouPorn have in 2012?
About 100 million page views a day and peaks of 300,000 queries per second to Redis, with a stated goal of reaching 200 million.