penberg/awesome-low-latency
penberg/awesome-low-latency has 1,282 GitHub stars and 75 forks. GitHot measured 0 stars in 24 hours, +2 in 7 days, and +3 in 15 days. Last checked 2026-11-12 17:59 UTC. Last push 2025-07-30.
Patterns and resources of low latency programming.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +3
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalAwesome Low Latency
Low latency programming is increasingly important across a variety of use cases. Still, many of the tips and tricks of low latency are only part of developer folklore. This document attempts to codify that knowledge for people to (re)discover the art of low-latency programming.
Patterns
How to Measure Latency Correctly
- Latency is a distribution
- Avoid coordinated omission
- Visualize latency using eCDFs or histograms
Avoid Data Movement
- Co-locate compute and data e.g. Processing-In-Memory or Processing-Near-Memory
- Replicate data for faster access
- Maximize cache hit rate
- Control memory access patterns
Avoid Work
- Tame algorithmic complexity
- Avoid dynamic memory management
- Avoid demand paging to prevent memory thrashing e.g. by using larger memory pages (hugepages on Linux, superpages on FreeBSD, ...)
- Avoid as much work as possible (for example, avoid function call overhead by using inlining)
- Avoid CPU intensive computation.
Avoid Waiting
- Partition data to avoid sharing (and, therefore, synchronization)
- Make shared data structures read-only (when possible)
- Reduce head-of-line blocking
- Avoid context switching
- Use wait-free data synchronization
- Use busy-polling instead of wakeups
- Disable Nagle's algorithm
- Use non-blocking I/O
Hide Latency
- Parallelize requests to different services
- Request hedging (send redundant requests to multiple replicase, use response from fastest one)
- Use optimized SIMD instructions for suitable problems
- Multiprocessing and multithreading
Tune for Low Latency
- Use preemptible kernel
- Interrupt and process affinity
- Watch out for bad device drivers
Advanced Topics
- Use kernel-bypass networking such as DPDK or XDP
- Use hardware offload with accelerators and FPGA
Blogs
- 11 Best Practices for Low Latency Systems by Ben Darfler (2014).
- Optimizing web servers for high throughput and low latency by Alexey Ivanov (2017).
Publications
- The Tail at Scale by Jeffrey Dean and Luiz André Barroso (2013)
- Tales of the Tail: Hardware, OS, and Application-level Sources of Tail Latency by Jialin Li et al (2014)
- Amdahl’s Law for Tail Latency by Christina Delimitrou and Christos Kozyrakis (2018)
Books
- The Art of Computer Systems Performance Analysis: Techniques for Experimental Design, Measurement, Simulation, and Modeling by Raj Jain (1991)
- Systems Performance: Enterprise and the Cloud, 2nd Edition by Brendan Gregg (2020)
- Latency: Reduce delay in software systems by Pekka Enberg (2025)
Conferences
Explorar proyectos relacionados
sindresorhus/awesome
😎 Listas Awesome sobre todo tipo de temas interesantes [NOTA: Las pull requests están temporalmente desactivadas hasta que tenga ocasión de ponerme al día con las existentes]
536,042 estrellasEbookFoundation/free-programming-books
:books: Libros de programación disponibles de forma gratuita
401,511 estrellasnilbuild/developer-roadmap
Hojas de ruta interactivas, guías y otros contenidos educativos para ayudar a los desarrolladores a crecer en su carrera.
371,926 estrellasvinta/awesome-python
La lista definitiva que responde a «Quiero hacer X en Python, ¿qué herramienta debería usar?».
334,378 estrellas