How I made a powerful cache system using Go
summary
A cache proxy called swan is written in Go and ships as middleware for Traefik, Caddy and others, using Badger or pluggable providers and a YAML config. It claims first call 14 ms then cached <3 ms, implements request coalescing via singleflight, exposes JWT‑protected APIs to list keys and purge by id/regex/tag, and runs as version 1.6.19. Configuration hot‑reload, TTL/tag invalidation, and async backend updates are implemented; benchmarks show thousands of requests with max latencies in the tens of milliseconds.
AI-written summary · about
chapters (9)
- 0:00Start
- 7:43The power of
- 14:36YAML configuration
- 26:39Cache management
- 27:20Security API
- 28:09How to code this?
- 32:59Run E2E tests on plugin
- 33:42Generate docker
- 34:09Generate artefacts
related talks
37mHow I made a powerful cache system using Go
37mGo learning by project: Souin (rex)
49mCache à la carte: a framework for in-memory caching
40mBuilding a Highly Concurrent Cache in Go: A Hitchhiker's Guide
36mCaching Strategies for an Erlang Based Web Stack
30mCaching patterns for lazy devs for lazy loading
45mWhere is my cache? Architectural patterns for caching microservices by example
53mLeveraging Caching For Cloud Native Applications
