A  3 Server Web Infrastructure.

Jul 6, 2023 3:47 AM

x4muEl

Views

510

Likes

3

Dislikes

8

This Design was a part of Software Engineering Journey with ALX Africa, would love corrections and insights where necessary.

The Project required that I implemented a 3 server web infrastructure with the following requirements:
- 2 servers
- 1 web server (Nginx)
- 1 application server
- 1 load-balancer (HAproxy)
- 1 set of application files (your code base)
- 1 database (MySQL)

Concepts and Knowledge gained
- To allow for data integrity and separation of concerns, only the application server can transact with the database direct.
- My load balancer is implemented to use a Round robin algorithm.
- This design did not implement Primary-Replica (Master-Slave) for the database, nor does our data have any backup, This can be seen as a SPOF, should our database gets overloaded or fails for any reason.
- This cluster also uses an Active-Active High availability Solution this also helps improve scalability, since no monitoring mechanism is currently employed I believe this would best serve the custer instead of an Active-Passive High availability Solution.
- There is also no Firewall on this cluster and makes prone to DOS attacks.
- We currently have one application server serving both servers with no backup, this can be identified as another SPOF.

Kindly drop your corrections in the comments they will be highly appreciated.

Thanks.

webcomic

server

@1BadPanda I didn't catch your comment earlier, though by the time I did it was already gone... would really appreciate if you threw more light on your corrections, I can use all the insights I can get.

2 years ago | Likes 1 Dislikes 0