I need to serve a large number of very small static files (e.g. 1Million, ~1KB), from a VPS. My current favoured approach is Nginx, but my main concern is hitting slow VPS disks.
Is there an approach I can use which would serve these files from local memory, rather than going to the Disk? I understand that the OS (Debian in this case) will keep 'hot' files in memory, but I'm worried that this will be difficult to monitor or influence. Perhaps there is a way to get Nginx to serve from memory? Or some other approach entirely?