Base solution for your next web application
Open Closed

3 TIER ARCHITECTURE #4883


User avatar
0
kavin created

Hi, Currently my organization is using 3 tier architecture ( Web Server, Application Server & Database Server). We are using mvc & EF. I download ASP.Net MVC 5 .X & Jquery version. In this version , mvc layer is directly connect with the app service layer. I would like to use MVC --> API---> App service. Could you please advise how to achieve?


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kavin,

    Only the ASP.NET Core & Angular 5 template supports your scenario by default. Other versions don't support this architecture. I think it is hard to convert MVC 5.x tempalate into 3-tier architecture. You can deploy WebAPI project into a seperate website and use it's url for ajax calls from MVC application. But there are places where controllers directly uses AppServices and AppServices access to database directly. I'm not sure how to handle those cases.

  • User Avatar
    0
    alper created
    Support Team

    hi,

    With the current MVC architecture it's hard to divide MVC part and Application part. You can try AspNetCore + Angular. It's separated