4 ms·
Completely shameless plug here: My webserver[1] will outperform nginx for serving up static content like this. It has many optimizations, like not opening the
by rkeene2 9y ago
Completely shameless plug here: My webserver[1] will outperform nginx for serving up static content like this.
It has many optimizations, like not opening the file its serving (which reduces the latency of walking/interacting with the VFS layer); almost no runtime allocations on the heap (minimal stack frames and sizes as well) which can be completely disabled at the expense of logging; high performance logging which does not interfere with processing requests; the normal stuff in a fast webserver (sendfile, keep-alive, minimal code paths between reading the user request and delivering the first byte).
[1] http://filed.rkeene.org/ http://filed.rkeene.org/
- tetha 9y agoColor me interested. How do I health-check this in a LB? What kind of caching headers do you give me out of the box?
- rkeene2 9y agoYou can check its health by making a request to a known resource -- they're practically free. It delivers an ETag header that it computes the first time it opens a file and maintains as long as that file is open. If it has to re-open the file it will generate a new ETag value.