←back to thread

Tower Defense: Cache Control

(www.jasonthorsness.com)
59 points jasonthorsness | 2 comments | | HN request time: 0.577s | 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 #
1. jasonthorsness ◴[] No.44008331[source]
Huh, I never thought of running it just on the one same node. I guess that would better prepare for a scale-up later.
replies(1): >>44008786 #
2. johnmaguire ◴[] No.44008786[source]
You may even be able to scale horizontally with many nginx+redis nodes, if the cache does not need to be shared.