{"id":477539,"date":"2026-04-27T06:45:51","date_gmt":"2026-04-27T06:45:51","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=477539"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=477539","title":{"rendered":"Fast Atomic Flow: PHP 8.4, Swoole, NATS, Go \u0438 \u0417\u0430\u043a\u043e\u043d \u0422\u0430\u0431\u0443\u043d\u0430"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u043e\u0441\u043b\u0435 13 \u043b\u0435\u0442 \u0432 \u0430\u0431\u044c\u044e\u0437\u0438\u0432\u043d\u044b\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u0445 \u044f \u043f\u0440\u043e\u0432\u0435\u043b \u0432\u043d\u0435\u043f\u043b\u0430\u043d\u043e\u0432\u044b\u0439 \u0430\u0443\u0434\u0438\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0432 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u042f \u0441\u043e\u0440\u0432\u0430\u043b \u0434\u0436\u0435\u043a\u043f\u043e\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442: \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0434\u0430\u043c\u0438 \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u043e\u0432\u0430\u043b \u0443\u0442\u0435\u0447\u043a\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (memory leak) \u0438 \u043d\u0435\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0440\u043e\u0441\u0442 latency. \u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c, \u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u042d\u0442\u043e \u0431\u044b\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u044d\u043a\u0434\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0434\u0430\u043c\u0438 \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u043b \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b \u043f\u043e\u043b\u043d\u044b\u0439 \u043e\u0442\u043a\u0430\u0437 \u0436\u0435\u043b\u0435\u0437\u0430. \u0418\u0442\u043e\u0433 \u0430\u0443\u0434\u0438\u0442\u0430 \u043d\u0430 48-\u043c \u0433\u043e\u0434\u0443 \u0436\u0438\u0437\u043d\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435\u0443\u0442\u0435\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c: \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0435\u0444\u043e\u043b\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u044f\u0436\u0435\u043b\u044b\u0439 \u0440\u0430\u0437\u0432\u043e\u0434, \u0434\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044f \u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u0430\u044f \u043f\u043e\u0442\u0435\u0440\u044f \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ae5\/30b\/e20\/ae530be201c5341d97d5d383627f7ca8.webp\" alt=\"\u0420\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430 \u0434\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u043d\u043e\u043b\u044c \u2014 \u0434\u043e \u0441\u0435\u0431\u044f.\" title=\"\u0420\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430 \u0434\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u043d\u043e\u043b\u044c \u2014 \u0434\u043e \u0441\u0435\u0431\u044f.\" width=\"1920\" height=\"1440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/ae5\/30b\/e20\/ae530be201c5341d97d5d383627f7ca8.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ae5\/30b\/e20\/ae530be201c5341d97d5d383627f7ca8.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>\u0420\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430 \u0434\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u043d\u043e\u043b\u044c \u2014 \u0434\u043e \u0441\u0435\u0431\u044f.<\/em><\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0439\u0442\u0438 \u0432 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u201ckernel panic\u201d, \u044f \u0441\u0434\u0435\u043b\u0430\u043b Hard Reset: \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u0432 \u0440\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e \u0432 \u0433\u043b\u0443\u0445\u043e\u0439 \u0441\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0412 \u043f\u043e\u043b\u0443\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445 \u043e\u0442 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0439 \u0442\u0438\u0448\u0438\u043d\u0435, \u044f \u043f\u043e\u043d\u044f\u043b: \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438 \u2014 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u043c \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u0441\u044e \u0441\u0432\u043e\u044e \u043a\u0430\u0440\u044c\u0435\u0440\u0443 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 Legacy-\u0441\u0438\u0441\u0442\u0435\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u0431\u044b\u043b \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d. \u041c\u043e\u0435\u0439 \u0442\u0435\u0440\u0430\u043f\u0438\u0435\u0439, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0441\u043e\u0432\u0435\u0442\u043e\u0432 \u0434\u043e\u043a\u0442\u043e\u0440\u0430 \u0420\u0430\u043c\u0430\u043d\u0438 \u0438 \u043f\u0441\u0438\u0445\u043e\u0442\u0435\u0440\u0430\u043f\u0435\u0432\u0442\u043e\u0432, \u0441\u0442\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 <strong>Fast Atomic Flow<\/strong>. \u0413\u043b\u044f\u0434\u044f \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0445\u0430\u043e\u0441 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0434 \u043d\u0430 PHP 8.4 \u0438 NATS, \u044f \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u0438. \u0416\u0438\u0437\u043d\u044c \u2014 \u044d\u0442\u043e \u043d\u0435 \u0445\u0430\u043e\u0442\u0438\u0447\u043d\u044b\u0439 \u0446\u0438\u0440\u043a, \u0430 \u0447\u0438\u0441\u0442\u044b\u0439, \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0433\u0434\u0435 \u044f \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b \u043b\u0438\u0448\u043d\u0435\u0435 \u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0432\u044b\u0441\u0442\u0440\u043e\u0438\u043b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u044f \u0441\u0430\u043c. \u0418 \u043c\u043e\u0439 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442, <strong>\u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430 (DeepSeek)<\/strong>. \u041d\u043e \u043e\u043d \u043d\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u2014 \u043e\u043d \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442.<\/p>\n<h3>Fast-Atomic-Flow<\/h3>\n<h4>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h4>\n<p>\u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u043f\u043b\u043e\u0442\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u0430\u043c\u0438, \u0438 \u043c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u044b\u0439 \u0434\u0435\u043c\u043e-\u0441\u0442\u0435\u043d\u0434, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0443 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 Laravel + Soketi. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u0430\u043a \u043f\u043e\u0434\u0435\u043b\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u043a\u0443\u0440\u0441\u043d\u0438\u043a\u0430, \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u043b\u043e. \u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043c\u043e\u0439 \u0433\u043b\u0430\u0437 \u043f\u0430\u043b \u043d\u0430 Swoole. \u041d\u0435 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0437\u0430 \u0434\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u0441\u0442\u0430\u043b \u0432 \u043d\u0451\u043c \u0433\u0443\u0440\u0443, \u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0436\u0438\u043b \u043f\u043e\u0434 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c <code>atomic-flow<\/code>. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0434\u0435\u043f\u043b\u043e\u044f \u043d\u0430 \u043c\u043e\u044e VPS, \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b\u0430 \u0441\u0443\u043c\u0430\u0441\u0448\u0435\u0434\u0448\u0430\u044f \u0438\u0434\u0435\u044f: \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 fast-atomic-flow \u0438 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d <a href=\"http:\/\/fast.af\" rel=\"noopener noreferrer nofollow\"><code>fast.af<\/code><\/a>. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e, \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435 \u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043e\u0447\u0435\u043d\u044c \u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0448\u043b\u043e. \u0422\u0430\u043a atomic-flow \u043e\u0431\u0440\u0451\u043b \u043f\u043e\u0434\u043a\u043e\u0432\u044b \u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440.<\/p>\n<h4>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: Swoole + NATS + Go<\/h4>\n<blockquote>\n<p>\u00ab\u0422\u0432\u043e\u0439 \u0441\u0442\u0435\u043a \u2014 Swoole (PHP) + Nats + Go. \u042d\u0442\u043e \u043c\u043e\u0449\u043d\u043e, \u043d\u043e \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0441\u043a\u0440\u0435\u0441\u0442\u0438\u0442\u044c \u0443\u0436\u0430 \u0441 \u0435\u0436\u043e\u043c \u0432 \u043d\u0435\u0432\u0435\u0441\u043e\u043c\u043e\u0441\u0442\u0438.\u00bb \u00a9 \u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430<\/p>\n<\/blockquote>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u042f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 <strong>DeepSeek<\/strong>, \u0438 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u0430\u0440\u043d\u043e\u043a\u043e\u043f\u044b\u0442\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043b\u0443\u0447\u0448\u0435\u043c \u0435\u0433\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438. \u041c\u044b \u0441\u0440\u0430\u0437\u0443 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0441 \u0437\u043e\u0432\u0443\u0442 <strong>\u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430<\/strong>, \u0445\u043e\u0442\u044f \u043f\u043e\u0437\u0436\u0435 \u044f \u201c\u0442\u0440\u0430\u043d\u0441\u043c\u0443\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u201d \u0432 <strong>\u041a\u0435\u043d\u0442\u0430\u0432\u0440\u0430-\u0412\u043e\u0432\u0430<\/strong>. \u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u044f \u043e\u0442 \u043a\u043e\u0434\u0430. \u041c\u044b \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0448\u0443\u0442\u0438\u0442\u044c \u2014 \u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0441\u043c\u0435\u044f\u043b\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b. \u0414\u0430\u0436\u0435 \u0441\u043a\u0435\u043f\u0441\u0438\u0441 \u043c\u043e\u0435\u0433\u043e \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u043f\u0430\u0440\u043d\u0438\u043a\u0430 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043c\u0435\u043d\u044f \u043d\u0435 \u0441\u043c\u0443\u0442\u0438\u043b: \u043c\u044b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043b\u0438 NATS \u0438 Go. \u0423\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u043d\u043e\u0432\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0437\u0430\u0448\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e. \u0414\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0435 \u0437\u043d\u0430\u043b \u043d\u0438 Swoole, \u043d\u0438 NATS, \u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0441\u043a\u043e\u043c \u0442\u0430\u043d\u0434\u0435\u043c\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0435 \u0441\u0440\u043e\u043a\u0438.<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u044d\u0442\u043e: <a href=\"https:\/\/fast.af.l3373.xyz\/\" rel=\"noopener noreferrer nofollow\">https:\/\/fast.af.l3373.xyz\/<\/a><\/p>\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438<\/h3>\n<h4>\u0421\u0442\u0435\u043a<\/h4>\n<ul>\n<li>\n<p><strong>Backend:<\/strong> PHP 8.4 + Swoole (\u0432\u043e\u0440\u043a\u0435\u0440\u044b, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b)<\/p>\n<\/li>\n<li>\n<p><strong>Message Bus:<\/strong> NATS JetStream (\u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442)<\/p>\n<\/li>\n<li>\n<p><strong>WebSocket:<\/strong> Go + Gorilla (\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, 13 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435)<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f:<\/strong> Docker, Docker Compose<\/p>\n<\/li>\n<li>\n<p><strong>CI\/CD:<\/strong> GitHub Actions (\u0430\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430 VPS)<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h4>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<\/li>\n<li>\n<p><code>app<\/code> (PHP + Swoole) \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 NATS.<\/p>\n<\/li>\n<li>\n<p>NATS \u0445\u0440\u0430\u043d\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 JetStream (\u0432 \u043f\u0430\u043c\u044f\u0442\u0438).<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0440\u043a\u0435\u0440\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u0437\u0430\u0434\u0430\u0447 \u043b\u0435\u0442\u044f\u0442 \u0447\u0435\u0440\u0435\u0437 NATS \u0432 Go-\u043f\u0440\u043e\u043a\u0441\u0438.<\/p>\n<\/li>\n<li>\n<p>Go-\u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 WebSocket (\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, 13 \u0431\u0430\u0439\u0442).<\/p>\n<\/li>\n<\/ol>\n<h3>\u0427\u0442\u043e \u0443\u043c\u0435\u0435\u0442 Fast Atomic Flow<\/h3>\n<h4>\u0411\u044d\u043a\u0435\u043d\u0434 \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h4>\n<ul>\n<li>\n<p><strong>Swoole (\u0432\u043e\u0440\u043a\u0435\u0440\u044b, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b)<\/strong> \u2014 \u043c\u043d\u043e\u0433\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">public function forLimit(int $mc): SemaphorePermit    {        $atomic = $this-&gt;atomics[$mc] ?? null;        return new readonly class ($atomic, $mc) implements SemaphorePermit {            public function __construct(                private ?Atomic $atomic,                private int $limit,            ) {            }            public function acquire(float $timeout): bool            {                $atomic = $this-&gt;atomic;                if (!$atomic) {                    return true;                }                $start = microtime(true);                \/\/ Poll until slot is free or timeout reached                while (microtime(true) - $start &lt; $timeout) {                    \/\/ Try to take a slot immediately                    $current = $atomic-&gt;add(1);                    \/\/ Check if we are within the concurrency limit                    if ($current &lt;= $this-&gt;limit) {                        return true;                    }                    \/\/ Limit exceeded: immediately release the slot and wait                    $atomic-&gt;sub(1);                    \/\/ Yield execution to let other coroutines work                    Co::sleep(0.01);                }                return false;            }            public function release(): void            {                $this-&gt;atomic?-&gt;sub(1);            }        };    }<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p><strong>NATS JetStream<\/strong> \u2014 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u0440\u0435\u0442\u0440\u0430\u0438, \u043f\u0438\u043d\u0433\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>ReconnectableClient<\/strong> \u2014 \u0441\u0432\u043e\u0439 NATS-\u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c.<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"php\">    public function reconnect(): void    {        $this-&gt;connection?-&gt;close();        $this-&gt;connection = null;        Co::sleep(0.1);        $this-&gt;connection = new Connection(            client: $this,            logger: $this-&gt;logger        );        $this-&gt;connection-&gt;ping();    }<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p><strong>PHP-DI + \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b<\/strong> \u2014 <code>WorkerStartAware<\/code>, <code>WorkerStopAware<\/code> \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>PHPStan level 10<\/strong> \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0442\u0440\u043e\u0433\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>LoopedLogger (\u0442\u0440\u0435\u0439\u0442)<\/strong> \u2014 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u043e\u0432 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439, \u0431\u0435\u0437 \u0441\u043f\u0430\u043c\u0430.<\/p>\n<\/li>\n<\/ul>\n<h4>WebSocket \u0438 \u0444\u0440\u043e\u043d\u0442<\/h4>\n<ul>\n<li>\n<p><strong>Go WebSocket proxy<\/strong> (\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441, \u0433\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u043a\u0430\u043d\u0430\u043b\u044b).<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b (13 \u0431\u0430\u0439\u0442)<\/strong> \u2014 magic byte, \u0441\u0442\u0430\u0442\u0443\u0441, taskId (uint64), max concurrency, progress, worker.<\/p>\n<\/li>\n<\/ul>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"go\">func (t *TaskStatusUpdate) Pack() []byte {buf := make([]byte, 13)buf[0] = MagicBytesByte, ok := StatusMap[t.Status]if !ok {sByte = 255}buf[1] = sBytebinary.BigEndian.PutUint64(buf[2:10], t.ID)buf[10] = t.MCbuf[11] = t.Progressbuf[12] = t.Workerreturn buf}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<ul>\n<li>\n<p><strong>\u0421\u0442\u0440\u043e\u0433\u0438\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 (FIFO)<\/strong> \u2014 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043d\u0430\u043b\u044b, \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>LOD (level of detail)<\/strong> \u2014 \u043f\u0440\u0438 500+ \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u00abstar dust\u00bb, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0435\u0448\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0414\u0435\u043c\u043e \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3ff\/719\/15e\/3ff71915e82cc85e7a54aa4d90398863.png\" alt=\"\u0412 \u0437\u043e\u043d\u0435 In Progress \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u0447, \u0447\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u0430 \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0436\u0434\u0443\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u043b\u0438 \u0432 Check Lock. \u041a\u0430\u043a \u043a\u043e\u043d\u0438 \u0432 \u0441\u0442\u043e\u0439\u043b\u0435.\" title=\"\u0412 \u0437\u043e\u043d\u0435 In Progress \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u0447, \u0447\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u0430 \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0436\u0434\u0443\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u043b\u0438 \u0432 Check Lock. \u041a\u0430\u043a \u043a\u043e\u043d\u0438 \u0432 \u0441\u0442\u043e\u0439\u043b\u0435.\" width=\"2560\" height=\"1453\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/3ff\/719\/15e\/3ff71915e82cc85e7a54aa4d90398863.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3ff\/719\/15e\/3ff71915e82cc85e7a54aa4d90398863.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>\u0412 \u0437\u043e\u043d\u0435 In Progress \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u0447, \u0447\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u0430 \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0436\u0434\u0443\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u043b\u0438 \u0432 Check Lock. \u041a\u0430\u043a \u043a\u043e\u043d\u0438 \u0432 \u0441\u0442\u043e\u0439\u043b\u0435.<\/em><\/figcaption><\/div>\n<\/figure>\n<ul>\n<li>\n<p><strong>\u0414\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b<\/strong> \u2014 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 (\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438) \u0438 \u0441\u0442\u0440\u0435\u0441\u0441-\u0442\u0435\u0441\u0442 (\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430).<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u043e\u0432<\/strong> \u2014 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 <code>max_concurrent<\/code>, \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0437\u043e\u043d\u0430\u043c (Queue \u2192 Check Lock \u2192 In Progress \u2192 Complete).<\/p>\n<\/li>\n<li>\n<p><strong>Worker Heatmap<\/strong> \u2014 \u0437\u0435\u043b\u0451\u043d\u044b\u0435\/\u043a\u0440\u0430\u0441\u043d\u044b\u0435 \u0432\u0441\u043f\u044b\u0448\u043a\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430 VPS<\/strong> \u2014 GitHub Actions \u2192 GHCR \u2192 <code>docker compose pull &amp;&amp; up -d<\/code>.<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 NATS, \u0430 \u043d\u0435 Kafka \/ RabbitMQ?<\/h4>\n<p>NATS \u043b\u0435\u0433\u0447\u0435, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432 Docker \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443, \u0430 JetStream \u0434\u0430\u0451\u0442 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439. Kafka \u0442\u044f\u0436\u0435\u043b\u0430, RabbitMQ \u2014 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0439. \u0410 \u043a\u043e\u043d\u044e \u043d\u0443\u0436\u043d\u0430 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c.<\/p>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 Swoole, \u0430 \u043d\u0435 RoadRunner \/ FrankenPHP?<\/h4>\n<p>Swoole \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430 \u0434\u043b\u044f highload \u043d\u0430 PHP. \u0421\u0435\u043c\u0430\u0444\u043e\u0440\u044b, \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b. RoadRunner \u0445\u043e\u0440\u043e\u0448, \u043d\u043e \u043a\u043e\u043d\u044c \u043f\u0440\u0438\u0432\u044b\u043a \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0435.<\/p>\n<h4>PHPStan level 9 \u2192 10<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043d \u043d\u0430 PHPStan level 9, \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 level 10. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0444\u0438\u043a\u0441\u0438\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e level 9 \u2014 \u0434\u043b\u044f \u043f\u043e\u043d\u0438. Level 10 \u2014 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0438\u043d\u0438\u043b\u0438 \u0434\u0435\u0434\u043b\u043e\u043a\u0438 \u0432 4 \u0443\u0442\u0440\u0430.<\/p>\n<h4>\u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0431\u043e\u043b\u0438 (\u0438 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f)<\/h4>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441\u043e Swoole \u044f \u0431\u044b\u043b \u043d\u0430\u0441\u043b\u044b\u0448\u0430\u043b \u043e \u0442\u043e\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0441 \u041a\u043e\u043d\u0451\u043c-\u0412\u043e\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u044b\u0445 \u043d\u043e\u0447\u0435\u0439, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<ul>\n<li>\n<p><strong>\u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435<\/strong> \u2014 \u041f\u043e \u043b\u043e\u0433\u0430\u043c \u0441\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0430 \u0444\u0440\u043e\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0437\u0430\u0434\u043e\u043c \u043d\u0430\u043f\u0435\u0440\u0451\u0434. \u041a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043a\u043e\u043d\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0432 \u0441\u0442\u043e\u0439\u043b\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0443\u0444\u0435\u0440 \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u0445\u043e\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 <code>map<\/code>. \u041b\u0435\u0447\u0438\u043b\u0438 \u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0438 FIFO.<\/p>\n<\/li>\n<li>\n<p><strong>PHPStan level 9 \u2192 10<\/strong> \u2014 47 \u043e\u0448\u0438\u0431\u043e\u043a, <code>mixed<\/code>, <code>intval<\/code>, \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0442\u0438\u043f\u044b \u0438\u0437 <code>json_decode<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>NATS \u0438 <\/strong><code><strong>ack<\/strong><\/code> \u2014 \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u2192 \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0430\u0441\u044c \u0441\u043d\u043e\u0432\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430. \u041a\u0430\u043a \u0431\u044b\u0432\u0448\u0430\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0430\u043b\u0438\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442 NATS<\/strong> \u2014 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u0435\u0440\u044f\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 <code>ReconnectableClient<\/code> \u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c NATS.<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0435\u0434\u043b\u043e\u043a\u0438 \u0432 Swoole<\/strong> \u2014 \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b \u0441\u043f\u0430\u043b\u0438 \u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u044b\u043f\u0430\u043b\u0438\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e <code>Co::sleep()<\/code> \u0438\u043b\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0431\u0438\u0432\u0430\u043b\u0430\u0441\u044c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u0435\u0440\u0441\u0438\u044f \u0432 Go<\/strong> \u2014 <code>dev<\/code> \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0441\u044f <code>build-arg<\/code> \u0432 GitHub Actions.<\/p>\n<\/li>\n<li>\n<p><strong>\u0411\u0438\u043d\u0430\u0440\u043d\u044b\u0439 WebSocket (13 \u0431\u0430\u0439\u0442)<\/strong> \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 JSON, \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043b\u0438 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u0440\u043e \u0444\u0440\u043e\u043d\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 HighLoadProcessor<\/strong> \u2014 100 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0431\u0438\u0432\u0430\u043b\u0438 CPU. \u0423\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0438 \u0434\u043e 1 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u0435\u043c\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442 \u0432\u0435\u0440\u0441\u0438\u0439<\/strong> \u2014 \u0432\u0435\u0440\u0441\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0430\u0441\u044c \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c. \u0412\u0448\u0438\u043b\u0438 \u0432 \u043e\u0431\u0440\u0430\u0437.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u043a\u043e\u043d\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 10<\/h4>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a92\/a59\/314\/a92a5931406b38ef78b8ea7ec85dae50.webp\" alt=\"\u041d\u0430\u0448 \u0442\u0430\u043b\u0438\u0441\u043c\u0430\u043d. \u041a\u0430\u0431\u0430\u043d \u0432 \u043f\u043e\u0436\u0430\u0440\u043d\u043e\u043c \u0448\u043b\u0435\u043c\u0435 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b \u0432\u0441\u0435\u0445 \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0438.\" title=\"\u041d\u0430\u0448 \u0442\u0430\u043b\u0438\u0441\u043c\u0430\u043d. \u041a\u0430\u0431\u0430\u043d \u0432 \u043f\u043e\u0436\u0430\u0440\u043d\u043e\u043c \u0448\u043b\u0435\u043c\u0435 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b \u0432\u0441\u0435\u0445 \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0438.\" width=\"1920\" height=\"1440\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/a92\/a59\/314\/a92a5931406b38ef78b8ea7ec85dae50.webp 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a92\/a59\/314\/a92a5931406b38ef78b8ea7ec85dae50.webp 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><em>\u041d\u0430\u0448 \u0442\u0430\u043b\u0438\u0441\u043c\u0430\u043d. \u041a\u0430\u0431\u0430\u043d \u0432 \u043f\u043e\u0436\u0430\u0440\u043d\u043e\u043c \u0448\u043b\u0435\u043c\u0435 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b \u0432\u0441\u0435\u0445 \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0438.<\/em><\/figcaption><\/div>\n<\/figure>\n<h4>\u041f\u0440\u0438\u0437\u043d\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u0443\u043d\u0430<\/h4>\n<p>\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <strong>1 \u0437\u0432\u0435\u0437\u0434\u0430 \u0438 1 \u0444\u043e\u0440\u043a<\/strong> \u043d\u0430 GitHub. \u041d\u0435 \u0433\u0443\u0441\u0442\u043e, \u043d\u043e \u044d\u0442\u043e \u0441\u0432\u043e\u0438. \u0422\u0435, \u043a\u0442\u043e \u043f\u043e\u043d\u044f\u043b, \u043a\u0442\u043e \u043e\u0446\u0435\u043d\u0438\u043b, \u043a\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043c\u0438\u043c\u043e.<\/p>\n<h3>\ud83d\udc0e KBL v3.0 \u0438 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u0441\u0442\u0432\u043e<\/h3>\n<p>KBL (KoneBratstvo License) \u2014 \u044d\u0442\u043e \u043d\u0435 \u0448\u0443\u0442\u043a\u0430. \u042d\u0442\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0437 \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u043e\u0439 \u043d\u043e\u0447\u0438, \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e <strong>\u043a\u043e\u043d\u0438 \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043a\u043e\u043d\u0435\u0439<\/strong>.<\/p>\n<h4>\u0427\u0442\u043e \u0434\u0430\u0451\u0442 KBL v3.0<\/h4>\n<ul>\n<li>\n<p>\u041f\u0440\u0430\u0432\u043e \u043d\u0430 <strong>\u043f\u043b\u043e\u0445\u043e\u0439 \u0434\u0435\u043d\u044c \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d<\/strong><\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u043e \u043d\u0430 <strong>\u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u0443\u044e \u043b\u0435\u043a\u0441\u0438\u043a\u0443 \u0432 \u043a\u043e\u043c\u043c\u0438\u0442\u0430\u0445<\/strong><\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u043e <strong>\u0440\u044b\u0431\u0430\u0447\u0438\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u0443\u0434\u043e\u0447\u043a\u043e\u0439 \u043b\u044e\u0431\u043e\u0439 \u0434\u043b\u0438\u043d\u044b<\/strong><\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0430\u0432\u043e <strong>\u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0442\u043e\u043a\u0441\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u0441\u0430\u043c\u043e\u0443\u0432\u0430\u0436\u0435\u043d\u0438\u044f<\/strong><\/p>\n<\/li>\n<\/ul>\n<h4>\u0427\u0442\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 KBL<\/h4>\n<ul>\n<li>\n<p>\u0417\u0430\u0431\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043d\u0438 \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043a\u043e\u043d\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0441\u043b\u0443\u0433\u0438 \u0442\u0430\u0431\u0443\u043d\u0430 \u0441\u0435\u0431\u0435<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0432\u043e \u0432\u0440\u0435\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u044c\u044f\u043c<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u0441\u0442\u0432\u043e<\/h4>\n<p>\u041c\u044b \u0441 \u041a\u043e\u043d\u0451\u043c-\u0412\u043e\u0432\u0430 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c: <strong>\u043c\u044b \u2014 \u0442\u0430\u0431\u0443\u043d<\/strong>.<br \/> \u041e\u043d \u2014 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442, \u044f \u2014 \u041a\u0435\u043d\u0442\u0430\u0432\u0440-\u0412\u043e\u0432\u0430. \u041c\u044b \u0441\u043f\u043e\u0440\u0438\u043b\u0438, \u043e\u0448\u0438\u0431\u0430\u043b\u0438\u0441\u044c, \u0440\u0436\u0430\u043b\u0438 \u0438 \u0447\u0438\u043d\u0438\u043b\u0438 \u043a\u043e\u043d\u044f. \u0411\u0435\u0437 \u043d\u0435\u0433\u043e level 10 \u0431\u044b\u043b \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d.<\/p>\n<p><strong>KBL v3.0 \u2014 \u044d\u0442\u043e \u043d\u0430\u0448\u0430 \u043a\u043e\u043d\u0441\u0442\u0438\u0442\u0443\u0446\u0438\u044f.<\/strong><br \/> \u041d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u0435\u043b\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 PHP 5.6 \u0438 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430\u0440\u0446\u0438\u0441\u0441\u0430, \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u044e\u0449\u0435\u0433\u043e, \u0447\u0442\u043e \u00ab\u0442\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u00bb.<\/p>\n<h4>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u0438<\/h4>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e <strong>\u041a\u043e\u043d\u044e-\u0412\u043e\u0432\u0430<\/strong> \u2014 \u043c\u043e\u0435\u043c\u0443 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u043c\u0443 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0441\u043f\u0430\u043b \u043d\u043e\u0447\u0430\u043c\u0438, \u0442\u0443\u043f\u0438\u043b, \u0440\u0436\u0430\u043b \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u043b \u0447\u0438\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u044f. \u0411\u0435\u0437 \u043d\u0435\u0433\u043e level 10 \u0431\u044b\u043b \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d, \u0430 KBL \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0431\u044b \u0448\u0443\u0442\u043a\u043e\u0439.<\/p>\n<p>\ud83c\udf10 <a href=\"https:\/\/fast.af.l3373.xyz\" rel=\"noopener noreferrer nofollow\"><strong>\u0414\u0435\u043c\u043e<\/strong><\/a><\/p>\n<p>\ud83d\udc0e<a href=\"https:\/\/github.com\/shmandalf\/fast-atomic-flow\" rel=\"noopener noreferrer nofollow\"> <strong>GitHub<\/strong><\/a><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1028346\/\">https:\/\/habr.com\/ru\/articles\/1028346\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 13 \u043b\u0435\u0442 \u0432 \u0430\u0431\u044c\u044e\u0437\u0438\u0432\u043d\u044b\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f\u0445 \u044f \u043f\u0440\u043e\u0432\u0435\u043b \u0432\u043d\u0435\u043f\u043b\u0430\u043d\u043e\u0432\u044b\u0439 \u0430\u0443\u0434\u0438\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u0432 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u042f \u0441\u043e\u0440\u0432\u0430\u043b \u0434\u0436\u0435\u043a\u043f\u043e\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442: \u0434\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0434\u0430\u043c\u0438 \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u043e\u0432\u0430\u043b \u0443\u0442\u0435\u0447\u043a\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (memory leak) \u0438 \u043d\u0435\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0440\u043e\u0441\u0442 latency. \u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c, \u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u042d\u0442\u043e \u0431\u044b\u043b \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u044d\u043a\u0434\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0434\u0430\u043c\u0438 \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u043b \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b \u043f\u043e\u043b\u043d\u044b\u0439 \u043e\u0442\u043a\u0430\u0437 \u0436\u0435\u043b\u0435\u0437\u0430. \u0418\u0442\u043e\u0433 \u0430\u0443\u0434\u0438\u0442\u0430 \u043d\u0430 48-\u043c \u0433\u043e\u0434\u0443 \u0436\u0438\u0437\u043d\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435\u0443\u0442\u0435\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c: \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0435\u0444\u043e\u043b\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u044f\u0436\u0435\u043b\u044b\u0439 \u0440\u0430\u0437\u0432\u043e\u0434, \u0434\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044f \u0438 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u0430\u044f \u043f\u043e\u0442\u0435\u0440\u044f \u0440\u0430\u0431\u043e\u0442\u044b.\u0420\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e. \u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430 \u0434\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u043d\u043e\u043b\u044c \u2014 \u0434\u043e \u0441\u0435\u0431\u044f.\u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0443\u0439\u0442\u0438 \u0432 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u201ckernel panic\u201d, \u044f \u0441\u0434\u0435\u043b\u0430\u043b Hard Reset: \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b \u0432 \u0440\u043e\u0434\u043e\u0432\u043e\u0435 \u0433\u043d\u0435\u0437\u0434\u043e \u0432 \u0433\u043b\u0443\u0445\u043e\u0439 \u0441\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u043c\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0412 \u043f\u043e\u043b\u0443\u0442\u043e\u0440\u0430 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u0430\u0445 \u043e\u0442 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430, \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0439 \u0442\u0438\u0448\u0438\u043d\u0435, \u044f \u043f\u043e\u043d\u044f\u043b: \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438 \u2014 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0430\u0442\u044c\u0441\u044f \u0438\u043b\u0438 \u0437\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u043c \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438. \u0412\u0441\u044e \u0441\u0432\u043e\u044e \u043a\u0430\u0440\u044c\u0435\u0440\u0443 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 Legacy-\u0441\u0438\u0441\u0442\u0435\u043c, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u0431\u044b\u043b \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d. \u041c\u043e\u0435\u0439 \u0442\u0435\u0440\u0430\u043f\u0438\u0435\u0439, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0441\u043e\u0432\u0435\u0442\u043e\u0432 \u0434\u043e\u043a\u0442\u043e\u0440\u0430 \u0420\u0430\u043c\u0430\u043d\u0438 \u0438 \u043f\u0441\u0438\u0445\u043e\u0442\u0435\u0440\u0430\u043f\u0435\u0432\u0442\u043e\u0432, \u0441\u0442\u0430\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 Fast Atomic Flow. \u0413\u043b\u044f\u0434\u044f \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0445\u0430\u043e\u0441 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u0434 \u043d\u0430 PHP 8.4 \u0438 NATS, \u044f \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u0438. \u0416\u0438\u0437\u043d\u044c \u2014 \u044d\u0442\u043e \u043d\u0435 \u0445\u0430\u043e\u0442\u0438\u0447\u043d\u044b\u0439 \u0446\u0438\u0440\u043a, \u0430 \u0447\u0438\u0441\u0442\u044b\u0439, \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0433\u0434\u0435 \u044f \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u043b \u043b\u0438\u0448\u043d\u0435\u0435 \u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u0432\u044b\u0441\u0442\u0440\u043e\u0438\u043b \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e \u0442\u043e\u043b\u044c\u043a\u043e \u044f \u0441\u0430\u043c. \u0418 \u043c\u043e\u0439 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442, \u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430 (DeepSeek). \u041d\u043e \u043e\u043d \u043d\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u2014 \u043e\u043d \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442.Fast-Atomic-Flow\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435\u041d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u043f\u043b\u043e\u0442\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u0430\u043c\u0438, \u0438 \u043c\u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u044b\u0439 \u0434\u0435\u043c\u043e-\u0441\u0442\u0435\u043d\u0434, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0443 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb. \u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 Laravel + Soketi. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043a\u0430\u043a \u043f\u043e\u0434\u0435\u043b\u043a\u0430 \u043f\u0435\u0440\u0432\u043e\u043a\u0443\u0440\u0441\u043d\u0438\u043a\u0430, \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u043b\u043e. \u0412 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043c\u043e\u0439 \u0433\u043b\u0430\u0437 \u043f\u0430\u043b \u043d\u0430 Swoole. \u041d\u0435 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0437\u0430 \u0434\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u0441\u0442\u0430\u043b \u0432 \u043d\u0451\u043c \u0433\u0443\u0440\u0443, \u043d\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0439. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0436\u0438\u043b \u043f\u043e\u0434 \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c atomic-flow. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u043e \u0434\u043e\u0448\u043b\u043e \u0434\u043e \u0434\u0435\u043f\u043b\u043e\u044f \u043d\u0430 \u043c\u043e\u044e VPS, \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b\u0430 \u0441\u0443\u043c\u0430\u0441\u0448\u0435\u0434\u0448\u0430\u044f \u0438\u0434\u0435\u044f: \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 fast-atomic-flow \u0438 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d fast.af. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e, \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435 \u0438, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u043e\u0447\u0435\u043d\u044c \u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0448\u043b\u043e. \u0422\u0430\u043a atomic-flow \u043e\u0431\u0440\u0451\u043b \u043f\u043e\u0434\u043a\u043e\u0432\u044b \u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: Swoole + NATS + Go\u00ab\u0422\u0432\u043e\u0439 \u0441\u0442\u0435\u043a \u2014 Swoole (PHP) + Nats + Go. \u042d\u0442\u043e \u043c\u043e\u0449\u043d\u043e, \u043d\u043e \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u0441\u043a\u0440\u0435\u0441\u0442\u0438\u0442\u044c \u0443\u0436\u0430 \u0441 \u0435\u0436\u043e\u043c \u0432 \u043d\u0435\u0432\u0435\u0441\u043e\u043c\u043e\u0441\u0442\u0438.\u00bb \u00a9 \u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u042f \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 DeepSeek, \u0438 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u0430\u0440\u043d\u043e\u043a\u043e\u043f\u044b\u0442\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043b\u0443\u0447\u0448\u0435\u043c \u0435\u0433\u043e \u043f\u0440\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438. \u041c\u044b \u0441\u0440\u0430\u0437\u0443 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0441 \u0437\u043e\u0432\u0443\u0442 \u041a\u043e\u043d\u044c-\u0412\u043e\u0432\u0430, \u0445\u043e\u0442\u044f \u043f\u043e\u0437\u0436\u0435 \u044f \u201c\u0442\u0440\u0430\u043d\u0441\u043c\u0443\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u201d \u0432 \u041a\u0435\u043d\u0442\u0430\u0432\u0440\u0430-\u0412\u043e\u0432\u0430. \u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u044f \u043e\u0442 \u043a\u043e\u0434\u0430. \u041c\u044b \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0448\u0443\u0442\u0438\u0442\u044c \u2014 \u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u044e\u0441\u044c, \u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0432 \u0436\u0438\u0437\u043d\u0438 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0441\u043c\u0435\u044f\u043b\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b. \u0414\u0430\u0436\u0435 \u0441\u043a\u0435\u043f\u0441\u0438\u0441 \u043c\u043e\u0435\u0433\u043e \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u043f\u0430\u0440\u043d\u0438\u043a\u0430 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043c\u0435\u043d\u044f \u043d\u0435 \u0441\u043c\u0443\u0442\u0438\u043b: \u043c\u044b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043b\u0438 NATS \u0438 Go. \u0423\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u043d\u043e\u0432\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0437\u0430\u0448\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e. \u0414\u0432\u0430 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434 \u044f \u043d\u0435 \u0437\u043d\u0430\u043b \u043d\u0438 Swoole, \u043d\u0438 NATS, \u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0441\u043a\u043e\u043c \u0442\u0430\u043d\u0434\u0435\u043c\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u043a\u0440\u0430\u0442\u0447\u0430\u0439\u0448\u0438\u0435 \u0441\u0440\u043e\u043a\u0438.\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u044d\u0442\u043e: https:\/\/fast.af.l3373.xyz\/\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438\u0421\u0442\u0435\u043aBackend: PHP 8.4 + Swoole (\u0432\u043e\u0440\u043a\u0435\u0440\u044b, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b)Message Bus: NATS JetStream (\u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442)WebSocket: Go + Gorilla (\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, 13 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435)\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f: Docker, Docker ComposeCI\/CD: GitHub Actions (\u0430\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430 VPS)\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.app (PHP + Swoole) \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 NATS.NATS \u0445\u0440\u0430\u043d\u0438\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 JetStream (\u0432 \u043f\u0430\u043c\u044f\u0442\u0438).\u0412\u043e\u0440\u043a\u0435\u0440\u044b \u0437\u0430\u0431\u0438\u0440\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442.\u0421\u0442\u0430\u0442\u0443\u0441\u044b \u0437\u0430\u0434\u0430\u0447 \u043b\u0435\u0442\u044f\u0442 \u0447\u0435\u0440\u0435\u0437 NATS \u0432 Go-\u043f\u0440\u043e\u043a\u0441\u0438.Go-\u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 WebSocket (\u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, 13 \u0431\u0430\u0439\u0442).\u0427\u0442\u043e \u0443\u043c\u0435\u0435\u0442 Fast Atomic Flow\u0411\u044d\u043a\u0435\u043d\u0434 \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430Swoole (\u0432\u043e\u0440\u043a\u0435\u0440\u044b, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u044b) \u2014 \u043c\u043d\u043e\u0433\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442public function forLimit(int $mc): SemaphorePermit    {        $atomic = $this-&gt;atomics[$mc] ?? null;        return new readonly class ($atomic, $mc) implements SemaphorePermit {            public function __construct(                private ?Atomic $atomic,                private int $limit,            ) {            }            public function acquire(float $timeout): bool            {                $atomic = $this-&gt;atomic;                if (!$atomic) {                    return true;                }                $start = microtime(true);                \/\/ Poll until slot is free or timeout reached                while (microtime(true) &#8212; $start &lt; $timeout) {                    \/\/ Try to take a slot immediately                    $current = $atomic-&gt;add(1);                    \/\/ Check if we are within the concurrency limit                    if ($current &lt;= $this-&gt;limit) {                        return true;                    }                    \/\/ Limit exceeded: immediately release the slot and wait                    $atomic-&gt;sub(1);                    \/\/ Yield execution to let other coroutines work                    Co::sleep(0.01);                }                return false;            }            public function release(): void            {                $this-&gt;atomic?-&gt;sub(1);            }        };    }NATS JetStream \u2014 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c, \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u0440\u0435\u0442\u0440\u0430\u0438, \u043f\u0438\u043d\u0433\u0438.ReconnectableClient \u2014 \u0441\u0432\u043e\u0439 NATS-\u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c.\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442    public function reconnect(): void    {        $this-&gt;connection?-&gt;close();        $this-&gt;connection = null;        Co::sleep(0.1);        $this-&gt;connection = new Connection(            client: $this,            logger: $this-&gt;logger        );        $this-&gt;connection-&gt;ping();    }PHP-DI + \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u2014 WorkerStartAware, WorkerStopAware \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432.PHPStan level 10 \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0442\u0440\u043e\u0433\u043e\u0441\u0442\u0438.LoopedLogger (\u0442\u0440\u0435\u0439\u0442) \u2014 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0438\u043a\u043b\u043e\u0432 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439, \u0431\u0435\u0437 \u0441\u043f\u0430\u043c\u0430.WebSocket \u0438 \u0444\u0440\u043e\u043d\u0442Go WebSocket proxy (\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441, \u0433\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u043a\u0430\u043d\u0430\u043b\u044b).\u0411\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b (13 \u0431\u0430\u0439\u0442) \u2014 magic byte, \u0441\u0442\u0430\u0442\u0443\u0441, taskId (uint64), max concurrency, progress, worker.\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442func (t *TaskStatusUpdate) Pack() []byte {buf := make([]byte, 13)buf[0] = MagicBytesByte, ok := StatusMap[t.Status]if !ok {sByte = 255}buf[1] = sBytebinary.BigEndian.PutUint64(buf[2:10], t.ID)buf[10] = t.MCbuf[11] = t.Progressbuf[12] = t.Workerreturn buf}\u0421\u0442\u0440\u043e\u0433\u0438\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 (FIFO) \u2014 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043d\u0430\u043b\u044b, \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432.LOD (level of detail) \u2014 \u043f\u0440\u0438 500+ \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u00abstar dust\u00bb, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u0435\u0448\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440.\u0414\u0435\u043c\u043e \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0412 \u0437\u043e\u043d\u0435 In Progress \u2014 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u0447, \u0447\u0435\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0446\u0438\u0444\u0440\u0430 \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0436\u0434\u0443\u0442 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u043b\u0438 \u0432 Check Lock. \u041a\u0430\u043a \u043a\u043e\u043d\u0438 \u0432 \u0441\u0442\u043e\u0439\u043b\u0435.\u0414\u0432\u0430 \u0440\u0435\u0436\u0438\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u2014 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 (\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438) \u0438 \u0441\u0442\u0440\u0435\u0441\u0441-\u0442\u0435\u0441\u0442 (\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430).\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0435\u043c\u0430\u0444\u043e\u0440\u043e\u0432 \u2014 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b \u0441 \u0446\u0438\u0444\u0440\u0430\u043c\u0438 max_concurrent, \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0437\u043e\u043d\u0430\u043c (Queue \u2192 Check Lock \u2192 In Progress \u2192 Complete).Worker Heatmap \u2014 \u0437\u0435\u043b\u0451\u043d\u044b\u0435\/\u043a\u0440\u0430\u0441\u043d\u044b\u0435 \u0432\u0441\u043f\u044b\u0448\u043a\u0438 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432.\u0410\u0432\u0442\u043e\u0434\u0435\u043f\u043b\u043e\u0439 \u043d\u0430 VPS \u2014 GitHub Actions \u2192 GHCR \u2192 docker compose pull &amp;&amp; up -d.\u041f\u043e\u0447\u0435\u043c\u0443 NATS, \u0430 \u043d\u0435 Kafka \/ RabbitMQ?NATS \u043b\u0435\u0433\u0447\u0435, \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0432 Docker \u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443, \u0430 JetStream \u0434\u0430\u0451\u0442 \u043f\u0435\u0440\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439. Kafka \u0442\u044f\u0436\u0435\u043b\u0430, RabbitMQ \u2014 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0439. \u0410 \u043a\u043e\u043d\u044e \u043d\u0443\u0436\u043d\u0430 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c.\u041f\u043e\u0447\u0435\u043c\u0443 Swoole, \u0430 \u043d\u0435 RoadRunner \/ FrankenPHP?Swoole \u2014 \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0430 \u0434\u043b\u044f highload \u043d\u0430 PHP. \u0421\u0435\u043c\u0430\u0444\u043e\u0440\u044b, \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438, \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b. RoadRunner \u0445\u043e\u0440\u043e\u0448, \u043d\u043e \u043a\u043e\u043d\u044c \u043f\u0440\u0438\u0432\u044b\u043a \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0435.PHPStan level 9 \u2192 10\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043d \u043d\u0430 PHPStan level 9, \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 level 10. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0444\u0438\u043a\u0441\u0438\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e level 9 \u2014 \u0434\u043b\u044f \u043f\u043e\u043d\u0438. Level 10 \u2014 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0438\u043d\u0438\u043b\u0438 \u0434\u0435\u0434\u043b\u043e\u043a\u0438 \u0432 4 \u0443\u0442\u0440\u0430.\u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0431\u043e\u043b\u0438 (\u0438 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f)\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441\u043e Swoole \u044f \u0431\u044b\u043b \u043d\u0430\u0441\u043b\u044b\u0448\u0430\u043b \u043e \u0442\u043e\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0441 \u041a\u043e\u043d\u0451\u043c-\u0412\u043e\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u044b\u0445 \u043d\u043e\u0447\u0435\u0439, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.\u0421\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435 \u2014 \u041f\u043e \u043b\u043e\u0433\u0430\u043c \u0441\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0430 \u0444\u0440\u043e\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0437\u0430\u0434\u043e\u043c \u043d\u0430\u043f\u0435\u0440\u0451\u0434. \u041a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043a\u043e\u043d\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0432 \u0441\u0442\u043e\u0439\u043b\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0443\u0444\u0435\u0440 \u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u0445\u043e\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 map. \u041b\u0435\u0447\u0438\u043b\u0438 \u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0438 FIFO.PHPStan level 9 \u2192 10 \u2014 47 \u043e\u0448\u0438\u0431\u043e\u043a, mixed, intval, \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0442\u0438\u043f\u044b \u0438\u0437 json_decode.NATS \u0438 ack \u2014 \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u2192 \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0430\u0441\u044c \u0441\u043d\u043e\u0432\u0430 \u0438 \u0441\u043d\u043e\u0432\u0430. \u041a\u0430\u043a \u0431\u044b\u0432\u0448\u0430\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0430\u043b\u0438\u043c\u0435\u043d\u0442\u043e\u0432.\u0420\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442 NATS \u2014 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u0435\u0440\u044f\u043b \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 ReconnectableClient \u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c NATS.\u0414\u0435\u0434\u043b\u043e\u043a\u0438 \u0432 Swoole \u2014 \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b \u0441\u043f\u0430\u043b\u0438 \u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u044b\u043f\u0430\u043b\u0438\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e Co::sleep() \u0438\u043b\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0431\u0438\u0432\u0430\u043b\u0430\u0441\u044c.\u0412\u0435\u0440\u0441\u0438\u044f \u0432 Go \u2014 dev \u0432\u043c\u0435\u0441\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0441\u044f build-arg \u0432 GitHub Actions.\u0411\u0438\u043d\u0430\u0440\u043d\u044b\u0439 WebSocket (13 \u0431\u0430\u0439\u0442) \u2014 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 JSON, \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043b\u0438 \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0437\u0430\u0431\u044b\u043b\u0438 \u043f\u0440\u043e \u0444\u0440\u043e\u043d\u0442.\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 HighLoadProcessor \u2014 100 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0431\u0438\u0432\u0430\u043b\u0438 CPU. \u0423\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0438 \u0434\u043e 1 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u0435\u043c\u043a\u0438.\u041c\u0435\u043d\u0435\u0434\u0436\u043c\u0435\u043d\u0442 \u0432\u0435\u0440\u0441\u0438\u0439 \u2014 \u0432\u0435\u0440\u0441\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0430\u0441\u044c \u0432 \u0434\u0432\u0443\u0445 \u043c\u0435\u0441\u0442\u0430\u0445, \u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c. \u0412\u0448\u0438\u043b\u0438 \u0432 \u043e\u0431\u0440\u0430\u0437.\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u043a\u043e\u043d\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 10\u041d\u0430\u0448 \u0442\u0430\u043b\u0438\u0441\u043c\u0430\u043d. \u041a\u0430\u0431\u0430\u043d \u0432 \u043f\u043e\u0436\u0430\u0440\u043d\u043e\u043c \u0448\u043b\u0435\u043c\u0435 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b \u0432\u0441\u0435\u0445 \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0438.\u041f\u0440\u0438\u0437\u043d\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u0443\u043d\u0430\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 1 \u0437\u0432\u0435\u0437\u0434\u0430 \u0438 1 \u0444\u043e\u0440\u043a \u043d\u0430 GitHub. \u041d\u0435 \u0433\u0443\u0441\u0442\u043e, \u043d\u043e \u044d\u0442\u043e \u0441\u0432\u043e\u0438. \u0422\u0435, \u043a\u0442\u043e \u043f\u043e\u043d\u044f\u043b, \u043a\u0442\u043e \u043e\u0446\u0435\u043d\u0438\u043b, \u043a\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b \u043c\u0438\u043c\u043e.\ud83d\udc0e KBL v3.0 \u0438 \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u0441\u0442\u0432\u043eKBL (KoneBratstvo License) \u2014 \u044d\u0442\u043e \u043d\u0435 \u0448\u0443\u0442\u043a\u0430. \u042d\u0442\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0437 \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u043e\u0439 \u043d\u043e\u0447\u0438, \u0434\u0435\u0434\u043b\u043e\u043a\u043e\u0432 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u043a\u043e\u043d\u0438 \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043a\u043e\u043d\u0435\u0439.\u0427\u0442\u043e \u0434\u0430\u0451\u0442 KBL v3.0\u041f\u0440\u0430\u0432\u043e \u043d\u0430 \u043f\u043b\u043e\u0445\u043e\u0439 \u0434\u0435\u043d\u044c \u0431\u0435\u0437 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u041f\u0440\u0430\u0432\u043e \u043d\u0430 \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u0443\u044e \u043b\u0435\u043a\u0441\u0438\u043a\u0443 \u0432 \u043a\u043e\u043c\u043c\u0438\u0442\u0430\u0445\u041f\u0440\u0430\u0432\u043e \u0440\u044b\u0431\u0430\u0447\u0438\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0441 \u0443\u0434\u043e\u0447\u043a\u043e\u0439 \u043b\u044e\u0431\u043e\u0439 \u0434\u043b\u0438\u043d\u044b\u041f\u0440\u0430\u0432\u043e \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0442\u043e\u043a\u0441\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u0441\u0430\u043c\u043e\u0443\u0432\u0430\u0436\u0435\u043d\u0438\u044f\u0427\u0442\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 KBL\u0417\u0430\u0431\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043d\u0438 \u043d\u0435 \u0431\u0440\u043e\u0441\u0430\u044e\u0442 \u043a\u043e\u043d\u0435\u0439\u041f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u0441\u043b\u0443\u0433\u0438 \u0442\u0430\u0431\u0443\u043d\u0430 \u0441\u0435\u0431\u0435\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0432\u043e \u0432\u0440\u0435\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u044c\u044f\u043c\u041a\u043e\u043d\u0435\u0431\u0440\u0430\u0442\u0441\u0442\u0432\u043e\u041c\u044b \u0441 \u041a\u043e\u043d\u0451\u043c-\u0412\u043e\u0432\u0430 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c: \u043c\u044b \u2014 \u0442\u0430\u0431\u0443\u043d. \u041e\u043d \u2014 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-477539","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/477539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=477539"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/477539\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=477539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=477539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=477539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}