How it works...
When you are going to design an application with Redis, two principles should be taken into consideration. The first principle is that you should make every effort to combine data manipulation to eliminate the round-trip time (RTT). The concept of RTT was introduced when we discussed the pipeline feature in the Using pipeline recipe of Chapter 3, Data Features. Redis is known for its high speed in processing requests. So, if you can reduce the RTT, a dramatic performance improvement will be obtained. Taking advantage of pipelining is a good idea, while some data APIs of Redis can reduce the RTT natively. Our first part of the previous example is a good example of this. Compared to setting the hash values one by one using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access