title: Redis pub/sub best practice
body: <p>I'm writing a p2p communication between two or more node process with redis pub/sub<br>
   using <code>ioredis</code> lib.</p>
  
  <p>I will publish different types of messages like:</p>
  
  <ul>
  <li>hello: to let know to others subscriber that a new process is connected</li>
  <li>wanna-pick: to let a process to ask to others process if it can take a "work"</li>
  <li>pick: as acknowledge to notify the other process</li>
  </ul>
  
  <p>I don't know if it is better for redis <code>v3.2.1</code> to subscribe to many channels (one per message type) or create a single channel and send a json-message with an attribute that defines the message's type like:</p>
  
  <pre><code>{type: 'hello', message: 'hello i'm process foo' }
  
  {type: 'wanna-pick', message: 'foo wanna pick work 42' }
  </code></pre>
  
  <p>Thanks in advance</p>