locked
WCF RIA Service - How to avoid server round-trips? RRS feed

  • Question

  • We are using WCF RIA service for a Silverlight 4 LOB application. Our SL application makes around 100s of WCF RIA service round trips during the application launch. There are ~50 look-up tables (read only reference tables), and ~50 editable tables. Basically each entity makes a round-trip to the server. We are trying to minimize the server round-trips and looking for the right design approach to solve this problem. Can someone help us in the right direction? How is this handled in typical LOB application which uses WCF RIA Service? Any feedback in this regard will be very helpful. Appreciate it.

    Monday, February 20, 2012 2:47 PM

Answers

  • One option is to create a single entity that references the lookup entities. Then you can load all of them up as a single call.

    Tuesday, February 21, 2012 3:09 PM

All replies

  • You can use Factory pattern to load singleton instant of those lookup data lists when needed on the fly (but only one time). For the editable tables, you'll have to submit changes and refresh the data so round trip is needed.

    Tuesday, February 21, 2012 1:26 PM
  • One option is to create a single entity that references the lookup entities. Then you can load all of them up as a single call.

    Tuesday, February 21, 2012 3:09 PM