Embed presentation
Download to read offline






![location / {
set $shards_num 24;
perl sharding::handler;
}
location /shard0/ {
internal;
rewrite
^/shard[0-9]+(/.*) $1 break;
proxy_pass http://shard0;
}](https://image.slidesharecdn.com/shorin-161028174723/85/90-7-320.jpg)





The document discusses techniques for storing and accessing large numbers of images using Nginx. It includes information about sharding images across multiple servers using Nginx rewrite rules and Perl modules, as well as using PUT requests and internal redirects to optimize storage and retrieval of images. Contact information is provided for Andrey Shorin, who will be speaking on this topic at an upcoming conference in Moscow.






![location / {
set $shards_num 24;
perl sharding::handler;
}
location /shard0/ {
internal;
rewrite
^/shard[0-9]+(/.*) $1 break;
proxy_pass http://shard0;
}](https://image.slidesharecdn.com/shorin-161028174723/85/90-7-320.jpg)



