Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Silverlight Architecture Advice or Multiple Duplex Needed
4 replies. Latest Post by vgrinshpun on November 9, 2009.
(0)
vgrinshpun
Member
0 points
8 Posts
11-05-2009 8:25 AM |
I need to build a Silverlight app that has a number of items that need to be pushed, as opposed to some other items, that would just wait there. For instance things like news, stock tickers, etc... need to be pushed. Database searches need to be returned normally (which is fine due to async nature of agLight), however we are also required to implement an incremental search were the client must be updated as the incremental results come back, so when I search three databases I update the client with each individual return. All of that sounds relatively plain to do were it for the fact that the system is permission crazy, so I must maintain a client list of permissions, and check against it at all times. Two approaches that I can see is to have a server side client object that somehow maintains multiple callbacks, and executes them as needed (how do I do this), or I write multiple zap applications - one for news, one for stocks, etc... and have them get their own push. The problem with this - I may need to have multiple client objects because there is not guarantee these apps would connect to the same server. Any advise, suggestions, examples would be greatly appreciated.
P.S. Must build for speed and large volumes of data (aren't contradictory requirements fun?)
IanBlack...
Contributor
2333 points
371 Posts
11-09-2009 9:16 AM |
Hi,
Have you had a look at my duplex example here: http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/ - although a simple implementation it should get you started. If you have specific questions about implementation of your example following a review of that I would be happy to help.
davidezo...
5690 points
875 Posts
11-09-2009 9:37 AM |
you can also try other push solutions like sockets (if you can use it) or these ones:
HTH.
11-09-2009 11:34 AM |
Ian
Thank you for your suggestion - I do have a sample Silverlight MessageDuplex server running. My need now is to push different datatypes: for instance I would have a NewsItem, or TickerItem, or WatchedEventHit, obviously for all of them I would need to type the callback with an appropriate type. So I'm looking for a decent way to do it with shared authenrication and a proper authorisation. I'm potentially looking to create multiple zap components, each registering for their own push service. The problem would the IE having a limitation of only two active connections on the box.
ThanksVadim
11-09-2009 11:42 AM |
Davide
Thank you for the suggestions - no I cannot use sockets, for a long line of reasons, however the Azure sample is something I will be looking into, because we already were planning to implement Velocity as a part of our project. Having it completely stateles would be a bonus to us