Deploying 3-Tier Web Application using AWS

Deploying 3-Tier Web Application using AWS

What is a 3-Tier Web Application?

A three-tier web application is a type of architecture used in software development to design and organize web-based applications. It separates the application into three distinct layers or tiers, each with its own specific set of responsibilities:

  1. Web Tier (Tier 1): The topmost layer deals with the user interface and presentation logic. It is responsible for displaying information to users and gathering user input. Typically, this tier includes web browsers or mobile devices as the client-side interface.

  2. Application Tier (Tier 2): The middle layer, also known as the business logic or application logic layer, processes and manages data and business rules. It acts as an intermediary between the presentation tier and the data tier. Here, application servers or web servers handle tasks like data processing, validation, and business rules implementation.

  3. Database Tier (Tier 3): This is the bottommost layer responsible for storing and managing data. It handles data storage, retrieval, and manipulation. Databases like MySQL, PostgreSQL, or NoSQL databases are commonly used in this tier.

The three-tier architecture provides several advantages: modularity, scalability, and easier maintenance. Each tier can be developed and scaled independently, making updating or replacing specific components easier without affecting the entire application. Additionally, it enhances security by isolating sensitive data in the data tier and reducing the exposure of business logic to the presentation layer.

Link of the Workshop by AWS: https://catalog.us-east-1.prod.workshops.aws/workshops/85cd2bb2-7f79-4e96-bdee-8078e469752a/en-US/part6/launchtemplate

  1. Download the Code from GitHub

    git clone github.com/aws-samples/aws-three-tier-web-a..

  2. S3 Bucket Creation

  3. IAM EC2 Instance Role Creation

  4. Networking and Security

  5. Database Deployment

  6. App Tier Instance Deployment

  7. Internal Load Balancing and Auto Scaling (App-Tier)

  8. Web Tier Instance Deployment

  9. External Load Balancer and Auto Scaling (Web-Tier)

    After doing all the above tasks given in the Link of the Workshop, Copy the DNS address of the web-tier load balancer and open the address to see our Application running on Live Server.

  10. Final Output

    Note:- To install Nginx use this Command -> yum install nginx -y

    Before Installing SQL CLI give these 3 commands first:-

    1. sudo wget dev.mysql.com/get/mysql57-community-release- el7-11.noarch.rpm

    2. sudo rpm --import repo.mysql.com/RPM-GPG-KEY-my...

    3. sudo yum install dev.mysql.com/get/mysql57-community-release..


Did you find this article valuable?

Support Sumit's Tech by becoming a sponsor. Any amount is appreciated!