Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple client should have one copy of project or every client have its own copy?

I have web application that are using multiple clients. I should create one copy of application for all clients or every client should have its own copy.

I am using Asp.net MVC and SQLServer. What you suggest.

like image 843
Ali Avatar asked Feb 03 '12 04:02

Ali


1 Answers

Creating seperate projects per client will be troublesome to maintain while a single project for all clients could be difficult to customize. It is a fine line and your needs will dictate how you build your solution.

One of my more recent projects where we do SAS (Software as a Service) we were able to build our MVC application using a plugin architecture so that each client COULD have their own DLL deployed to the BIN that would enable customizations for just that client (to the Views, Assets or even the Controllers). We are able to leverage a single code base and have many clients, most without customizations and some with minor to heavy customizations.

Every client has a unique URL for their "portal" and most often they have private domains, so http://app.mycompany.com or http://mycompanyapp.com and some are even hosted on our own site, http://hostingcompany.com/client/.

By building an application that can determine what client it is based on the URL we were able to handle all of these cases with ease. When we deploy we have a single code base (deployed just ONCE to a single folder) and all of the sites use that same code deployment.

We run a web farm where we have many .NET Web Servers and have load balancing setup and the sites all have ping pages that our load balancers interact with to determine their health.

Like I said, your needs will determine what the best solution for you is.

like image 117
Nick Bork Avatar answered Oct 06 '22 05:10

Nick Bork