How qureshi-ubaid/socket-redis-k8s-prod works
This repository combines a Socket.IO chat application with Redis-backed cross-pod messaging and Kubernetes deployment/monitoring configuration. The main user flow is browser message entry, server-side broadcast, and delivery to connected clients. The README also documents managing the same local Git repository with separate origin and production remotes; that workflow is documented rather than implemented by the sampled runtime source. Kubernetes manifest relationships are included only where the README states their purpose.
Main entry points: server.js Socket.IO server · README.md Local repository · deployment.yaml App deployment · service.yaml App service
Components 15
Realtime application
- Chat interface
server.js - Socket.IO server
server.js - Message handler
server.js - Redis adapter
server.js - Metrics endpoint
server.js
Kubernetes platform
- App deployment
deployment.yaml - App service
service.yaml - Redis config
redis.yaml - Service monitor
servicemonitor.yaml
Git repository workflow
- Local repository
README.md
Other components
- Chat browser
- Redis
- Prometheus
- Origin repository
- Production repository
Connections 14
- Chat browser → Chat interface: opens page
server.js - Chat interface → Socket.IO server: opens socket
server.js - Chat browser → Message handler: emits message
server.js - Message handler → Socket.IO server: broadcasts message
server.js - Socket.IO server → Chat browser: delivers message
server.js - Socket.IO server → Redis adapter: uses adapter
server.js - Redis adapter → Redis: connects clients
server.js - Prometheus → Metrics endpoint: scrapes metrics
README.md - App deployment → Socket.IO server: deploys app
README.md - App service → Socket.IO server: exposes app
README.md - Redis config → Redis: configures
README.md - Service monitor → Prometheus: enables collection
README.md - Local repository → Origin repository: pushes to
README.md - Local repository → Production repository: pushes to
README.md