Skip to main content

Microsoft Silverlight

Answered Question Silverlight Architecture Advice or Multiple Duplex NeededRSS Feed

(0)

vgrinshpun
vgrinshpun

Member

Member

0 points

8 Posts

Silverlight Architecture Advice or Multiple Duplex Needed

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?)

IanBlackburn
IanBlack...

Contributor

Contributor

2333 points

371 Posts

Re: Silverlight Architecture Advice or Multiple Duplex Needed

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.

 

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net

davidezordan
davidezo...

Contributor

Contributor

5686 points

873 Posts

Silverlight MVP
Answered Question

Re: Silverlight Architecture Advice or Multiple Duplex Needed

Hi,

you can also try other push solutions like sockets (if you can use it) or these ones:

HTH.

Thanks, Davide

Silverlight MVP

Blog Twitter Silverlight Experts

vgrinshpun
vgrinshpun

Member

Member

0 points

8 Posts

Re: Re: Silverlight Architecture Advice or Multiple Duplex Needed

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.

Thanks
Vadim

vgrinshpun
vgrinshpun

Member

Member

0 points

8 Posts

Re: Re: Silverlight Architecture Advice or Multiple Duplex Needed

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

 Thanks
Vadim

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities