1. Redis Pub/Sub 구현 시 에러 발생

1. Connection in subscriber mode, only subscriber commands may be used

  1. 문제점

Untitled

  1. 내가 해본 시도
  1. 어떻게 해결하였는가??
  1. Sub 용 Redis instance와 Redis Cache용 instance를 따로 제작한다.

이유는 간단하다

SUBSCRIBE

Once the client enters the subscribed state it is not supposed to issue any other commands, except for additional SUBSCRIBESSUBSCRIBEPSUBSCRIBEUNSUBSCRIBESUNSUBSCRIBEPUNSUBSCRIBEPINGRESET and QUIT commands. However, if RESP3 is used (see HELLO) it is possible for a client to issue any commands while in subscribed state.