세 패턴, 자주 결합
Event: 서버 push, 클라 react. notification, price update, presence — user 가 지금 안 물어본 모든 거. Command: 클라가 서버한테 뭐 하라고; 서버가 응답할 수도 안 할 수도. chat 보내기, profile update, room join. Pub/Sub: 클라가 명시적으로 topic 구독; 서버가 구독 topic message 만 보냄. 한 connection 이 여러 독립 feed multiplex 할 때 유용.
대부분 앱이 셋 다 써
Trading 플랫폼: market data 엔 pub/sub (symbol 구독), order placement 엔 command, fill 엔 event. Chat 앱: room join 엔 pub/sub, message 보내기 엔 command, typing/presence 엔 event. 패턴 합쳐 쓰지, 배타적 아냐.