I'm building a system using redis as a pub-sub system.
I'm thinking about ways to represent multiple groups that clients can subscribe to. I could do this with one channel per group, but this could lead to a vast number of channels on the redis side and multiple subscriptions from each channel.
Alternatively, I could put a group identifier in my messages. Each client would have a single subscription to a channel for all groups. Clients would get all messages and do their own filtering.
"Privacy" is not an issue here; it's ok for clients to see messages they don't need.
So: are there any considerations for redis servers or clients that should lead me to favour one approach over the other?
FWIW, my clients are nodejs clients.