How to desing this http://forums.asp.net/t/1778351.aspx/1?How+to+desing+this+Fri, 09 Mar 2012 20:25:15 -050017783514871029http://forums.asp.net/p/1778351/4871029.aspx/1?How+to+desing+this+How to desing this <p>I have to design a application (client/server) where server will be sending the data to all the connected client(clients will be connected to server either by TCP/IP or Remoting). The problem here is server has to retrieve the data from the data base and the data will be changing after every 5 seconds in the database. My questions here is ...<br> <br> </p> <ol> <li>&nbsp;&nbsp;&nbsp; What will be the best approach to establish the connection between client and server i.e: TCP/IP(socket programing) or by using Remoting </li><li>&nbsp;&nbsp;&nbsp; How to deal with the database where the data will be changing after each 5 seconds </li><li>&nbsp;&nbsp;&nbsp; What is the best why to send the data to all the clients(i.e: convert the database data into xml file or convert the database data into an object )before pushing the data to the clients </li></ol> 2012-03-09T05:57:38-05:004871066http://forums.asp.net/p/1778351/4871066.aspx/1?Re+How+to+desing+this+Re: How to desing this <p></p> <blockquote><span class="icon-blockquote"></span> <h4>getchinna_sv</h4> the data will be changing after every 5 seconds in the database.</blockquote> <p></p> <p>How is the data changing? Is the same data being modified/updated or is new data being added/deleted?</p> <p>Brutus</p> 2012-03-09T06:18:07-05:004871129http://forums.asp.net/p/1778351/4871129.aspx/1?Re+How+to+desing+this+Re: How to desing this <p>data can be updated or added ...</p> 2012-03-09T06:57:20-05:004871176http://forums.asp.net/p/1778351/4871176.aspx/1?Re+How+to+desing+this+Re: How to desing this <p>I don't entirely&nbsp;get your scenario , but I am wondering if you could benefit by implementing some sort of publisher - subscriber pattern. You can see one implementation here at <a href="http://nagavitalp.blogspot.in/2011/03/implement-publisher-subscriber-model-in.html"> http://nagavitalp.blogspot.in/2011/03/implement-publisher-subscriber-model-in.html</a></p> <p>The article shows how to do it using duplex contracts, but you can achieve it using tcp/ip sockets too, among others. Have a look at <a href="http://msdn.microsoft.com/en-us/library/ms978603.aspx">http://msdn.microsoft.com/en-us/library/ms978603.aspx</a>&nbsp;to know about the publisher - subscriber pattern in general.</p> <p>Hope this helps.</p> <p>Brutus</p> <p>&nbsp;</p> 2012-03-09T07:28:47-05:004871358http://forums.asp.net/p/1778351/4871358.aspx/1?Re+How+to+desing+this+Re: How to desing this <p>Hi,</p> <p>make use of the <strong>Hub</strong> approach&nbsp;in <a href="https://github.com/SignalR/SignalR" target="_blank"> <strong>SignalR</strong></a>.</p> <p>Grz, Kris.</p> 2012-03-09T09:29:03-05:004872357http://forums.asp.net/p/1778351/4872357.aspx/1?Re+How+to+desing+this+Re: How to desing this <p>If a .NET solution will suffice, then you could use a net.tcp WCF service to have Silverlight clients subscribe to updates being pushed. Have a look at the following for some full examples on doing this:</p> <p><strong>Pushing Data to a Silverlight Client with a WCF Duplex Service:</strong><br> <a href="http://weblogs.asp.net/dwahlin/archive/2008/06/16/pushing-data-to-a-silverlight-client-with-wcf-duplex-service-part-i.aspx">http://weblogs.asp.net/dwahlin/archive/2008/06/16/pushing-data-to-a-silverlight-client-with-wcf-duplex-service-part-i.aspx</a></p> <p><strong>Building and Accessing Duplex Services:</strong><br> <a href="http://msdn.microsoft.com/en-us/library/cc645026(v=VS.95).aspx">http://msdn.microsoft.com/en-us/library/cc645026(v=VS.95).aspx</a></p> <p>I have seen this in action and it works well vs. brute force polling or something similar.</p> <p>&nbsp;</p> 2012-03-09T20:25:15-05:00