1,105 karma · joined November 23, 2010
Benchmark : http://bit.ly/12QZsRs
Redis serves 1 req at a time, but you can write to Redis socket and read from Redis socket during that time.
Rediscala (the RedisClient) use 2 actors: The first one handle I/O (I/O bounds). That actor also merge redis requests in a buffer, so there is less messages (but bigger) going to the TcpWorker (akka worker handling a tcp socket). The second decode replies (CPU bounds)
Rediscala needs an akka actor System and sometime replies are of type ByteString.
Since when the same url can be used for many stories?
Give them the liberty to choose!
HN should remove all after the '?' then do a diff between the 2 contents, and keep the short url if the contents are the same.
This is the only way to change the world economy and stop the race to the bottom.
if(...) ...;ELSE {
}
That's the first time I see this and hope the last.