How to create an architecture to handle the high load of your web project?


Choosing the right architecture for your web product is a critical issue that needs to be addressed when considering its development. First of all, it must be scalable and withstand high loads. Especially if you are building a functional website, online booking service, or e-commerce solution.





" ", ? , - ?





, , , - . , .





, , , - . , , . - , - .





:





  • , .





  • (instance) 10 000 - . -





  • - AWS (Amazon Web Services), Microsoft Azure Google Cloud Platform, .





, - :













  • -

















, . - . -, .









, . , , .





. . .





- , . , - .









, . . - .





, , .





, , .





, , .





- - , 4 :









  • ,













-

, -, . . , .





. , -.









, , . - , , 10 100 . (PHP, Nginx ..).









-. :





  • - . , .





  • . IP- . - .





-





-, . PHP, Nginx, PHP, .





Nginx , PHP- . Nginx IP-:





server {
server_name ruhighload.com;

root /var/www/ruhighload;
index index.php;

location ~* .(php)$ {
fastcgi_pass 10.10.10.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
      
      



, , .









, - . - . , PHP.





, . Nginx . (upstream) :





upstream backend {
server 10.10.10.1;
server 10.10.10.2;
server 10.10.10.3;
}
server {
server_name ruhighload.com;
root / var / www / ruhighload;
index index.php;
location ~ * . (php) $ {
fastcgi_pass backend;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
}
}
      
      



, . .





, , Memcache. -. Memcache , .





DNS





, . -, . , .





DNS Round Robin, IP- -, . , DNS IP- . , .









. , - , .





, . , , .





:





  • .





  • Nginx ,





  • (, images1, images2, images3 ..)





  • , .





, , . , , 90% , - .





. , 100 . , 130 , . , , ?





- ? , . , , (CQRS).





.






"Highload Architect".





ยซ (, )ยป.





-








All Articles