OWN PROJECT
iFotos
A service for storing and sharing images online. The work covered the application, file delivery and server operations.
The project
iFotos ran for many years as an image hosting service. Its development covered user-facing features and the technical foundation: file storage, metadata, view counters and image delivery at high traffic.
Full links with CPU capacity to spare
At peak hours, network links reached their throughput limits while average CPU usage stayed around 40%. Separating application logic from file delivery made better use of the available infrastructure.
How it worked
PHP handled metadata and cached view counters. After checking a request, it handed the file to Nginx through X-Accel-Redirect; Nginx delivered the image without tying up a PHP process for the transfer. MySQL stored service data.
iFotos was an in-house project. The figures describe peak hours and are approximate.