Files
goodgo-platform/.env.example
Ho Ngoc Hai 455c959f44 feat(api): split Redis connection for BullMQ vs cache (RFC-004 Phase 3 WS1)
Introduce getRedisConnection('cache' | 'queue') so ops can point BullMQ at
a separate Redis instance from the cache/throttler/ws-adapter without a
code change. Falls back to REDIS_HOST/PORT/PASSWORD when REDIS_QUEUE_*
vars are unset, so dev and single-instance deploys are unchanged.

- New helper + describeRedisTopology() (safe summary, never leaks password)
- BullModule.forRoot now uses the queue connection
- .env.example documents optional REDIS_QUEUE_HOST/PORT/PASSWORD
- 6 unit tests cover defaults, fallback, precedence, shared/split topology,
  and password leak prevention

Refs: GOO-175

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-24 14:18:00 +07:00

9.4 KiB