Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
theazureguy
· 6mo ago · 0 comments
haha not quite, db was struggling under the load for a few minutes. b1ms postgres doesn't love 6k requests in 30 mins.
Comments
[–]
firefoxd
6mo ago
A 30 second memcached/redis/etc goes a long way when sharing on HN. You go from 6k db hits to 60 hits in 30 minutes. Worked for me since 2013 [0].
[0]:
https://idiallo.com/blog/handling-1-million-web-request
[–]
theazureguy
OP
6mo ago
already on it, just shipped in-memory output caching while the thread was live. next step redis if it needs it
[–]
GordonS
6mo ago
Those tiny b1ms VMs are absolutely pitiful (long time Azure sufferer here). It's crazy how little compute and memory Azure give you for so much money.
[–]
theazureguy
OP
6mo ago
yeah scaling it up now, was hoping to keep costs down but HN had other ideas
[–]
isoprophlex
6mo ago
Using azure managed PG is certainly an interesting choice if you were hoping to keep costs down
[–]
alentodorov
6mo ago
try CF. tried a
version of this in feb, and it handles quite fine even under ai bot surges of 1.5m hits per day. and it’s still within the free limit btw ;)
stationwatch.co.uk
[–]
kaiwn
6mo ago
That’s… 3.3 r/s?