Table of contents
- What is a 3-Tier Web Application?
- Download the Code from GitHub
- S3 Bucket Creation
- IAM EC2 Instance Role Creation
- Networking and Security
- Database Deployment
- App Tier Instance Deployment
- Internal Load Balancing and Auto Scaling (App-Tier)
- Web Tier Instance Deployment
- External Load Balancer and Auto Scaling (Web-Tier)
- Final Output
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:
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.
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.
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
Download the Code from GitHub
S3 Bucket Creation
IAM EC2 Instance Role Creation
Networking and Security
Database Deployment
-
App Tier Instance Deployment
Internal Load Balancing and Auto Scaling (App-Tier)
Web Tier Instance Deployment
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.
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..