I have some code which basically does this psudocode()
registerCamera(id) {
createRedisPubChannel("Camera_"+id)
}
cameraDisconnect() {
removeRedisSubChannel("Camera_"+id)
}
I then communicate with that camera through that channel and this allows me to have multiple engines.
I could also structure the code so that instead of creating a channel per camera. I could create one channel called "cameraComms" and make sure every message contains a camera id.
I wonder are there any performance advantages / disadvantages to either design pattern?
If it helps I can have up to 200+ cameras registered per process, and communication is across 3 different boxes running 3 instances of Redis.
Help/advice greatly appreciated.