←back to thread

Tower Defense: Cache Control

(www.jasonthorsness.com)
59 points jasonthorsness | 1 comments | | HN request time: 0.895s | source
Show context
grep_it ◴[] No.44008029[source]
> Why Not Redis? I have a single VPS, so I can get by with a simple SQLite database. If I had many instances of my API on separate servers

Just to push against this a bit. Redis can be very low memory cost and is very easy to run (I give it 5mb). I have a small single server with a few instances of my API that let's me cache pretty much everything I need.

replies(3): >>44008331 #>>44008825 #>>44010089 #
hangonhn ◴[] No.44008825[source]
It's so obvious once I've heard someone else say it but wow that's really clever actually.
replies(1): >>44011016 #
1. thr0waway2i ◴[] No.44011016[source]
Before "The Cloud" taught people to split everything into dedicated VMs, it was common to run multiple services on the same machine.