44 ms·
A comment function doesn't necessarily require a database lookup for every request, you can cache the blog page for a second or two so that it doesn't collapse
by PeterisP 7y ago
A comment function doesn't necessarily require a database lookup for every request, you can cache the blog page for a second or two so that it doesn't collapse when getting a hundred requests per second.
- llao 7y agoYes and that makes things magnitudes more complex than just serving a static HTML page.
- PeterisP 7y agoNot really, it's just basic configuration of nginx or something like that. Putting up nginx with microcaching in front of your webserver is literally a five minute task. If you have no idea on how to do it, then it's going to take half an hour with some tutorials, so even in that case it's not that much more work than serving a static HTML page.
- llao 7y agoOh how cool is that, I never even heard that term before. Thanks! It does look quite complex though, I have to learn about proxying and nginx.