Web Application Architecture

1. Monolithic Architecture

  • Monolithic architecture is considering your web app as one big, self-contained unit where everything, from its behavior to its working, is packed together.
  • Under this, the entire web application is developed and deployed as a single unit.
  • All components, including user interface, business logic, and database access, are tightly integrated.

2. Client-Server Architecture

  • Consider the process followed on a restaurant. The waiter takes the orders from customers and communicates with the chef in the kitchen, who will actually cook the food.
  • Now relate waiter to the client, customers to be users and the chef to be the server. The client takes the requests from the users and processes it to the server where the actual processing is done.
  • In the client-server model, the application is split into two main parts: the client which handles the user interface and the server which manages the data processing.
  • Communication occurs over a network, often using HTTP.

3. Microservices Architecture

  • Consider a normal town where each shop (microservice) has a specialty in some work.
  • This way, if one shop changes something, it doesn’t affect the others.
  • Microservices break down the application into small, independent services, each focusing on a specific function.
  • Services communicate through APIs.

4. Serverless Architecture

  • In a serverless setup, you don’t have to worry about maintaining the kitchen (server).
  • It’s like ordering your food (function) which is prepared somewhere else, and you only pay for what you consume.
  • Serverless architecture involves running code without managing the underlying infrastructure.
  • Applications are built using small, stateless functions triggered by events.

5. Progressive Web App (PWA) Architecture

  • It can work even when there’s no internet, like a person who doesn’t need a specific headquarters.
  • PWAs make sure your experience is seamless by using smart strategies (service workers), even if your internet connection isn’t.
  • PWAs aim to provide a native app-like experience within a web browser.

Advanced Java – Getting Started to Web Application

A Web Application is software that executes on the web browser. It links the customers and the service providers as a medium of exchange. For example, Amazon provides a marketplace where sellers and buyers can coexist. It provides a mechanism to exchange services and perform operations seamlessly.

Similar Reads

Understanding Web Clients and Servers

For any operation to be performed, a service provider and a service consumer need. The same relies on web applications. The one which provides the service is the web server and the one which requires it is the web client. The web client requests the client, in return for which the client responds. This is usually done through HTTP protocol and that’s the reason, why sometimes a web server is also known as an HTTP server....

Client-Server Communication

Client-server communication is usually done through TCP/IP protocol. TCP covers part of transport and the sessions layer in a typical OSI model. TCP being a connection-oriented protocol makes sure that the connection remains in place till the messages are exchanges at the very end of the queue....

Introduction to Servlets

...

Web Application Architecture

Servlets acts as the server-side heroes that processes the requests from the users’ web browser and sends back the response after the required manipulation is completed. Imagine it to be a communication channel between your server and users’ web browsers....

Java Web Frameworks

...

Handling HTTP requests and responses in Java servlets

1. Monolithic Architecture...

When to Choose a Framework

Java web frameworks acts like toolkits for building web applications. These frameworks provide you with a set of rules to make your job easier, you are being the master for the application. Two popular ones are Spring MVC and its close friend, Hibernate....