Latency: Reduce delay in software systems (MEAP v8)КНИГИ » ПРОГРАММИНГ
Название: Latency: Reduce delay in software systems (MEAP v8) Автор: Pekka Enberg Издательство: Manning Publications Год: 2025 Страниц: 279 Язык: английский Формат: pdf, epub Размер: 18.1 MB
Practical techniques for delivering low latency software.
Slow responses can kill good software. Whether it’s recovering microseconds lost while routing messages on a server or speeding up page loads that keep users waiting, finding and fixing latency can be a frustrating part of your work as a developer. This one-of-a-kind book shows you how to spot, understand, and respond to latency wherever it appears in your applications and infrastructure.
In Latency you’ll learn: What latency is—and what it is not How to model and measure latency Organizing your application data for low latency Making your code run faster Hiding latency when you can’t reduce it
Put simply, latency is the delay between a cause and effect. In practice, too much latency can create problems throughout a software system, ranging from inaccurate calculations and timeouts to impatient users simply abandoning your applications. Latency issues can be challenging to avoid and troubleshoot. This book balances theory with practical implementations, turning academic research into useful techniques you can apply to your projects.
about the book Latency shows you how to troubleshoot latency issues in existing systems, and how to create low latency systems from the ground up. You’ll discover how your code runs differently on distributed systems, databases, and operating systems, and understand the common latency-causing issues in each situation. Hands-on projects help you apply what you learn.
You’ll write a latency benchmark harness to measure and visualize latency; and use colocation, partitioning, and caching to reduce latency in a REST API. Plus, tips, tricks, and author Pekka Enberg’s personal insights on latency ensure this book will remain a handy reference long after you’ve finished reading!
Coroutines are a concurrency primitive that allows asynchronous programming in a manageable and efficient way. With coroutines, you write functions that can suspend and resume code execution without blocking a thread, which is great when your application has to wait for I/O to complete or has long-running computation. Coroutines are lightweight, cooperating tasks that execute concurrently within a single thread. They are managed entirely by the programming language or its libraries, allowing for the creation of many of them without the overhead associated with threads, for example. Coroutines enable efficient and scalable concurrency because they allow many tasks to run at the same time while minimizing resource usage. Coroutines are available as part of language syntax or through libraries, such as in Rust, where both options are supported.
about the reader For software engineers with a working knowledge of backends. Examples in Rust.