2. Final Report Tasniflagich


Download 3.88 Mb.
Pdf ko'rish
bet6/15
Sana25.07.2023
Hajmi3.88 Mb.
#1662428
1   2   3   4   5   6   7   8   9   ...   15
Bog'liq
2.Final Report Tasniflagich

2.1.2 Web app workflow Server
We found a server IP address and can connect via HTTP over TCP connection. A
connection between the two is established using a process called the "TCP 3-way handshake".
1. A client computer sends a SYN message, whether the second computer is open for new
connection or not.
2. Then another computer, if open for new connection, it sends acknowledge message with a
SYN message as well.
3. After this, first computer receives its message and acknowledge by sending an ACK
message.
Finally, the connection between client and server is established. The two can now
communicate with each other and exchange information. After a successful connection, the
browser (client) sends a request to the server that wants this content.
2.1.3 Web app workflow Client
Server only sends raw files (e. g. html, css, js). Browser as a client accepts these files, after
renders
DOM
and shows it to the user. Also as a Client can request other data from server and
change view dynamically without requesting html file again. Generally Client communicates
with 4 methods of request:
1. POST - to create some item or instance
2. GET - to get some data, list of data
3. PUT - to modify data
4. DELETE - to delete data
TTPU
9
2022


2.2 Tasniflagich environment
Tasniflagich consists of 2 servers to prevent a single point of failure.
2.2.1 Hardware Interfaces
The Tasniflagich developed on hardware which have 64-bit operating system in
VMWare virtual server, one node characteristics:
● CPU name: AMD EPYC 7452 32-Core Processor
● RAM space: 16 GB.
● CPU cores: 16, 2.35GHz
● Disk space: 1 TB SSD
2.2.2 Software Backend
Backend is a part of web application. The features of backend is:
1. response from server request (show, create, edit)
2. save data to database
3. manipulate with data (e.g. send to other services)
Tasniflagich's backend is developed with the Laravel framework. Laravel is a PHP based
framework. To accept requests from the web we used
Nginx
as proxy and
PHP-FPM
as request
handler. The system can communicate via HTTP/1.1 and RMQP protocols.
The workflow of handling of general request has 4 steps:
1. nginx load balancing and decides node to move request
2. each node has running php-fpm
3. php connects to database to manipulate with data
4. php-fpm gives response to client via nginx
TTPU
10
2022


Figure 2. Server architecture

Download 3.88 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling