News for hackers. Stuff that matters.
Re:Website hosted on a 24 year old Linux server by seba_dos1 on Thursday April 06, 2023 @12:34PM (#35470831)
For guest book, you don't need anything like that. A simple solution could be to create a file for each entry. It's append-only anyway.

For a view counter - yes, you can use a full blown database to concurrently increment a simple integer value; or, you could do it in a few lines of code by yourself too.

Re:Website hosted on a 24 year old Linux server by loo on Thursday April 06, 2023 @01:04PM (#35471267)
$ apt install redis-server

$ redis-cli INCR hit-count

Re:Website hosted on a 24 year old Linux server by seba_dos1 on Thursday April 06, 2023 @02:49PM (#35472679)
Still a huge overkill, and you need to properly set up persistence if you use it this way.

If you know that you'll need a cannon anyway, then sure, go for it, but when all we deal with are flies there's no reason to go that far. You could easily set up this kind of website on servers so simple that getting redis running on them would inflate their complexity quite considerably.