3e4bcc80c8
- Add Mozo::Counter::Redis with same get/set/incr/decr interface - Add redis gem (~> 5.0) to Gemfile - Update cable.yml to use Redis adapter in production (shared with counters) - Document DrbCounter → Redis migration in broadcasting-migration.md - Redis installed and running on vmi3300327 - Leave Faye as current broadcaster; both switches are one-line changes DrbCounter problems solved: - In-memory → persistent (RDB + AOF) - Single-process DRb → multi-process safe Redis - Atomic INCR/DECR across Puma workers - One less custom process to manage
18 lines
494 B
YAML
18 lines
494 B
YAML
# ActionCable configuration for real-time broadcasting.
|
|
#
|
|
# Development: async adapter (in-process, no external dependency).
|
|
# Test: test adapter.
|
|
# Production: Redis adapter — required for multi-worker deployments.
|
|
# Redis is also used for Mozo::Counter (replacing DrbCounter).
|
|
#
|
|
development:
|
|
adapter: async
|
|
|
|
test:
|
|
adapter: test
|
|
|
|
production:
|
|
adapter: redis
|
|
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
|
|
channel_prefix: mozo_backend
|