01 · Two-tier architecture
One cache product. Two tiers. Decided per proxy.
Apinizer ships a true two-tier cache. The local tier lives inside every gateway pod — a hot path that never serializes, never crosses the network, and answers in under a millisecond. The distributed tier is a Hazelcast cluster on Kubernetes — the cluster-wide source of truth that survives a pod restart. Pick the tier on the cache policy: distributed when consistency matters, local when latency is the budget.
- Local tier lives in the gateway pod — no network hop, no serialization
- Distributed tier is a Hazelcast cluster on Kubernetes
- Per-proxy storage type — local or distributed on the same policy screen
- Local tier answers in under a millisecond — backed by an in-pod map
- Distributed tier is cluster-wide truth — survives pod restarts and rolls
- Same cache key contract on both tiers — switch without touching code
- Per-entity local cache sets — API proxies, routing, policy, circuit breaker
- Memory-tuned for the gateway request profile — no GC surprises
- Local tier
- Distributed tier
- Per-proxy choice
- Sub-ms hit
- Hazelcast cluster