What is the best way to develop large WCF Duplex services with a Silverlight application?

I am currently working on a Silverlight application, more precisely, with a game in which there are 2 states: Lobby and Game.

I created my application application to reflect this structure. I created a LobbyService to handle all lobbying operations, and a GameService to handle all real gaming operations. In addition, I have a third GeneralService, which handles operations that are shared between both states (chat, system messages, etc.).

I am very pleased with the design itself, but getting acquainted with the scalability of Duplex services led me to think that it might not be a good idea to have 3 services, which potentially means 2-3 duplex channels open at the same time for each client, thus taking more resources on the server.

So my question is, is it best to have only 1 WCF Service (.svc) for everything (maybe just by implementing 3 different data contracts), or should it be good to maintain the current design and logically separate the services into their own services?

Thanks!

+3
source share
2 answers
+2

LobbyService GameService /, .

, Inherhit GeneralService, .

, , .

0

Source: https://habr.com/ru/post/1714137/


All Articles