A paper listing patterns to reduce latency as much as possible. There are lesser known tricks in there.