Updating Silverlight with data. JSON or WCF?

Posted by Alastair Pitts on Stack Overflow See other posts from Stack Overflow or by Alastair Pitts
Published on 2010-05-27T05:07:22Z Indexed on 2010/05/27 5:11 UTC
Read the original article Hit count: 285

We will be using custom Silverlight 4.0 controls on our ASP.NET MVC web page to display data from our database and was wondering what the most efficient method was? We will be having returned values of up to 100k records (of 2 properties per record).

We have a test that uses the HTML Bridge from Javascript to Silverlight. First we perform a post request to a controller action in the MVC web app and return JSON. This JSON is then passed to the Silverlight where it is parsed and the UI updated. This seems to be rather slow, with the stored procedure (the select) taking about 3 seconds and the entire update in the browser about 10-15sec.

Having a brief look on the net, it seems that WCF is another option, but not having used it, I wasn't sure of it's capability or suitability.

Does anyone have any experiences or recommendations?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about wcf