Home  /  Questions  /  Question



50   50
Mar 13, 2011


Building Silverlight app with or without WCF RIA Services?

I like the architecture described in the Pattern in Action solution that is part of the Design Pattern Framework 4.0 package.

Is it possible to fit the Silverlight app into this architecture? i.e. add it to presentation layer just like the other four apps and share the same remaining layers including service layer, business layer and data layer? Compared with the architecture described in the Silverlight Pattern solution in the Design Pattern Framework, which one is the better practice to build a Silverlight app?  

I am going to use Silverlight to develop a RIA for our intranet users. Can anyone provide some advice on which one is best choice based on guidance that is present in the Design Pattern Framework?

Thanks.

 



50   50
Mar 16, 2011

This is an interesting question. Here is my views....

If you are having only Silverlight client in your intranet application, and also it of smaller or mid sized application, then you can go for RIA services.

Otherwise, if you are having multiple clients other than silverlight, then WCF can be used in the business layer so that any of the business services can also be exposed to outside world using different bindings. Architecture would be Silverlight <--> WCF [Businesslogic] <--> Entity Framework ADO <--> DataBase

Cheers...

 1 comment
 
Thanks, Vivekananda. do you have any ideas about pros and cons for the two different ways? Regards --- Steven Cai  Mar 26, 2011

1,364   100.0
Mar 24, 2011
Hi Steven,

Do checkout Microsoft LightSwitch http://www.microsoft.com/visualstudio/en-us/lightswitch

The simplicity which allows to create ntier apps is simply amazing.  It uses Silverlight as the UI, Code First Entity framework for data access and WCF RIA services as middle tier.

You can accomplish many things without writing a single line of code.  Also, the default out-of-the-box functionality doesn't suits you it provides highly customizable interface.

Do watch the how to videos here  http://msdn.microsoft.com/en-us/lightswitch/gg604823  

You can utilize you exiting silverlight, wcf, RIA knowledge an accomplish much more in less time and it perfectly suits intranet kind of environment as well.  Do give it a try before writing this off :).  Thanks.

Regards.