Infrastructure · 2017 Open source
Kong Redis Plugin
Open-source Kong API Gateway plugin for response caching via Redis.
Tech stack
Lua Redis Kong Plugin Framework
The problem
Kong's built-in proxy-cache plugin is memory-only. Distributed deployments need a shared cache across gateway nodes, which means Redis.
Goals
- Drop-in replacement for proxy-cache with Redis backing
- Configurable TTL and cache keys
- Predictable cache invalidation semantics
The solution
- Lua plugin using the Kong plugin framework
- Redis as the shared cache backend
- Configurable TTL, cache keys, and bypass rules
My role
- → Plugin design and implementation in Lua
- → Testing across Kong versions
- → Open-source release and maintenance
UI direction
Config-driven, no UI.
User flows
Request flow
- 1 Request hits Kong with plugin enabled
- 2 Plugin checks Redis for a cached response
- 3 Hit returns cached body, miss forwards upstream and caches response
Key learnings
- Kong plugins are a clean distribution boundary for cross-cutting gateway features
- Redis as a shared cache is still the most pragmatic choice for multi-node gateways
Want something like Kong Redis Plugin?
I'm open to senior contract work. Let's talk about what you're building.
Get in touch