Tagged articles

singleflight

7 articles · Page 1 of 1
samdeepthink
samdeepthink
Jul 16, 2026 · Backend Development

How Off‑Heap Caching Eliminates GC Scanning for Massive Product Data

The article explains why a large product cache moved from an in‑heap Caffeine cache to an off‑heap OHC solution, detailing serialization trade‑offs, per‑dimension cache configuration, singleflight loading, and the performance gains observed during high‑traffic promotions.

GC optimizationKryocache partitioning
0 likes · 4 min read
How Off‑Heap Caching Eliminates GC Scanning for Massive Product Data
Go Programming World
Go Programming World
Nov 25, 2024 · Backend Development

Understanding Go's singleflight: Request Merging, Implementation and Use Cases

singleflight, a Go concurrency primitive from the x/sync package, merges duplicate in‑flight requests to reduce server load, with detailed usage examples, source code analysis, and discussion of its differences from sync.Once and typical application scenarios such as cache‑penetration, remote calls, and task deduplication.

Gocacheconcurrency
0 likes · 26 min read
Understanding Go's singleflight: Request Merging, Implementation and Use Cases
Inke Technology
Inke Technology
Oct 20, 2022 · Backend Development

How We Cut 60% of Backend Load with Go’s singleflight and Smart Caching

This article examines how the mic‑queue list in a live‑streaming app caused heavy server load due to three‑second polling, and details a systematic performance‑optimization process—including analysis, reducing I/O, employing Go’s singleflight caching, and switching JSON libraries—to cut resource usage by up to 60% while preserving user experience.

backendcachinggolang
0 likes · 7 min read
How We Cut 60% of Backend Load with Go’s singleflight and Smart Caching