Commit Graph

3 Commits

Author SHA1 Message Date
BenClaw eef3d17431 feat(counter): add Mozo::Counter.provision! to seed Redis from CouchDB
- Reads Order.by_supplier_id_and_state view (reduce, grouped)
- Sets Redis keys: supplier_counter:<id>:orders_placed / orders_in_process
- Creates design doc if missing (from drb_counter/couchdb_design.yml)
- Rake task: rails counters:provision
- Also invokable directly: rails runner 'Mozo::Counter.provision!'
2026-05-17 22:02:56 +02:00
BenClaw 3e4bcc80c8 feat(counter): add Redis counter adapter, replace DrbCounter
- 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
2026-05-17 16:42:09 +02:00
bterkuile 0e051b1f93 rename qwaiter to mozo 2025-09-20 17:35:58 -05:00