Suggestion Needed for Server Architecture for Single Code Base Multiple sub-domain (Multi tenant architecture) MVC .NET.
Introduction Working on creating MVC .NET Web based application, which will be connected to different DB , based on Sub-domain name. 2k Accounts , will have approx 100 users each.
Finding the best architecture suggestions to handle this.
Description - Account / Sub domains count will be 2K or more. - Each Account will contain approx 100 users. - Database will be MSSQL, each subdomain will have different db connection.
May i request you to help / expert feedback in below questions,
Questions
Type of URL structure which will suite best for above requirement. Logic 1 Or Logic 2 OR Logic 3, which is the best ?
How server can withstand this many responses ? Do this is related to Application pool in .NET ? Please advice more on this. 2000 Subdomain X 100 Users = 2,00,000 Requests , one code base can handle this many requests ?
Logic 1 Or Logic 2 OR Logic 3, which is best to implement ? What is advantage to one over other?
Google / Facebook etc handling single domain with multiple servers.Is this is the best industry standard ?
As we know , Logic 1 , we can set multiple Application Pool for each Sub domain , will this be applicable for Logic 3 as well ?
Considering Logic 1 and Logic 3 , which is the best and why ? when there will be too much load on web server , we need to add another web server at that time which Logic will be best suitable?
Sharing the points which is known,
- We can add different application pool for different sub domains.
- APP server should be high end server to manage this many requests.
- Need to add load balancer when load / traffic on server increases.
- Need a best approach , expensive infrastructure also can be considered.