3 ms·
There's just a lot of traffic today for some reason. No more Erlang, please.
by pg 17y ago
There's just a lot of traffic today for some reason. No more Erlang, please.
- swombat 17y agoOk, well, at least I'll stop refreshing so much for now. Thanks for the information!
- jacquesm 17y agoDo you log the referrers ? Bot traffic maybe ?
- sayrer 17y agoThere would be a lot less traffic if news.yc dealt in http caching headers. This has been mentioned a bunch of times, so maybe you don't care, or maybe it's not clear how much it really does save.
- lg 17y agoIt has stuff like this, which I remember from my clojure implementation of srv.arc. (do (prn header*) (awhen (max-age* op) (prn "Cache-Control: max-age=" it)) (f str req))))
- pg 17y agoServing pages is not the bottleneck at the moment. The biggest bottlenecks are (a) garbage collection, once lazy loading has loaded 800k items into memory, and (b) that some requests, notably voting, are very expensive. I just have to rewrite some code.