Distributed Caching Patterns in Kubernetes
summary
Explains concrete Hazelcast patterns and Kubernetes ops: cache-aside vs cache-as-SOR with read‑through and write‑behind, key partitioning with default backup 1 and automatic promotion, four deploy modes (embedded, sidecar, reverse‑proxy, client‑server) and tradeoffs, and three real deployment routes: 3-member Helm chart + Management Center, the Operator (operatorhub.io), or Hazelcast Cloud. Covers Prometheus/Grafana metrics, HPA on CPU or custom JVM metrics, Vertical Pod and Cluster Autoscalers, pod anti‑affinity, zone‑aware backups, and the 30s default shutdown limit (30s Kubernetes termination grace).
AI-written summary · about
chapters (30)
- 0:00Introduction to talk
- 0:23About speaker and agenda
- 1:10What is Hazelcast
- 2:14Why use distributed cache
- 3:43Caching patterns overview
- 4:04Cache-aside pattern
- 4:46Cache-as-SOR patterns
- 6:11Hazelcast data partitioning
- 7:54Caching patterns in Kubernetes
- 8:38Embedded caching pattern
- 10:25Sidecar caching pattern
- 11:55HTTP reverse proxy caching
- 13:25Client-server caching pattern
- 14:51Managed cache service
- 15:38Embedded mode in Spring Boot
- 16:22Deploying Hazelcast in Kubernetes
- 17:04Hazelcast Helm chart deployment
- 18:29Kubernetes operator deployment
- 19:14Best practices for Kubernetes
- 19:36Resource allocation in Kubernetes
- 21:01Pod anti-affinity rules
- 22:28Multi-zone deployment
- 24:14Day-to-day operations
- 24:37Scaling Hazelcast cluster
- 25:23Horizontal pod autoscaler
- 26:51Vertical pod autoscaler
- 27:37Cluster autoscaler
- 28:21Rolling upgrades in Kubernetes
- 30:05Graceful shutdown optimization
- 31:09Monitoring and alerting
