vendredi 24 février 2017

Multiple servers for each module or one server to handle requests from multiple clients

We have a scenario in which:

  • we got a multiple modules (devices, audio, video) (max 10?)
  • multiple interface clients connecting to specified module (max 2/3?)

We are wondering how to properly manage the communication between interface clients and device clients. One solution is to make a server manager which will handle one connection to multiple interface clients and one connection to multiple modules. But, I'm not a fan of it due to multithreaded code that should be manage.

So mine proposal is to make a manager which have got multiple servers, so each module and specified interface will be clients that communicate with concrete module server.

Which one is better and why? In mine opinion the version with multiple servers will separate multithreaded logic for each module. On the other hand we will have multiple connections, but is it a thing to worry about it?

We also wonder what to use for the communication. Is it wcf better over signalr if we want a fast and stable communication with specified module? I think not, but signal r is still under development.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire