News for hackers. Stuff that matters.
Re:Rob Pike's Rules of Programming (1989) by Cthulhu_ on Thursday August 13, 2020 @07:56AM (#24142401)
There are only two hard things in computer science: naming things, cache invalidation, and off-by-one errors.

I'm trying to never implement any caching if I can help it. The database itself does caching already as well.

And if you DO need caching, keep your hands off of the application; add a cache layer in front, or between the application and the database. But don't invent it yourself.

Re:Rob Pike's Rules of Programming (1989) by bernawil on Thursday August 13, 2020 @10:21AM (#24143589)

  And if you DO need caching, keep your hands off of the application; add a cache layer in front, or between the application and the database. But don't invent it yourself.

so, redis?