Scenario LT-ecommerce delivery System
-
This is product which helps in tracking deliveries and returns of ecommerce products.
-
The high level architecture looks as shown below

-
To increase the availability of the application lt is hosting the application in two data centers

-
Now lets look at technologies used

-
Now lets look at the process of configuring Database
- Take a powerful server and install centos (linux) on two servers in data center and datacenter 2
- Find the right version of postgres and install postgres on two servers in data center and datacenter 2
- configure database replications b/w databases in two datacenters by taking help from DBA
- Create a Database and import data if required.
- Configure backup for the databases taking help from DBA
-
Now lets take a look at the process of bringing up application servers
- Take a powerful server and install ubuntu (linux) on two servers in data center and datacenter 2
- INstall the right version of python
- Copy the package developed by your dev team and configure application servers
- establish connectivity b/w application server and db server
-
Now lets take a look at the process of bringing up web servers
- Take a powerful server and install redhat (linux) on two servers in data center and datacenter 2
- Install the apache server
- Configure the web application package on apache server to run the website/application
-
Now the IT Team needs to maintain
- webserver
- appservers
- db servers
-
for maintaining servers we need experts in the area of
- networking
- application servers
- web server
- DBA
- IT admins
-
This is becoming costly for LT, they have decided to move to AWS lets see what changes

-
Now lets understand how the team configures the database
- Launch AWS RDS Service with Postgres engine
- Import the data
- Configure replication to other region
-
Now lets understand how to configure application services
- option 1: launch vm (ec2) in aws in region 1 and do the installation
- option 2: launch vm (ec2) in aws in region 1 with application preinstalled (using image)
-
Now create a load balancer
-
Lets create a postgres database in aws in region oregon

-
Note:
- Creating AWS Free tier account Refer Here
- Create an AWS EC2 instance Refer Here
- Setting up and using windows terminal Refer Here
- Install necessary softwares Refer Here
