Part 4: Hiding latency

 

In this final part of the book, we turn our attention to techniques for hiding latency when you are unable to reduce it.

Chapter 10 covers the fundamentals of asynchronous processing, including event loops, I/O multiplexing, request batching, and resource management, which are essential techniques for hiding latency in the presence of I/O and long-running computations.

Finally, Chapter 11 explores predictive techniques such as prefetching, optimistic updates, and speculative execution that can make your system feel more responsive, even when underlying operations have inherent delays.