locked
Server - Client communication RRS feed

  • Question

  • Hi everyone,

    I"m trying to find a good solution to a problem that i have.

    i"m planning & developing  a client - server system, and one of the requierments is that the server need to communicate with the clients for those resonse:

    1. notify every client that new configuration created, and they need to get it (via web service)

    2. perform actions against specific client (i.e. Stop\Start ).

    My questions are:

    1. what is the best architecture for those kind of requests ?

    2. is WCF gives me a good solution for this kind of problems (server communication with clients) ?

     

    Thanks in advance,

    Baruch

    Thursday, May 20, 2010 2:34 PM

Answers

  • Hi Baruch,

    1. notify every client that new configuration created, and they need to get it (via web service)

    -When do you want to notify clients? Depending on your requirement you may consider adding additional code at client side before calling the service you need. You can add another web service to let client get latest version of configuration and compare with a copy it saves locally. If number is higher than local one client needs to fetch new configuration. Or you can use the duplex service if you need immediately notify clients whenever there's a configuration created and client is online.

    2. perform actions against specific client (i.e. Stop\Start ).

    -You can create duplex services to achieve this:

    http://msdn.microsoft.com/en-us/library/ms731064.aspx


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Monday, May 24, 2010 5:43 AM