Comment créer une architecture pour gérer la forte charge de votre projet web?


Le choix de la bonne architecture pour votre produit Web est un problème critique qui doit être abordé lors de son développement. Tout d'abord, il doit être évolutif et résister à des charges élevées. Surtout si vous créez un site Web fonctionnel, un service de réservation en ligne ou une solution de commerce électronique.





" ", ? , - ?





, , , - . , .





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





:





  • , .





  • (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