query a redis db
General rule: if you're looking for "fastest", pulling data over the network is not part of the solution.As for the choice of language, it's going to be heavily motivated by what languages you (or your team) know how to benchmark and optimize. It doesn't matter if, say, Befunge is the "fastest" if you don't have anybody working on it that can optimize it.