Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In our application we have several clients that request services from a single server. Usually, the client gets a UI update from the server so we want the client to disallow additional UI requests while waiting for a server response. Following a data change that was initiated by one client, the server updates all the clients that are affected by the data change (Have open windows that need to be refreshed).

In the above environment, is there an advantage in using duplex WCF service rather than two way request-response services.

Thanks, Micha
Posted
Comments
Sergey Alexandrovich Kryukov 29-Dec-11 11:34am    
Not 100% clear -- you might need to explain the alternatives in more detail. Better yet, explain your ultimate goals. How do you know, maybe people can give your better alternatives. Also, you should understand: the choice of solution depends on purpose. So, you can use "Improve question" above.
--SA
TRK3 30-Dec-11 15:09pm    
I briefly experimented with WCF's duplex service and ran into problems with both directions being blocked when one direction was waiting on a response. That was not desireable in my application.

At the time I couldn't see anyway around and went with two separate request-response pipes (one in each direction).

Maybe I was just configuring my WCF service wrong or doing something else wrong, but I found that rolling my own gave me better control of what I wanted to do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900