I have a web application that is deployed as follows on web hosting:
- Code(without separation of BLL, DAL etc) being uploaded to web hosting
- Database (MSSQL backup file) being uploaded to web hosting database
Is this considered a 2-tier architecture or 3-tier architecture?
I have seen different explanation from different sources
- If code and database reside on same server, then it is 2-tier. If code and database reside on different server, then it is 3-tier.
- A web application with database has a minimum of 3-tier architecture
- It is a 2-tier architecture.
Definition of 2-tier by this source
In a 2-tier architecture, web server responds to requests for web pages and a database server provides backend data storage
Definition of multi-tier by this source
In a 3-tier architecture, a web server is linked to a middle-tier layer that typically includes a series of application servers that perform specific tasks, as well as to a backend layer of existing corporate systems
Hope that someone can clarify this.