The architecture of a web application basically describes communication. i.e. How the client and server communicate with each other.
The basic difference between a website and a web application is website is a combination of static pages. But web applications generate dynamic pages.
A website becomes a web application when it contains both static and dynamic pages.
Simply we can say for a web application, A user interacts with the website then it interacts with the server, and all logic will be handled with the server. Depending upon the architecture server may be DNS(Domain name Server), database server, chat server, video server, etc.
A web application architecture has to deal with reliability, scalability, security, and robustness.
A web application architecture uses HTTP or HTTPS protocol. Here S is a secure server.
So, the steps will be.
- Enter the Domain name or IP address on the browser
- The web server will process the request. For process response, we can use several server-side languages like PHP, JSP, Python, .NET, C#, Ruby on Rail, etc.
- Bowser will display the response. Browser response will be always in HML format.
On the basis of the above discussion, we can draw a diagram of a web architecture like this.
So, the different layers of web architecture will be:-
Business Layer:- All business logic will define this layer. This layer will use anyone server-side language like PHP, JSP, C#, etc.
Persistence Layer:- All database-related servers will use this layer. We can use MySQL, NoSQL, etc. in this layer.
So, we can say web application uses three tire architecture.
Some other parts also web applications uses like API(third-party integration), and CDN(Cross-cutting code).
you may learn more about the PHP web Architecture Manual