Microservices responsible for a few microseconds — friends and foes
summary
Examines ultra-low latency in microservices and what affects sub-microsecond and microsecond response times. Covers hardware and software factors across application, JVM, OS, chipset and CPU, and techniques to reduce latency such as thread affinity, CPU isolation, effects of core interactions, and using shared memory-based IPC for microservices.
AI-written summary · about
chapters (34)
- 0:00Microservices intro
- 1:49Speaker intro
- 3:14Disclaimers
- 3:36Example microservice
- 6:29Response time basics
- 8:17JMH benchmarking
- 12:35Benchmark validation
- 13:01Less code better perf
- 16:32Code optimization
- 18:02Single-threaded apps
- 19:08Volatile vs lazySet
- 22:22Avoid object creation
- 24:07Framework pitfalls
- 24:51Reflection and unsafe
- 25:16Socket optimization
- 28:49Active vs passive wait
- 30:43StringBuilder reuse
- 32:32GC impact
- 33:59Object pooling
- 35:06In-memory comms
- 37:25Memory-mapped files
- 40:40Hardware optimizations
- 41:23CPU power states
- 42:08Turbo boost limits
- 43:11CPU frequency governors
- 44:13CPU core isolation
- 45:38NUMA architecture
- 46:46Huge pages
- 47:30Huge pages impact
- 48:54SSD optimizations
- 50:40Kernel bypass
- 51:46OS tuning tools
- 52:29Summary
- 53:17Q&A
