Skip to content

codexponent/scalable-employee-mgmt-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Scalable Employee Mgmt Portal

Scalable Employee Management Portal

Motivation:

In today's world, our application should be able to handle multiple requests from customers all around the world. So it is important to make an application fault-tolerant and able to scale as the need of the demand. This post talks about how to create a scalable web application using various AWS services like Load Balancers, Target Groups, Auto Scaling, Launch Configuration, Amazon Machine Image(AMI), Route 53, and so on.

Architecture:

architecture

Prerequisites:

  1. AWS EC2
  2. AWS AMI
  3. Load Balancer
  4. Auto Scaling Groups
  5. MySQL Instance
  6. Route 53

Replication Steps:

  1. Create a config.ini file
[MYSQL]
user=
password=
host=
database=
  1. Commands to confgure the application
git clone [email protected]:codexponent/scalable-employee-mgmt-portal.git
pip install -r requirements.txt
python main.py
  1. Create a reboot cronjob for the AMI Image
touch run.sh
echo "#!/bin/bash 
python main.py" > run.sh

crontab -e
@reboot /home/ec2-user/scalable-employee-mgmt-portal/run.sh
  1. Start to create AMI Image written on the post.