{"id":496155,"date":"2026-09-26T07:27:28","date_gmt":"2026-09-26T07:27:28","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=496155"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=496155","title":{"rendered":"Perfscale news #12. WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, SDK \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u043e\u0432 \u0438 \u00ab\u0436\u0438\u0432\u044b\u0435\u00bb \u043b\u043e\u0433\u0438"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041f\u0440\u043e\u0448\u043b\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0431\u044b\u043b \u043f\u0440\u043e \u0442\u043e\u043a\u0435\u043d\u044b \u0438 SQID, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443 \u043d\u0430\u0441 \u0446\u0435\u043b\u0430\u044f \u043d\u0435\u0434\u0435\u043b\u044f WASM\u0430. \u041f\u043e\u0433\u043d\u0430\u043b\u0438!<\/p>\n<details class=\"spoiler\">\n<summary>\u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1057960\/\" rel=\"noopener nofollow\">\u041d\u043e\u0432\u043e\u0441\u0442\u0438 Perfscale \u2116\u00a01<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1058616\/\" rel=\"noopener nofollow\">Perfscale news #2: Fix Protocol, Magic metrics \u0438\u00a0MCP<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1061118\/\" rel=\"noopener nofollow\">perfscale news #3\u00a0Websocket, Inference, NPM<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1064292\/\" rel=\"noopener nofollow\">Perfscale news #4. GRPC, Fixed Triggers, Child Process<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1067192\/\" rel=\"noopener nofollow\">Perfscale news #5. SQL, Thresholds, \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 Linked Accounts<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1069752\/\" rel=\"noopener nofollow\">Perfscale news #6. GraphQL, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Import, \u0438\u00a0\u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1072902\/\" rel=\"noopener nofollow\">Perfscale news #7. Fix Import, SOAP, and more HTTP metrics<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1075678\/\" rel=\"noopener nofollow\">Perfscale news #8. WS\u00a0Benchmark, Jmeter open sourced &amp; fixed linked accounts<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1077874\/\" rel=\"noopener nofollow\">Perfscale news #9. GPU, LLM, Docker images<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1081272\/\" rel=\"noopener nofollow\">Perfscale news #10. Shared variables, Pub\/Sub load testing &amp; live metrics<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/news\/1083982\/\" rel=\"noopener nofollow\">Perscale news #11. Fine\u2011grained token, SQID, stdout log streaming<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/details>\n<h2>OSS<\/h2>\n<p><strong>WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (RFC 005)<\/strong><\/p>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441 \u0434\u0432\u0438\u0436\u043a\u043e\u043c \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u2014 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u043e\u0447\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (\u0442\u0438\u043f\u0430 random, \u043d\u043e \u0441\u0432\u043e\u0439), \u0430 \u0434\u0432\u0438\u0436\u043e\u043a \u0435\u0451 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442. \u0414\u0430, \u043c\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u0432 &#171;\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438&#187;, \u043d\u043e \u0436\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0438, \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e!<\/p>\n<p>\u0412\u044b\u0448\u043b\u043e \u044d\u0442\u043e \u0432 \u0442\u0440\u0438 \u0437\u0430\u0445\u043e\u0434\u0430, \u043a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e:<\/p>\n<p>\u2022 v0.20.0 \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a class=\"mention\" href=\"\/users\/std\">@std<\/a>\/random \u0438 \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 ${\u2026} \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043e \u0432\u0441\u0435\u0445 \u044d\u043a\u0448\u0435\u043d\u0430\u0445, \u0430 \u043d\u0435 \u0433\u0434\u0435 \u043f\u043e\u043f\u0430\u043b\u043e. <\/p>\n<p>\u2022 v0.21.0 \u2014 WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 wasmtime, capabilities (\u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043c\u043e\u0436\u043d\u043e), \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438. <\/p>\n<p>\u2022 v0.22.0 \u2014 <code>perfscale install<\/code> \u0438 <code>perfscale.lock<\/code>: \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043e\u0444\u043b\u0430\u0439\u043d-\u0440\u0435\u0437\u043e\u043b\u044e\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u0435\u0448. \u041a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u043c.<\/p>\n<p>\u0417\u0430\u043e\u0434\u043d\u043e lint \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u043a \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443, \u043a\u0430\u043a run.<\/p>\n<p>\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u0440\u044b \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u043b\u0438, \u0437\u0430\u0432\u0435\u0437\u043b\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<p>&#8212; <code><a class=\"mention\" href=\"\/users\/perfscale\">@perfscale<\/a>\/library-sdk<\/code> \u0432 <a href=\"https:\/\/www.npmjs.com\/package\/@perfscale\/library-sdk\" rel=\"noopener nofollow\">npm<\/a> \u2014 TypeScript SDK \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a.  library-template \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d, \u0441\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u043f\u043e\u0433\u043d\u0430\u043b. <code>library-random<\/code> \u2014 \u043d\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 <code><a class=\"mention\" href=\"\/users\/std\">@std<\/a>\/random<\/code> \u043d\u0430 WASM, \u0441 e2e \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u043c CI. \u041c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u043d\u0430 \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441.<\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0442\u043e\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u00abLibraries\u00bb \u0443\u0436\u0435 \u0436\u0434\u0451\u0442.<\/p>\n<h2>Platform<\/h2>\n<p><strong>\u0416\u0438\u0432\u044b\u0435 \u043b\u043e\u0433\u0438 \u0447\u0435\u0440\u0435\u0437 WebSocket<\/strong><\/p>\n<p>\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 #11 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e stdout-\u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433 \u0432 OSS? \u0422\u0430\u043a \u0432\u043e\u0442 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043e\u0442\u0441\u0442\u0430\u043b\u0430: \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0433\u0438 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u0440\u0438\u043c\u044f\u0442\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e WebSocket \u2014 \u043e\u0442\u043a\u0440\u044b\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c, \u043a\u0430\u043a \u043e\u043d\u0430 \u00ab\u0434\u044b\u0448\u0438\u0442\u00bb, \u0431\u0435\u0437 \u0440\u0435\u0444\u0440\u0435\u0448\u0430.<\/p>\n<p><strong>Q: \u0410 \u0441\u0442\u0430\u0440\u044b\u0439 SSE \u043a\u0443\u0434\u0430 \u0434\u0435\u043b\u0441\u044f? <\/strong><\/p>\n<p>A: \u041d\u0438\u043a\u0443\u0434\u0430, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 ws-\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442, \u0430 \u0434\u043b\u044f \u043d\u0435\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 (poll) \u043c\u044b \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u044d\u0442\u043e\u043c, \u0430 \u043d\u0435 \u043c\u043e\u043b\u0447\u0438\u043c.<\/p>\n<p>\u0417\u0430\u043e\u0434\u043d\u043e \u043a\u0440\u043e\u0441\u0441-\u0440\u0435\u043f\u043b\u0438\u043a\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 BFF \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u043e \u0432 Redis \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u0432\u0430\u0436\u043d\u043e, \u043d\u0430 \u043a\u0430\u043a\u0443\u044e \u0440\u0435\u043f\u043b\u0438\u043a\u0443 \u0432\u0430\u0441 \u0437\u0430\u043a\u0438\u043d\u0443\u043b \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a, \u0432\u0430\u0448 \u0441\u0442\u0440\u0438\u043c \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0418\u2026 \u044d\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0410 \u043d\u0430 \u044d\u0442\u043e\u043c \u0443 \u043c\u0435\u043d\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0441\u0435.<\/p>\n<p><strong>\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0436\u0435\u043b\u0430\u044e \u0432\u0430\u043c WASM\u0430 \u0431\u0435\u0437 segfault\u043e\u0432 \u0438 SLO \u0432 99,999%.<\/strong><\/p>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/www.npmjs.com\/package\/@perfscale\/library-sdk\" rel=\"noopener nofollow\">https:\/\/www.npmjs.com\/package\/@perfscale\/library-sdk<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/perfscale.ru\/blog\/wasm-libraries\" rel=\"noopener nofollow\">https:\/\/perfscale.ru\/blog\/wasm-libraries<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/perfscale.ru\/docs\/concepts\/libraries\" rel=\"noopener nofollow\">https:\/\/perfscale.ru\/docs\/concepts\/libraries<\/a><\/p>\n<\/li>\n<\/ul>\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\/1086894\/\">https:\/\/habr.com\/ru\/articles\/1086894\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041f\u0440\u043e\u0448\u043b\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0431\u044b\u043b \u043f\u0440\u043e \u0442\u043e\u043a\u0435\u043d\u044b \u0438 SQID, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0443 \u043d\u0430\u0441 \u0446\u0435\u043b\u0430\u044f \u043d\u0435\u0434\u0435\u043b\u044f WASM\u0430. \u041f\u043e\u0433\u043d\u0430\u043b\u0438!\u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0438\u041d\u043e\u0432\u043e\u0441\u0442\u0438 Perfscale \u2116\u00a01Perfscale news #2: Fix Protocol, Magic metrics \u0438\u00a0MCPperfscale news #3\u00a0Websocket, Inference, NPMPerfscale news #4. GRPC, Fixed Triggers, Child ProcessPerfscale news #5. SQL, Thresholds, \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 Linked AccountsPerfscale news #6. GraphQL, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Import, \u0438\u00a0\u043c\u0435\u0442\u0440\u0438\u043a\u0438Perfscale news #7. Fix Import, SOAP, and more HTTP metricsPerfscale news #8. WS\u00a0Benchmark, Jmeter open sourced &amp; fixed linked accountsPerfscale news #9. GPU, LLM, Docker imagesPerfscale news #10. Shared variables, Pub\/Sub load testing &amp; live metricsPerscale news #11. Fine\u2011grained token, SQID, stdout log streamingOSSWASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (RFC 005)\u0421\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441 \u0434\u0432\u0438\u0436\u043a\u043e\u043c \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u2014 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u043e\u0447\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (\u0442\u0438\u043f\u0430 random, \u043d\u043e \u0441\u0432\u043e\u0439), \u0430 \u0434\u0432\u0438\u0436\u043e\u043a \u0435\u0451 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442. \u0414\u0430, \u043c\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u0432 &#171;\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438&#187;, \u043d\u043e \u0436\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0438, \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e!\u0412\u044b\u0448\u043b\u043e \u044d\u0442\u043e \u0432 \u0442\u0440\u0438 \u0437\u0430\u0445\u043e\u0434\u0430, \u043a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e:\u2022 v0.20.0 \u2014 \u043d\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 @std\/random \u0438 \u0435\u0434\u0438\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u0435 ${\u2026} \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043e \u0432\u0441\u0435\u0445 \u044d\u043a\u0448\u0435\u043d\u0430\u0445, \u0430 \u043d\u0435 \u0433\u0434\u0435 \u043f\u043e\u043f\u0430\u043b\u043e. \u2022 v0.21.0 \u2014 WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 wasmtime, capabilities (\u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043c\u043e\u0436\u043d\u043e), \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438. \u2022 v0.22.0 \u2014 perfscale install \u0438 perfscale.lock: \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043e\u0444\u043b\u0430\u0439\u043d-\u0440\u0435\u0437\u043e\u043b\u044e\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u0435\u0448. \u041a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430\u043c.\u0417\u0430\u043e\u0434\u043d\u043e lint \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u043a \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0449\u0435\u043c\u0443 \u0444\u0430\u0439\u043b\u0443, \u043a\u0430\u043a run.\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f\u0427\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u0440\u044b \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u043b\u0438, \u0437\u0430\u0432\u0435\u0437\u043b\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:- @perfscale\/library-sdk \u0432 npm \u2014 TypeScript SDK \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f WASM-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a.  library-template \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d, \u0441\u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0438 \u043f\u043e\u0433\u043d\u0430\u043b. library-random \u2014 \u043d\u0430\u0448 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 @std\/random \u043d\u0430 WASM, \u0441 e2e \u0442\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0440\u0435\u043b\u0438\u0437\u043d\u044b\u043c CI. \u041c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a \u043d\u0430 \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441.\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0442\u043e\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u00abLibraries\u00bb \u0443\u0436\u0435 \u0436\u0434\u0451\u0442.Platform\u0416\u0438\u0432\u044b\u0435 \u043b\u043e\u0433\u0438 \u0447\u0435\u0440\u0435\u0437 WebSocket\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432 #11 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043f\u0440\u043e stdout-\u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433 \u0432 OSS? \u0422\u0430\u043a \u0432\u043e\u0442 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043e\u0442\u0441\u0442\u0430\u043b\u0430: \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u043e\u0433\u0438 \u0437\u0430\u0434\u0430\u0447 \u0441\u0442\u0440\u0438\u043c\u044f\u0442\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e WebSocket \u2014 \u043e\u0442\u043a\u0440\u044b\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c, \u043a\u0430\u043a \u043e\u043d\u0430 \u00ab\u0434\u044b\u0448\u0438\u0442\u00bb, \u0431\u0435\u0437 \u0440\u0435\u0444\u0440\u0435\u0448\u0430.Q: \u0410 \u0441\u0442\u0430\u0440\u044b\u0439 SSE \u043a\u0443\u0434\u0430 \u0434\u0435\u043b\u0441\u044f? A: \u041d\u0438\u043a\u0443\u0434\u0430, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u0447 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 ws-\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442, \u0430 \u0434\u043b\u044f \u043d\u0435\u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 (poll) \u043c\u044b \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u044d\u0442\u043e\u043c, \u0430 \u043d\u0435 \u043c\u043e\u043b\u0447\u0438\u043c.\u0417\u0430\u043e\u0434\u043d\u043e \u043a\u0440\u043e\u0441\u0441-\u0440\u0435\u043f\u043b\u0438\u043a\u043e\u0432\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 BFF \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u043e \u0432 Redis \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u0432\u0430\u0436\u043d\u043e, \u043d\u0430 \u043a\u0430\u043a\u0443\u044e \u0440\u0435\u043f\u043b\u0438\u043a\u0443 \u0432\u0430\u0441 \u0437\u0430\u043a\u0438\u043d\u0443\u043b \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a, \u0432\u0430\u0448 \u0441\u0442\u0440\u0438\u043c \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f.\u0418\u2026 \u044d\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0410 \u043d\u0430 \u044d\u0442\u043e\u043c \u0443 \u043c\u0435\u043d\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0441\u0435.\u0422\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u0436\u0435\u043b\u0430\u044e \u0432\u0430\u043c WASM\u0430 \u0431\u0435\u0437 segfault\u043e\u0432 \u0438 SLO \u0432 99,999%.\u0421\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043ahttps:\/\/www.npmjs.com\/package\/@perfscale\/library-sdkhttps:\/\/perfscale.ru\/blog\/wasm-librarieshttps:\/\/perfscale.ru\/docs\/concepts\/libraries\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1086894\/<\/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-496155","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/496155","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=496155"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/496155\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=496155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=496155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=496155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}