Vamos a la caché en sistemas de alta carga.

Uno de los temas eternos es el correcto trabajo con la caché. Suena simple, pero de hecho, tiene muchas trampas y características. Bueno, cuando llega la carga, todo se vuelve aún más interesante. No existe una "solución milagrosa" en el almacenamiento en caché, sino un conjunto de técnicas probadas y comprobadas. Y todo lo que queda es elegir una combinación de ellos para su tarea, utilizando las ventajas y nivelando las desventajas.





En la conferencia PHP Rusia 2021 , Pavel Parshikov, ingeniero de backend en Avito, presentará un informe "Vamos a almacenar en caché en sistemas de alta carga". Y en esta entrevista, hablamos sobre si PHP es bueno para proyectos en crecimiento en términos de carga y qué herramientas son mejores para usar.





Dime algo sobre ti. ¿A qué te dedicas?





Trabajo como ingeniero en Avito. Durante más de 15 años he estado haciendo desarrollo web, principalmente diseño de backend. 





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





. ? ?





. , , . . , , . . . : , , . 





. - . 





. - , .. , . , — . 





, , .





. , . . , . .





, . , , I- (, Mail.ru ..), , Google Apple. , , , , .





PHP ?





, PHP, . , , PHP. , , RPS, .





. — PHP Go. PHP . PHP, , API (mapi).





PHP . PHP- , . , , - PHP, , PHP. , — highload, - -, , CS'. PHP- , . , , , .





, , PHP . benchmark' . JIT . PHP , . , PHP- , -: , .. .. PHP , . - . .





, , PHP . . . , , , , .. — . , N - . N . 





, , , . PHP . , PHP : event loop, promises, coroutines. , ReactPHP, AMPHP, Swoole. 





HTTP - . PHP curl_multi_exec(), HTTP . Guzzle, .





PHP . , . highload- , .. . , . , DependencyInjection Symfony. 





, API. , , . , , . , PHP7.4 preloading . RoadRunner, .





, PHP - -. , , .. , , , Javascript. PHP , , . PHP , , , time to market .





, ? ? , — ?





, highload- , . — . , , , . , PHP Russia, — . , . 





, . , . , , , (loose coupling). «» . 





, SOLID, . — (DI). , , , . , . (DIC), .





, loose coupling , , by design. API. , API. - , . 





, PHP , — stateless . — «» — , - PHP . , . , . , .





, , , . , , , - , , . , time to market. 





, , , . highload, . , MVP-, , . highload- — - : , bottleneck, .





highload, , . , , . , , . . — , , . .





, , , . , , « », . PHP, , . , zval, « » . , . , . 





, . . . , , . , . , , .





, , . , . - , . observability : , , . «» . , . 





, . 





SRE, . . - . 





PHP Russia?





— , , , . ? PSR' Simple Cache , get, set, delete .. 





, , — , . , , . , - - : , , .. , -. , . -, PHP- — . 





. . , . , , . — . , , . , , () , , .





, . , , . ,   . . Highload- , , : , , .. , , , . 





- , Redis Memcached. , , . , RPS , Memcache PHP, get/set/delete/increment/add. 99% . . .  , ,   .





. , , . - - . , , . — , PHP-! 





highload- . . . , -. , , , . 





PHP , . .





, — ?





, — . - .





, response time, , . , — , , . , . , .





: — , — , — . , . , ? : , , . , ? 





, , — ( ) ( ). -, :  , . . , . HTTP. , , - .





. , . — , , , . 





, . , PHP-, . , , . , ,   . , , !





. , «» . , , . 





, , , « » .





PHP Russia 2021  28   , Radisson Slavyanskaya.     , .





: .     !








All Articles