locked
application architechture with MVC, WCF, EF RRS feed

  • Question

  • User852864959 posted

    I am working on a web application and later we have plan to develop and make available its mobile applications as well. I am not a very experienced but just based on my understanding planning to have this architecture:

    1. MVC 3 Web project front end which will directly communicating to WCF services.
    2. Server side validations will be done on MVC model using data annotations then data will be passed to WCF layer. Security using Customer membership provider will also be implemented in MVC.
    3. WCF layer will work like a business layer as well. Where required it will be communicating to DAL which is a class library.
    4. DAL using EF will be communicating to SQL Server*
    5. Is it good regarding testing ? or for better testign I should do some changes ?

    Questions please

    1. is this architecture good ?
    2. is it good to use WCF as business layer and services layer ?
    3. on which layer we should implement which pattens ?
    4. for data validations and security is MVC correct place ?

    Thanks

    Thursday, August 30, 2012 8:24 PM

All replies

  • User197322208 posted

    is this architecture good ?

    What's the purpose?

    is it good to use WCF as business layer and services layer ?

    If the purpose is speed, no.

    for data validations and security is MVC correct place ?

    Not really. It should be done, as the user have fast feedback. However, it should be implemented also in business / services layer.

    Thursday, August 30, 2012 10:07 PM
  • User852864959 posted

    What's the purpose?

    Purpose is rapid devopment with a good architecture so for next development it may be a solid foundation.

    Haansi

    is it good to use WCF as business layer and services layer ?

    If the purpose is speed, no.

    Do you mean I should have seprate services layer and business layer ? Please advice where I should manage data validation and security in BL or SL ?

    Haansi

    for data validations and security is MVC correct place ?

    Not really. It should be done, as the user have fast feedback. However, it should be implemented also in business / services layer.

    Is MVC model data anotations not enough validations ?

    Thursday, August 30, 2012 10:35 PM
  • User-525215917 posted

    Is there any business requirement you want to meet using WCF?

    Tuesday, September 4, 2012 6:11 PM
  • User459659623 posted

    I am working on a web application and later we have plan to develop and make available its mobile applications as well. I am not a very experienced but just based on my understanding planning to have this architecture:

    1. MVC 3 Web project front end which will directly communicating to WCF services.
    2. Server side validations will be done on MVC model using data annotations then data will be passed to WCF layer. Security using Customer membership provider will also be implemented in MVC.
    3. WCF layer will work like a business layer as well. Where required it will be communicating to DAL which is a class library.
    4. DAL using EF will be communicating to SQL Server*
    5. Is it good regarding testing ? or for better testign I should do some changes ?

    Questions please

    1. is this architecture good ?
    2. is it good to use WCF as business layer and services layer ?
    3. on which layer we should implement which pattens ?
    4. for data validations and security is MVC correct place ?

    Thanks

    You can read this book for architectural patterns. This books in fantastic : http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470292784.html

    Wednesday, May 29, 2013 7:28 AM