Skip to content

0x48core/go-latency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Latency Patterns

A collection of practical Go examples demonstrating patterns and techniques for reducing latency in backend services. Each pattern lives in its own directory with a fully working demo, Docker Compose stack, and monitoring via Prometheus + Grafana.

Patterns

Pattern Description Directory
Singleflight Deduplicate concurrent requests to prevent cache stampedes and protect the database from redundant load singleflight/
Cache Layering Two-level cache (TinyLFU + Redis) with circuit breaker, graceful degradation, and stale-while-error fallback cache-layering/
Snapshot Pre-compute expensive aggregations in the background and serve results from memory to absorb traffic spikes snapshot/
Redis High Availability Redis Sentinel architecture in Kubernetes with automatic failover, persistent storage, and a Go client deployed via Helm redis-high-availability/

About

Go experiments for learning latency and performance in platform and distributed systems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors