{"id":459624,"date":"2025-05-14T09:21:37","date_gmt":"2025-05-14T09:21:37","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=459624"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=459624","title":{"rendered":"<span>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u2014 \u043d\u043e\u0432\u044b\u0439 \u043b\u0435\u0433\u0430\u0441\u0438: \u041a\u0430\u043a \u043c\u044b \u043f\u0440\u043e\u0441\u043f\u0430\u043b\u0438 event-driven \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044e<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><strong>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0434\u0435\u0436\u0430\u0432\u044e<\/strong><\/p>\n<p>\u0412\u044b \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u043b\u0438, \u043a\u0430\u043a \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043f\u0438\u0440\u0430\u043b\u0438? \u0412 2018 \u0433\u043e\u0434\u0443 \u044f, \u0440\u0430\u0437\u043c\u0430\u0445\u0438\u0432\u0430\u044f Dockerfile\u00a0\u0438 Helm-\u0447\u0430\u0440\u0442\u0430\u043c\u0438, \u0432\u043d\u0435\u0434\u0440\u044f\u043b \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430 C# \u0441 RabbitMQ \u2014 \u0432\u0441\u0451 \u0440\u0430\u0434\u0438 \u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0439 \u0446\u0435\u043b\u0438\u00a0<em>\u00ab\u043d\u0438\u0437\u043a\u043e\u0439 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0438\u00bb<\/em>. \u0410 \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0438 \u0433\u043e\u0434\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 Angular, \u0441 \u0443\u0436\u0430\u0441\u043e\u043c \u043e\u0441\u043e\u0437\u043d\u0430\u043b: \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0431\u0449\u0430\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437\u00a0\u0446\u0435\u043f\u043e\u0447\u043a\u0438 Input\/Output, \u0441\u043b\u043e\u0432\u043d\u043e \u044d\u0442\u043e 2005-\u0439, \u0430 \u043c\u044b \u043f\u0438\u0448\u0435\u043c WinForms.<\/p>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u0440\u0430\u0431\u043b\u044c, \u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u0444. \u041d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u043c\u044b \u0433\u043e\u0440\u0434\u043e \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c\u00a0<em>event-driven architecture<\/em>, \u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0448\u0451\u043f\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043f\u0441\u044b, \u0431\u0443\u0434\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0441\u0442\u043a\u0438 \u043d\u0430 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0442\u0435\u043a\u0435. \u0418\u0440\u043e\u043d\u0438\u044f? \u0427\u0435\u043c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d\u0438 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0435\u0436\u0430\u043b\u0438 \u0432 \u043c\u0438\u0440\u0435 backend.<\/p>\n<p>\u041c\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0441\u0442\u0438\u043d\u044b \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041e\u0442\u043c\u0435\u043d\u0430\u00bb, \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0440\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0441\u0435\u0433\u043e 12 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438! \u0412 \u043c\u0438\u0440\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0431\u044b \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u044f\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442 \u043b\u0435\u0439\u0431\u043b\u0430. \u0418 \u0442\u043e\u0433\u0434\u0430 \u044f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c:\u00a0<em>\u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434, \u043f\u0440\u0438 \u0432\u0441\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0443\u0441\u0432\u043e\u0438\u043b \u0443\u0440\u043e\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c?\u00bb<\/em><\/p>\n<p>\u041c\u044b \u043e\u0441\u0432\u043e\u0438\u043b\u0438 WebAssembly, \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 GraphQL, \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u043b\u0438 CSS \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438, \u043d\u043e \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0430 \u0432 \u044d\u043f\u043e\u0445\u0435 jQuery. \u041a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0437\u0430\u0431\u044b\u043b\u0438, \u0447\u0442\u043e React, Angular \u0438 Vue \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433, \u0430 \u043f\u0440\u043e\u00a0<em>\u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/em>.<\/p>\n<p>\u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u044f \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442? \u0427\u0442\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 RabbitMQ, Kafka \u0438 AWS SQS, \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0441\u043f\u0430\u0441\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430? \u0418 \u0447\u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0435\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 15 \u041a\u0411 \u043a\u043e\u0434\u0430 \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0432 \u043a\u0440\u043e\u043b\u0438\u0447\u044c\u044e \u043d\u043e\u0440\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0430\u0448\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0443\u0442 \u043f\u0435\u0440\u0435\u0448\u0435\u043f\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u0435\u0442\u0441\u043a\u0438\u0435 \u0431\u0435\u0441\u0435\u0434\u044b \u043a\u0430\u043a \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 1: \u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u044d\u043a\u0441\u043a\u0443\u0440\u0441 \u2014 40 \u043b\u0435\u0442 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 Pub\/Sub<\/h3>\n<p>\u0412 1983 \u0433\u043e\u0434\u0443, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u0434\u0436\u0430\u043c\u043f\u0435\u0440\u044b \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0438\u0445 \u043f\u043b\u0430\u0442\u0430\u0445, \u0410\u0434\u0435\u043b\u044c \u0413\u043e\u043b\u0434\u0431\u0435\u0440\u0433 \u0438\u0437 Xerox PARC \u043f\u0438\u0441\u0430\u043b\u0430 \u043a\u043e\u0434 \u0434\u043b\u044f Smalltalk-80. \u0412 \u0435\u0451 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u0438 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0435\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b, \u0432\u0435\u0431-\u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u044d\u043f\u043e\u0445\u0443: \u00ab<em>\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/em>\u00bb. \u042d\u0442\u043e \u0431\u044b\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0434\u043e\u0445 <code>Pub\/Sub<\/code> \u2014 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u043c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043e\u043c \u044d\u0441\u043f\u0435\u0440\u0430\u043d\u0442\u043e \u0434\u043b\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439.<\/p>\n<h4>\u042d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0432 \u0442\u0440\u0451\u0445 \u044d\u043f\u043e\u0445\u0430\u0445<\/h4>\n<p><strong>1. \u042d\u0440\u0430 \u043f\u043b\u0435\u043c\u0451\u043d (1980\u20132000)<\/strong>\u00a0Smalltalk-\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u043e\u0431\u044b\u0442\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u2014 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0431\u0435\u0437 \u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u043e\u0432. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430? \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u00ab\u043f\u0438\u0441\u044c\u043c\u043e\u00bb, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u043d\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u00ab\u043f\u043b\u0435\u043c\u0435\u043d\u0438\u00bb-\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f.<\/p>\n<pre><code class=\"smalltalk\">\"\u041f\u043b\u0435\u043c\u044f \u0410 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u043b\u0435\u043c\u0435\u043d\u0438 \u0411\" \u0411 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432: '\u041e\u0433\u043e\u043d\u044c \u043f\u043e\u0433\u0430\u0441!'<\/code><\/pre>\n<p><strong>\u042d\u0440\u0430 \u0438\u043c\u043f\u0435\u0440\u0438\u0439 (2000\u20132010)<\/strong>\u00a0CORBA \u0438 Enterprise Service Bus (ESB) \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u0431\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044e. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e:<\/p>\n<ul>\n<li>\n<p>\u0417\u043d\u0430\u0442\u044c WSDL-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c XML-\u0441\u0445\u0435\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 2010 \u0433\u043e\u0434\u0430 \u043c\u044b \u0442\u0440\u0438 \u043d\u0435\u0434\u0435\u043b\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 SAP \u0441 .NET \u0447\u0435\u0440\u0435\u0437 ESB. \u041a\u043e\u0433\u0434\u0430 \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u0430: \u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0449\u0435?\u00bb, \u043e\u043d \u043e\u0442\u0432\u0435\u0442\u0438\u043b: \u00ab\u042d\u0442\u043e enterprise \u2014 \u0437\u0434\u0435\u0441\u044c \u0442\u0430\u043a \u043f\u0440\u0438\u043d\u044f\u0442\u043e\u00bb.<\/p>\n<p><strong>\u042d\u0440\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (2010\u2013\u043d.\u0432.)<\/strong>\u00a0Kafka, RabbitMQ \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 <code>Pub\/Sub<\/code> \u0432\u00a0<em>\u043b\u0438\u043d\u0433\u0432\u0430-\u0444\u0440\u0430\u043d\u043a\u0430<\/em>\u00a0\u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f = \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0411\u0440\u043e\u043a\u0435\u0440 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<h4>\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0439 \u043f\u043e\u0432\u043e\u0440\u043e\u0442: \u041e\u0442 \u043f\u0440\u0438\u043a\u0430\u0437\u043e\u0432 \u043a \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430\u043c<\/h4>\n<p><code>Pub\/Sub<\/code> \u2014 \u044d\u0442\u043e \u0446\u0438\u0444\u0440\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f\u00a0<em>\u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0420\u0443\u0441\u0441\u043e<\/em>. \u041a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442\u00a0<code>PriceChangedEvent<\/code>, \u043e\u043d \u043a\u0430\u043a \u0431\u044b \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u00ab\u042f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e\u00bb<\/p>\n<\/li>\n<li>\n<p>\u00ab\u041d\u043e \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u2014 \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435\u00bb<\/p>\n<\/li>\n<li>\n<p>\u00ab\u041e\u0431\u0435\u0449\u0430\u044e \u0444\u043e\u0440\u043c\u0430\u0442: {itemId: string, newPrice: number}\u00bb<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 TCP\/IP \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439: \u043a\u0430\u043a \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0437\u0430\u0431\u043e\u0442\u044f\u0442\u0441\u044f \u043e \u0442\u043e\u043c, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u044b \u0438\u043b\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0442\u0430\u043a \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, Angular \u0432\u044b \u0438\u043b\u0438 React.<\/p>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 Pub\/Sub \u043f\u0435\u0440\u0435\u0436\u0438\u043b 40 \u043b\u0435\u0442 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u0439?<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0410\u043d\u0442\u0438\u0445\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u044c<\/strong>: \u0421\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0447\u0430\u0442\u0441\u044f \u0436\u0438\u0442\u044c \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 (\u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f Dead Letter Queues)<\/p>\n<\/li>\n<li>\n<p><strong>\u042f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c<\/strong>: \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043d\u0430 \u0447\u0451\u043c \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u2014 \u043e\u043d\u0438 \u043a\u0430\u043a \u044d\u0441\u043f\u0435\u0440\u0430\u043d\u0442\u043e \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u042d\u0432\u043e\u043b\u044e\u0446\u0438\u043e\u043d\u043d\u043e\u0441\u0442\u044c<\/strong>: \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0448\u0438\u043d\u044b \u0438 \u0440\u0430\u0441\u0442\u0438 \u0434\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437 \u043d\u0430 \u043c\u0438\u0442\u0430\u043f\u0435 \u044f \u0443\u0441\u043b\u044b\u0448\u0430\u043b \u0444\u0440\u0430\u0437\u0443: \u00abKafka \u2014 \u044d\u0442\u043e Smalltalk \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u0434\u043e\u043b\u044f \u043f\u0440\u0430\u0432\u0434\u044b \u2014 \u043e\u0431\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0443\u0447\u0430\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u0435\u0436\u043b\u0438\u0432\u043e\u043c\u0443 \u043e\u0431\u0449\u0435\u043d\u0438\u044e \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u044d\u0442\u043e\u0442 40-\u043b\u0435\u0442\u043d\u0438\u0439 \u043e\u043f\u044b\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043a Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u2014 \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0442\u044b\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u043b\u043e\u043a\u0442\u044f\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 Input\/Output \u0438 \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<h4>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434: \u0417\u0430\u0441\u0442\u0440\u044f\u0432\u0448\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c?<\/h4>\n<p>\u041f\u043e\u043a\u0430 \u0431\u044d\u043a\u0435\u043d\u0434 \u0432 2010-\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b \u043e\u0442 SOAP \u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c, \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u043b\u2026\u00a0<code>@Output()<\/code>. \u0412 Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0438 \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u043a\u0438 \u044d\u0440\u044b \u0438\u043c\u043f\u0435\u0440\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>\u0416\u0451\u0441\u0442\u043a\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441\u044b \u043a\u0430\u043a ESB-\u043c\u043e\u043d\u0441\u0442\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u0447\u0435\u0440\u0435\u0437 5 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u2014 \u043a\u0430\u043a \u0431\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0447\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0<code>@Output() analyticsEvent<\/code>\u00a0\u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 D<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 B \u2192 C \u2192 A<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0433\u043e\u043d \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0430\u0434\u0438 \u0441\u0442\u0440\u043e\u043a\u0438\u00a0<code>analytics.track('click')<\/code>. \u042d\u0442\u043e \u043a\u0430\u043a \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u0441\u043e\u0441\u0435\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u0423\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b<\/h4>\n<p><strong>1. \u0421\u043e\u0431\u044b\u0442\u0438\u044f \u2260 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432<\/strong><\/p>\n<p>\u0411\u044d\u043a\u0435\u043d\u0434 \u0434\u0430\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u043b: \u0435\u0441\u043b\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 A \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 B, \u0430 B \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 C \u2014 \u044d\u0442\u043e \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d. \u041d\u043e \u0432\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435\u00a0@Output() \u2192 \u0441\u0435\u0440\u0432\u0438\u0441 \u2192 @Input() \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u043e\u0439.<\/p>\n<p><strong>2. \u0411\u0440\u043e\u043a\u0435\u0440 \u2260 \u0442\u043e\u0447\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u0430<\/strong><\/p>\n<p>RabbitMQ \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0410 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 Angular-\u0441\u0435\u0440\u0432\u0438\u0441 \u0441 Subject-\u0430\u043c\u0438 \u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438 1000 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p><strong>3. \u0424\u043e\u0440\u043c\u0430\u0442 &gt; \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p>\u041d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 OpenAPI\/Swagger \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b. \u0412\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 any \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445.<\/p>\n<h4>\u0417\u0430\u0440\u044f \u043d\u0430\u0434\u0435\u0436\u0434\u044b: Web Components<\/h4>\n<p>\u041f\u043e \u0438\u0440\u043e\u043d\u0438\u0438, \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u043e\u0433\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432 2011 \u0433\u043e\u0434\u0443 \u0441 \u0438\u0434\u0435\u0438 Web Components. \u0418\u0445\u00a0<code>Custom Events<\/code>\u00a0\u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0443\u0445\u0443 Pub\/Sub, \u0447\u0435\u043c Angular-\u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">\/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0410 dispatchEvent(new CustomEvent('price-changed', {    detail: {itemId: '45', price: 20} }));  \/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0411 window.addEventListener('price-changed', (e) =&gt; {    console.log(e.detail.price); });<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u043d\u043d\u0438\u0439 Smalltalk, \u043d\u043e \u0441 HTML5-\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c. \u0416\u0430\u043b\u044c, \u0447\u0442\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u043d\u0435 \u043f\u043e\u0448\u043b\u0438 \u044d\u0442\u0438\u043c \u043f\u0443\u0442\u0451\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p><strong>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441<\/strong>: \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 2 \u0433\u043e\u0434\u0430, \u043d\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0438 \u0432 2000-\u0445. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u044b \u0438 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u2026 40-\u043b\u0435\u0442\u043d\u0435\u0433\u043e Smalltalk.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u044d\u0442\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 Angular-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u2014 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0<code>@Input\/@Output<\/code>\u00a0\u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u043f\u0430\u0441\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f. \u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043a\u043e\u0432\u0443\u044e \u0441\u0442\u0435\u043d\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0437\u0430\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043d\u0443\u0442\u0440\u0438\u00a0\u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u0441\u043d\u0430\u0440\u0443\u0436\u0438.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 2: \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0434\u0438\u043b\u0435\u043c\u043c\u0430 \u2014 \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0431\u043e\u043b\u0442\u0430\u0442\u044c<\/h3>\n<p>\u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0435 \u043a\u043e\u0434 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e?\u00a0\u041a\u0430\u043a \u0442\u043e\u0442 \u0441\u043e\u0441\u0435\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0432\u0441\u0435\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043c\u0435\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f. \u0412 Angular-\u043c\u0438\u0440\u0435 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0435\u0432\u0438\u043d\u043d\u043e\u0433\u043e\u00a0<code>@Input()<\/code>\u00a0\u0438\u00a0<code>@Output()<\/code>, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0443\u0442\u0438\u043d\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u0438\u0433\u0440\u0443 \u0432 \u00ab\u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u00bb.<\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 1: Input\/Output \u043a\u0430\u043a \u0446\u0435\u043f\u043d\u044b\u0435 \u0440\u0435\u0430\u043a\u0446\u0438\u0438<\/h4>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u00a0<code>ProductCard<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<pre><code class=\"typescript\">\/\/ product-card.component.ts @Output() openModal = new EventEmitter&lt;string&gt;();  onClick() {   this.openModal.emit('product-details'); }  \/\/ parent.component.html &lt;product-card (openModal)=\"handleModal($event)\"&gt;&lt;\/product-card&gt; &lt;modal [type]=\"modalType\"&gt;&lt;\/modal&gt;<\/code><\/pre>\n<p>\u0427\u0442\u043e \u043d\u0435 \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p><code>ProductCard<\/code>\u00a0\u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0443\u0440\u044c\u0435\u0440\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u044f\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u043a\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u043e\u0444\u0438\u0441\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043b\u0438\u0447\u043d\u043e \u0432 \u0440\u0443\u043a\u0438, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u044f\u0449\u0438\u043a \u0434\u043b\u044f \u043f\u0438\u0441\u0435\u043c.<\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2: \u0421\u0435\u0440\u0432\u0438\u0441\u044b-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u0438 \u043a\u0430\u043a \u043d\u043e\u0432\u044b\u0439 \u043c\u043e\u043d\u043e\u043b\u0438\u0442<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 Output-\u043e\u0432 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c\u00a0<code>ModalService<\/code>:<\/p>\n<pre><code class=\"typescript\">\/\/ modal.service.ts private modalSubject = new Subject&lt;string&gt;(); modal$ = this.modalSubject.asObservable();  open(type: string) {   this.modalSubject.next(type); }  \/\/ product-card.component.ts constructor(private modal: ModalService) {}  onClick() {   this.modal.open('product-details'); }<\/code><\/pre>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435, \u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u00ab\u0431\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u00bb, \u0437\u043d\u0430\u044e\u0449\u0438\u0439 \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u043c\u043e\u0434\u0430\u043b\u043a\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a API \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043e\u043a\u0438\u043d\u0433\u0430 \u0446\u0435\u043b\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430\u0448\u00a0<code>SharedService<\/code>\u00a0\u0440\u0430\u0437\u0440\u043e\u0441\u0441\u044f \u0434\u043e 1200 \u0441\u0442\u0440\u043e\u043a \u2014 \u043e\u043d \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043c\u043e\u0434\u0430\u043b\u043a\u0430\u043c\u0438, \u0442\u0443\u043b\u0442\u0438\u043f\u0430\u043c\u0438, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c\u0438. \u041c\u044b \u0448\u0443\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u043d \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0430 \u043d\u0435 \u043c\u044b, \u043d\u043e \u0441\u043c\u0435\u0445 \u0431\u044b\u043b \u043d\u0435\u0440\u0432\u043d\u044b\u043c.<\/p>\n<h4>\u041a\u0435\u0439\u0441: \u041c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e-\u0448\u043f\u0438\u043e\u043d<\/h4>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0438\u0437 17 \u043c\u0435\u0441\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u041f\u043e \u0441\u0442\u0430\u0440\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0<code>@Output() registerClick<\/code>\u00a0\u0432 5 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 3 \u0443\u0440\u043e\u0432\u043d\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u00a0<code>AnalyticsService<\/code>, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c 23 \u0442\u0435\u0441\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u044d\u0442\u043e \u0443\u0448\u043b\u043e 2 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0434\u043d\u044f. \u0421 <a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">postboy <\/a>\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u044f\u043b\u043e 20 \u043c\u0438\u043d\u0443\u0442:<\/p>\n<pre><code class=\"typescript\">\/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u0441 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0439 postboy.fire(new OpenModalEvent({   type: 'signup',   source: 'navbar' \/\/ \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 }));  \/\/ \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0432\u0441\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043c\u043e\u0434\u0430\u043b\u043e\u043a postboy.sub(OpenModalEvent).subscribe(event =&gt; {   analytics.track('modal-open', event.type, event.source); });<\/code><\/pre>\n<p>\u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u043e\u043a \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435.<\/p>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430?<\/h4>\n<ul>\n<li>\n<p><strong>\u0425\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u044c<\/strong>: \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u043b\u043d\u0443 \u043f\u0440\u0430\u0432\u043e\u043a \u0432 \u0434\u0440\u0443\u0433\u0438\u0445<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c<\/strong>: \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443, \u043d\u0443\u0436\u043d\u043e \u043c\u043e\u043a\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c<\/strong>: \u041d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0433\u043e\u0440\u043e\u0434 \u0431\u0435\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0440\u043e\u044f\u0442 \u0434\u043e\u043c\u0430 \u043a\u0430\u043a \u043f\u043e\u043f\u0430\u043b\u043e, \u0430 \u043f\u043e\u0442\u043e\u043c \u0433\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u0441\u0447\u0438\u0449\u0430\u044e\u0442 \u043a\u0440\u0438\u0432\u044b\u0435 \u043f\u0435\u0440\u0435\u0443\u043b\u043a\u0438.<\/p>\n<p>\u0410 \u0435\u0449\u0451 \u0434\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u00ab\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 C\u00bb.<\/p>\n<p><strong>\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0438\u0442\u043e\u0433<\/strong>: Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0436\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0435\u0433\u0430\u043f\u043e\u043b\u0438\u0441\u0430 \u2014 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b, \u043d\u043e \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u00ab\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430\u00bb \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0447\u0442\u0443: \u0447\u0435\u0440\u0435\u0437 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, NgRx \u0438\u043b\u0438 \u043b\u0435\u0433\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u0438\u043d\u043e\u0433\u0434\u0430 \u043b\u0443\u0447\u0448\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 3: \u0411\u044d\u043a\u0435\u043d\u0434-\u0443\u0440\u043e\u043a\u0438 \u2014 \u0427\u0442\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0440\u0430\u0441\u0442\u044c \u0443 RabbitMQ<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u0431\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0443\u043c\u0435\u043b\u0438 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c, \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u043b\u0438 \u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u043e\u0432\u0435\u0442\u0430. RabbitMQ, Kafka \u0438 \u0434\u0440\u0443\u0433\u0438\u0435\u00a0\u0431\u0440\u043e\u043a\u0435\u0440\u044b \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f\u043c\u0438 \u0440\u0435\u0448\u0430\u044e\u0442 \u0442\u0435 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0447\u0442\u043e \u0442\u0435\u0440\u0437\u0430\u044e\u0442 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u00ab\u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u0443\u0435\u043c\u00bb \u0447\u0435\u0442\u044b\u0440\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u044b.<\/p>\n<h4>\u041f\u0440\u0438\u043d\u0446\u0438\u043f 1: \u0418\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432<\/h4>\n<p><strong>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 RabbitMQ:<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0434\u0430\u0432\u0435\u0446 (\u0438\u0437\u0434\u0430\u0442\u0435\u043b\u044c) \u043a\u043b\u0430\u0434\u0451\u0442 \u0442\u043e\u0432\u0430\u0440 \u043d\u0430 \u0441\u043a\u043b\u0430\u0434 (\u0431\u0440\u043e\u043a\u0435\u0440). \u0415\u043c\u0443 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043a\u0442\u043e \u0437\u0430\u0431\u0435\u0440\u0451\u0442 \u0442\u043e\u0432\u0430\u0440 \u2014 \u043a\u0443\u0440\u044c\u0435\u0440, \u043a\u043b\u0438\u0435\u043d\u0442 \u0438\u043b\u0438 \u0432\u043e\u0440 (\u0448\u0443\u0442\u043a\u0430).<\/p>\n<p><strong>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0430\u043d\u0430\u043b\u043e\u0433<\/strong>:<\/p>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u00ab\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u043e\u0448\u0451\u043b\u00bb, \u043d\u0435 \u0437\u043d\u0430\u044f:<\/p>\n<ul>\n<li>\n<p>\u041a\u0442\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442 \u0445\u0435\u0434\u0435\u0440<\/p>\n<\/li>\n<li>\n<p>\u041a\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443<\/p>\n<\/li>\n<li>\n<p>\u041a\u0442\u043e \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u043b\u0442\u0438\u043f<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">\/\/ \u043f\u043b\u043e\u0445\u043e this.authService.login().pipe(     tap(() =&gt; {         this.header.refresh();         this.analytics.trackLogin();         this.tourService.start();     }) );  \/\/ \u041a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c this.authService.login().subscribe(() =&gt; {     eventBus.publish(new UserLoggedInEvent()); });<\/code><\/pre>\n<h4>\u041f\u0440\u0438\u043d\u0446\u0438\u043f 2: \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h4>\n<p><strong>\u0411\u044d\u043a\u0435\u043d\u0434-\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430:<\/strong><\/p>\n<p>\u0412 RabbitMQ \u0441\u0445\u0435\u043c\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 Avro) \u2014 \u044d\u0442\u043e \u0436\u0438\u0432\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f API.<\/p>\n<p><strong>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong>:<\/p>\n<p>\u041a\u0430\u0436\u0434\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u2014 \u043a\u043b\u0430\u0441\u0441 \u0441 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0435\u0439:<\/p>\n<pre><code class=\"typescript\">class PasswordChangedEvent {     constructor(         public readonly userId: string,         public readonly method: 'email' | 'sms'     ) {     } }<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043b\u044e\u0431\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432\u0438\u0434\u0438\u0442:<\/p>\n<ul>\n<li>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u0413\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f (\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443)<\/p>\n<\/li>\n<\/ul>\n<h4>\u041f\u0440\u0438\u043d\u0446\u0438\u043f 3: \u041e\u0447\u0435\u0440\u0435\u0434\u0438 \u043a\u0430\u043a \u0431\u0443\u0444\u0435\u0440 \u043f\u0440\u043e\u0442\u0438\u0432 \u0445\u0430\u043e\u0441\u0430<\/h4>\n<p><strong>\u041f\u0430\u0442\u0442\u0435\u0440\u043d \u0431\u044d\u043a\u0435\u043d\u0434\u0430<\/strong>:<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c \u0443\u043f\u0430\u043b, RabbitMQ \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438, \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u043e\u0436\u0438\u0432\u0451\u0442.<\/p>\n<p><strong>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044f<\/strong>:<\/p>\n<p>\u0414\u043b\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438) \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0443\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443:<\/p>\n<pre><code class=\"typescript\">class AnalyticsService {     private failedEvents: AnalyticEvent[] = [];      constructor() {         eventBus.subscribe(AnalyticEvent).subscribe(event =&gt; {             try {                 this.sendToServer(event);             } catch {                 this.failedEvents.push(event); \/\/ \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u043b\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0430             }         });     } }<\/code><\/pre>\n<h4>\u041f\u0440\u0438\u043d\u0446\u0438\u043f 4: \u0422\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/h4>\n<p><strong>\u0411\u044d\u043a\u0435\u043d\u0434-\u043f\u0440\u0438\u043c\u0435\u0440<\/strong>:<\/p>\n<p>\u0412 Kafka \u0441\u0445\u0435\u043c\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 Confluent Schema Registry. \u041d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p><strong>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong>:<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c TypeScript \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a:<\/p>\n<pre><code class=\"typescript\">\/\/ V1: \u0423\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f class ProductAddedEvent {     constructor(public productId: string) {     } }  \/\/ V2: \u041d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f class ProductAddedEventV2 {     constructor(         public productId: string,         public categoryId: string     ) {     } }  \/\/ \u041f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a \u043b\u043e\u0432\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e eventBus.subscribe(ProductAddedEventV2).subscribe(\/* ... *\/);<\/code><\/pre>\n<h4>\u041a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435<\/h4>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u0430\u043a \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b:<\/p>\n<ul>\n<li>\n<p><strong>\u041c\u043e\u0434\u0443\u043b\u044c A<\/strong>\u00a0\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442\u00a0<code>CartUpdatedEvent<\/code>\u00a0\u0441 \u0442\u0438\u043f\u043e\u043c\u00a0<code>{ cartId: string, items: CartItem[] }<\/code><\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u0434\u0443\u043b\u044c B<\/strong>\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0431\u0435\u0439\u0434\u0436 \u043a\u043e\u0440\u0437\u0438\u043d\u044b<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u0434\u0443\u043b\u044c C<\/strong>\u00a0\u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u0442\u043e \u0436\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u043e\u0434\u0443\u043b\u044c D<\/strong>\u00a0\u043f\u0438\u0448\u0435\u0442 \u0432 LocalStorage<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0440\u0443\u0433\u0438\u0445. \u0418\u0437\u043c\u0435\u043d\u0438\u043b\u0438 \u0444\u043e\u0440\u043c\u0430\u0442 \u043a\u043e\u0440\u0437\u0438\u043d\u044b? \u041f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435\u00a0<code>CartUpdatedEventV2<\/code>\u00a0\u2014 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 V1.<\/p>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043e\u0442\u0441\u0442\u0430\u0451\u0442?<\/h4>\n<p><strong>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u044c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/strong>: \u00ab\u041d\u0430\u0436\u0430\u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u2192 \u0432\u044b\u0437\u0432\u0430\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 \u2192 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00bb \u2014 \u044d\u0442\u043e legacy-\u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<p><strong>\u0421\u0442\u0440\u0430\u0445 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0441\u0442\u0438<\/strong>: \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0431\u043e\u044f\u0442\u0441\u044f \u00ab\u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0445\u00bb \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0445\u043e\u0442\u044f \u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430.<\/p>\n<p><strong>\u041a\u0443\u043b\u044c\u0442\u0443\u0440\u0430 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432<\/strong>: \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0435\u0434\u043a\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044f \u0438\u0445 \u0432 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p><strong>\u0418\u0441\u0442\u043e\u0440\u0438\u0438 \u0438\u0437 \u0436\u0438\u0437\u043d\u0438<\/strong>:<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043d\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043c\u043e\u0433 \u0437\u0430 \u0434\u0435\u043d\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u0438\u0447\u0443 \u00ab\u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u0430\u043a\u0430\u0437\u043e\u0432\u00bb, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0443\u0447\u0438\u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0420\u0430\u043d\u044c\u0448\u0435 \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u043d\u0435\u0434\u0435\u043b\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u0439.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong>:<\/p>\n<p>\u0411\u044d\u043a\u0435\u043d\u0434-\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f\u043c\u0438 \u0448\u043b\u0438\u0444\u043e\u0432\u0430\u043b\u0438 event-driven \u043f\u043e\u0434\u0445\u043e\u0434\u044b. \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0443 \u043f\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0430\u0440\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0441\u043e\u043a\u0443 \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u00ab\u043a\u0440\u0430\u0441\u0442\u044c\u00bb \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u044d\u0442\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043d\u0430\u00a0\u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u2014 \u043e\u0442 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0439 \u0448\u0438\u043d\u044b \u0434\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 4: \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u2014 \u041e\u0442 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0434\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a<\/h3>\n<p>\u041e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u041f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 EventBus \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435?\u00bb\u00a0\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0442\u0440\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<h4>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 1: \u0421\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u043d\u0430 RxJS \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442<\/h4>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 EventBus \u043d\u0430 RxJS \u2014 \u044d\u0442\u043e 20 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"typescript\">import {filter, map, Subject} from 'rxjs';  type EventPayload&lt;T&gt; = { type: string; data?: T };  class EventBus {    private _events$ = new Subject&lt;EventPayload&lt;unknown&gt;&gt;();     publish&lt;T&gt;(type: string, data?: T): void {       this._events$.next({type, data});    }     subscribe&lt;T&gt;(type: string) {       return this._events$.pipe(               filter(event =&gt; event.type === type),               map(event =&gt; event.data as T)       );    } }  \/\/ \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 const bus = new EventBus(); bus.subscribe&lt;string&gt;('GREETING').subscribe(msg =&gt; console.log(msg)); bus.publish('GREETING', 'Hello from 1983!');<\/code><\/pre>\n<p><strong>\u041f\u043b\u044e\u0441\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c<\/p>\n<\/li>\n<li>\n<p>0 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043c\u0430\u043b\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041d\u0435\u0442 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>\u0420\u0443\u0447\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430 Angular<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u044b<\/p>\n<\/li>\n<li>\n<p>\u041c\u0438\u043d\u0438-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (&lt;15 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432)<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430\u043c Pub\/Sub<\/p>\n<\/li>\n<\/ul>\n<h4>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 2: NgRx \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/h4>\n<p>NgRx \u2014 \u044d\u0442\u043e \u00ab\u0442\u044f\u0436\u0451\u043b\u0430\u044f \u0430\u0440\u0442\u0438\u043b\u043b\u0435\u0440\u0438\u044f\u00bb \u0441 \u043f\u043e\u043b\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre><code class=\"typescript\">\/\/ actions\/events.actions.ts export const showModal = createAction(     '[UI] Show Modal',     props&lt;{ type: string; context?: unknown }&gt;() );  \/\/ effects\/events.effects.ts showModal$ = createEffect(() =&gt;     this.actions$.pipe(         ofType(showModal),         tap(({type}) =&gt; console.log(`Modal ${type} opened`))     ), {dispatch: false} );  \/\/ component.ts this.store.dispatch(showModal({type: 'confirm'}));<\/code><\/pre>\n<p><strong>\u041f\u043b\u044e\u0441\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>DevTools \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 (CQRS, \u0441\u0430\u0433\u0438)<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u0438\u043d\u0443\u0441\u044b<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u0432\u0435\u0440\u043a\u0438\u043b\u043b \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0437\u0430\u0434\u0430\u0447<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0438\u0432\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0430\u043d\u0434\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/strong>:<\/p>\n<ul>\n<li>\n<p>Enterprise-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f NgRx<\/p>\n<\/li>\n<li>\n<p>\u0421\u043b\u043e\u0436\u043d\u0430\u044f \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0430 \u0441 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<h4>\u0412\u0430\u0440\u0438\u0430\u043d\u0442 3: \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/h4>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 <\/strong><a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\"><strong>postboy<\/strong><\/a>:<\/p>\n<pre><code class=\"typescript\">\/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f class ApiErrorEvent extends PostboyGenericMessage {     constructor(public readonly error: Error) {         super();     } }  \/\/ \u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f postboy.fire(new ApiErrorEvent(err));  \/\/ \u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 postboy.sub(ApiErrorEvent).subscribe(event =&gt; {     alert(`\u041e\u0448\u0438\u0431\u043a\u0430 ${event.error.message}`); });<\/code><\/pre>\n<p><strong>\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0421\u0440\u0435\u0434\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0438 Enterprise-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u041c\u0438\u043a\u0440\u043e\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u044b<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0441 legacy-\u043a\u043e\u0434\u0430<\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0440\u0435\u0434\u043d\u044b: 3 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u043a\u0435\u0439\u0441\u0430<\/h4>\n<h4>\u041a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442?<\/h4>\n<p><strong>1. \u041a\u0430\u0440\u0442\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/strong>:<\/p>\n<ul>\n<li>\n<p>&lt; 15 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432: RxJS Subject<\/p>\n<\/li>\n<li>\n<p>15+ \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 (\u0434\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438): <a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">postboy <\/a>\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433<\/p>\n<\/li>\n<li>\n<p>50+ \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 (\u0434\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438): NgRx + \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0440\u043e\u043a\u0435\u0440\u044b<\/p>\n<\/li>\n<\/ul>\n<p><strong>2. \u041f\u0440\u0430\u0432\u0438\u043b\u043e 48 \u0447\u0430\u0441\u043e\u0432:<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c Pub\/Sub \u2014 \u0432\u0430\u0448 \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u0435\u043d.<\/p>\n<p><strong>3. \u0422\u0435\u0441\u0442 \u043d\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c:<\/strong><\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0430\u043a\u0446\u0438\u044e \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438\u0437 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 3+\u00a0\u043c\u0435\u0441\u0442\u0430\u0445 \u2014 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 event-driven.<\/p>\n<p><strong>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0438\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438<\/strong>:<\/p>\n<p>\u041d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0441 70 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0441 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 <a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">postboy<\/a>. \u042d\u0442\u043e \u0431\u044b\u043b\u043e \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0442\u044c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043b\u0435\u0442\u044f\u0449\u0435\u043c \u0441\u0430\u043c\u043e\u043b\u0451\u0442\u0435, \u043d\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0430 \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e\u00a0\u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e.<\/p>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong>:<\/p>\n<p>Pub\/Sub \u2014 \u043d\u0435 \u0441\u0435\u0440\u0435\u0431\u0440\u044f\u043d\u0430\u044f \u043f\u0443\u043b\u044f. \u042d\u0442\u043e \u043a\u0430\u043a \u043c\u043e\u043b\u043e\u0442\u043e\u043a: \u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u0438\u0442\u044c \u0433\u0432\u043e\u0437\u0434\u044c, \u0430 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0440 \u00ab\u0433\u0432\u043e\u0437\u0434\u044f\u00bb \u0438 \u043f\u043e\u043c\u043d\u0438\u0442\u0435: \u043b\u0443\u0447\u0448\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043f\u0430\u0442\u044c \u043f\u043e \u043d\u043e\u0447\u0430\u043c, \u0430 \u043d\u0435 \u0445\u0432\u0430\u0441\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043c\u0438\u0442\u0430\u043f\u0430\u0445.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 5: \u041a\u043e\u0433\u0434\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0440\u0435\u0434\u043d\u044b \u2014 \u041e\u043f\u0430\u0441\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 Pub\/Sub<\/h3>\n<p>Pub\/Sub \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043e\u0433\u043e\u043d\u044c: \u0433\u0440\u0435\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0434 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c, \u0438 \u0441\u0436\u0438\u0433\u0430\u0435\u0442 \u0432\u0441\u0451, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0440\u0443\u0436\u0443. \u0414\u0430\u0432\u0430\u0439\u0442\u0435\u00a0\u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0442\u0440\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430 \u0432 \u044f\u0434.<\/p>\n<h4>1. \u0426\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438: \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u0440\u0443\u0433\u043e\u0432\u043e\u0440\u043e\u0442<\/h4>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/strong>:<\/p>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u0435\u00a0<code>A<\/code>\u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u00a0<code>B<\/code>,\u00a0<code>B<\/code>\u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u00a0<code>C<\/code>, \u0430\u00a0<code>C<\/code>\u00a0\u0441\u043d\u043e\u0432\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u00a0<code>A<\/code>.<\/p>\n<pre><code class=\"typescript\">\/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0410 postboy.subscribe(EventC).subscribe(() =&gt; {     postboy.publish(new EventA()); \/\/ \u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 });  \/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 B postboy.subscribe(EventA).subscribe(() =&gt; {     postboy.publish(new EventB()); });  \/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 C postboy.subscribe(EventB).subscribe(() =&gt; {     postboy.publish(new EventC()); });<\/code><\/pre>\n<p><strong>\u0427\u0435\u043c \u043e\u043f\u0430\u0441\u043d\u043e<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u2192 100% \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 CPU<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 DevTools<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c debounce (RxJS-\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440):<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">postboy.subscribe(EventA).pipe(     debounceTime(100) ).subscribe(\/* ... *\/);<\/code><\/pre>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u043b\u0430\u0433\u0438-\u0438\u043d\u0433\u0438\u0431\u0438\u0442\u043e\u0440\u044b:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">let isProcessing = false;  postboy.subscribe(EventA).subscribe(() =&gt; {     if (!isProcessing) {         isProcessing = true;         \/\/ \u041b\u043e\u0433\u0438\u043a\u0430...         isProcessing = false;     } });<\/code><\/pre>\n<ul>\n<li>\n<p>\u041d\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0438\u0431\u043e \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<h4>2. \u0423\u0442\u0435\u0447\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438: \u041f\u0440\u0438\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438<\/h4>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/strong>:<\/p>\n<p>\u041d\u0435\u043e\u0442\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0433\u043e\u0440\u044f\u0447\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439.<\/p>\n<pre><code class=\"typescript\">@Injectable() export class AnalyticsService {     constructor() {         \/\/ \u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043e\u0442\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f!         eventBus.subscribe(TrackingEvent).subscribe(\/* ... *\/);     } }<\/code><\/pre>\n<p><strong>\u0427\u0435\u043c \u043e\u043f\u0430\u0441\u043d\u043e<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0423\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u2192 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u00ab\u0417\u043e\u043c\u0431\u0438-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438\u00bb \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044e\u0442 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Angular<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c takeUntilDestroyed:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">private destroyRef = inject(DestroyRef);  eventBus.subscribe(Event)     .pipe(takeUntilDestroyed(this.destroyRef))     .subscribe(\/* ... *\/);<\/code><\/pre>\n<ul>\n<li>\n<p>\u0414\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u2014 \u0440\u0443\u0447\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">private sub?: Subscription;  ngOnInit() {     this.sub = eventBus.subscribe(Event).subscribe(\/* ... *\/); }  ngOnDestroy() {     this.sub?.unsubscribe(); }<\/code><\/pre>\n<h4>3. \u0421\u043b\u0435\u043f\u044b\u0435 \u0437\u043e\u043d\u044b \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438: \u041e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0442\u0435\u043c\u043d\u043e\u0442\u0435<\/h4>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/strong>:<\/p>\n<p>\u041d\u0435\u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0438\u043d\u044b \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<pre><code class=\"typescript\">\/\/ \u041f\u043b\u043e\u0445\u043e: \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0435\u0437 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 eventBus.publish('user_updated', {id: 123, name: 'Alice'});  \/\/ \u0413\u0434\u0435-\u0442\u043e \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 eventBus.subscribe('user_updated').subscribe(data =&gt; {     console.log((data as any).age); \/\/ undefined \u2192 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 });<\/code><\/pre>\n<p><strong>\u0427\u0435\u043c \u043e\u043f\u0430\u0441\u043d\u043e<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u041e\u0448\u0438\u0431\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0438\u0433\u0440\u043e\u0439 \u0432 \u0440\u0443\u043b\u0435\u0442\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f:<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"typescript\">class UserModel {id: string; name: string}  class UserUpdatedEvent extends PostboyGenericMessage {     constructor(data: UserModel) {         super();     } }  \/\/ \u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0435\u0439 \u0442\u0438\u043f\u043e\u0432 postboy.subscribe(UserUpdatedEvent).subscribe(data =&gt; {     console.log(data.name); \/\/ \u0422\u0438\u043f string \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d });<\/code><\/pre>\n<h4>\u041a\u043e\u0433\u0434\u0430 \u041d\u0415 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Pub\/Sub<\/h4>\n<p><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438<\/strong>:<\/p>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u0442\u0440\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430:<\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438 \u043a\u0440\u043e\u043c\u0435 \u043c\u0435\u043d\u044f?<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u0435\u0442 \u043b\u0438 \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b?<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u0440\u043e\u0449\u0435 \u0447\u0435\u0440\u0435\u0437 Input\/Output?<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0418\u0442\u043e\u0433<\/strong>:<\/p>\n<p>Pub\/Sub \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u044b. \u042d\u0442\u043e \u043a\u0430\u043a \u044f\u0434\u0435\u0440\u043d\u0430\u044f \u044d\u043d\u0435\u0440\u0433\u0438\u044f: \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0434\u0430\u0451\u0442 \u0441\u0432\u0435\u0442, \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u0445\u00a0\u2014 \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u0435.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 6: \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u0412\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443<\/h3>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u2014 \u044d\u0442\u043e \u043d\u0435 \u0447\u0435\u0440\u0442\u0451\u0436, \u0432\u044b\u0441\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043a\u0430\u043c\u043d\u0435. \u042d\u0442\u043e \u0436\u0438\u0432\u043e\u0439 \u0441\u0430\u0434, \u0433\u0434\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043a\u0430\u043a \u0440\u0430\u0441\u0442\u0435\u043d\u0438\u044f, \u0440\u0430\u0441\u0442\u0443\u0442, \u043f\u0435\u0440\u0435\u043f\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043e\u0431\u0440\u0435\u0437\u043a\u0438. Pub\/Sub \u2014 \u043d\u0435 \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u0439 \u043f\u043e\u0441\u043e\u0445, \u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u0430\u0434\u043e\u0432\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u0438\u043c \u0445\u0430\u043e\u0441\u043e\u043c, \u043d\u0435 \u043f\u043e\u0434\u0430\u0432\u043b\u044f\u044f \u0435\u0433\u043e.<\/p>\n<h4>\u0422\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438<\/h4>\n<p><strong>1. \u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 \u043c\u0430\u043b\u043e\u0433\u043e<\/strong><\/p>\n<p>\u041d\u0435 \u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u043e \u0432\u0441\u0451\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u041d\u0430\u0447\u043d\u0438\u0442\u0435 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0433\u0434\u0435 \u0441\u0432\u044f\u0437\u0438\u00a0\u0443\u0436\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u043f\u0430\u0443\u0442\u0438\u043d\u0443. \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0439\u00a0<code>@Output()<\/code>\u00a0\u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u2014 \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043d\u0430\u0447\u043d\u0451\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0430.<\/p>\n<p><strong>2. \u0420\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0431\u0449\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u0430 \u0443\u0440\u043e\u0432\u043d\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0439\u0442\u0435 \u0438\u0445. \u041a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u041a\u0435\u043d\u0442 \u0411\u0435\u043a: \u00ab\u041d\u0435\u00a0\u0440\u0435\u0448\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442\u00bb. Pub\/Sub \u2014 \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u043e \u043e\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u0430 \u043d\u0435 \u0432\u0438\u0442\u0430\u043c\u0438\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u0430\u043a\u0442\u0438\u043a\u0438.<\/p>\n<p><strong>3. \u0412\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u043e\u0434 \u043c\u0430\u0441\u0448\u0442\u0430\u0431<\/strong><\/p>\n<p>\u0421\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u0430\u044f \u0448\u0438\u043d\u0430 \u0438\u0437 20 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0443\u0447\u0448\u0435 NgRx \u0438\u043b\u0438 <a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">postboy <\/a>\u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 15 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041d\u043e\u00a0\u043a\u043e\u0433\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e 200+ \u0430\u043a\u0442\u043e\u0440\u043e\u0432 \u2014 \u0438\u0449\u0438\u0442\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<h4>\u041a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0432\u0442\u0440\u0430<\/h4>\n<p><strong>1. \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u00ab\u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439\u00bb \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442<\/strong><\/p>\n<p>\u0422\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u043e \u043f\u044f\u0442\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f\u0445. \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435.<\/p>\n<p><strong>2. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u0430\u043f\u043a\u0443\u00a0<code>events<\/code>\u00a0\u0441 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b \u2014 \u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0438\u0445 \u0432 JSDoc.<\/p>\n<p><strong>3. \u0423\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u00ab\u0434\u0435\u043d\u044c \u0442\u0438\u0448\u0438\u043d\u044b\u00bb<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u00a0<code>@Output()<\/code>\u00a0\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u0438 \u043d\u0435\u0434\u0435\u043b\u044e. \u0412\u044b \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u0441\u044c, \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0434\u0443\u0442 event-driven \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b.<\/p>\n<h3>\u042d\u043f\u0438\u043b\u043e\u0433 \u0434\u043b\u044f \u0441\u043a\u0435\u043f\u0442\u0438\u043a\u043e\u0432<\/h3>\n<p>\u00ab\u041d\u043e \u0432\u0435\u0434\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u044e\u0442 \u043e\u0442\u043b\u0430\u0434\u043a\u0443!\u00bb \u2014 \u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u0432\u044b. \u041e\u0442\u0432\u0435\u0447\u0443 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439: \u043a\u043e\u0433\u0434\u0430 \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u043d\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u0430 \u0434\u0435\u043d\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0444\u0438\u0447\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u043d\u044c\u0448\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0431\u044b \u043d\u0435\u0434\u0435\u043b\u044e. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0448\u0451\u043b \u043d\u0443\u0436\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b\u0441\u044f.<\/p>\n<p>\u0414\u0430, \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u2014 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u0414\u0430, \u043e\u043d\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u044b. \u041d\u043e \u043e\u043d\u0438 \u0436\u0435 \u0434\u0430\u044e\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u0443, \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u0443\u044e \u0441 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u043c \u043e\u0442 \u043c\u043e\u043d\u0430\u0440\u0445\u0438\u0438 \u043a \u0434\u0435\u043c\u043e\u043a\u0440\u0430\u0442\u0438\u0438. \u0412\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0431\u044b\u0442\u044c \u0431\u043e\u0433\u043e\u043c-\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435\u0441\u044c \u0441\u0430\u0434\u043e\u0432\u043d\u0438\u043a\u043e\u043c,\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0438\u0448\u044c \u0437\u0430\u0434\u0430\u0451\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u043e\u0441\u0442\u0430.<\/p>\n<p><code>postboy<\/code> \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u0430\u0440\u0430\u0435. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c NgRx, \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u0443\u044e \u0448\u0438\u043d\u0443 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451. \u0421\u0443\u0442\u044c \u043d\u0435 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435, \u0430 \u0432 \u0441\u043c\u0435\u043d\u0435 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u044b:\u00a0<strong>\u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u043d\u0430\u0447\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043a\u0430\u043a \u0434\u043e\u0433\u043e\u0432\u043e\u0440 \u0440\u0430\u0432\u043d\u044b\u0445<\/strong>.<\/p>\n<p><strong>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043e\u0432\u0435\u0442<\/strong>. \u041a\u043e\u0433\u0434\u0430 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0438\u0437 \u0442\u0440\u0451\u0445\u00a0<code>@Output()<\/code>\u00a0\u2014 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u043e\u0440\u043d\u044f\u043a. \u0412\u044b\u0434\u0435\u0440\u043d\u0438\u0442\u0435 \u0435\u0433\u043e, \u043f\u043e\u0441\u0430\u0434\u0438\u0442\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0439\u0442\u0435, \u043a\u0430\u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0440\u0430\u0441\u0446\u0432\u0435\u0442\u0451\u0442.<\/p>\n<p>P.S. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Postboy \u2014\u00a0<a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0441\u0432\u043e\u0439 EventBus, \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043e\u043f\u0443\u0441 \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043d\u0435\u0442 \u0432\u0430\u0441 \u043d\u0430 \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0432\u0438\u0433. Happy coding!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/906800\/\"> https:\/\/habr.com\/ru\/articles\/906800\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><strong>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0434\u0435\u0436\u0430\u0432\u044e<\/strong><\/p>\n<p>\u0412\u044b \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u043b\u0438, \u043a\u0430\u043a \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043f\u0438\u0440\u0430\u043b\u0438? \u0412 2018 \u0433\u043e\u0434\u0443 \u044f, \u0440\u0430\u0437\u043c\u0430\u0445\u0438\u0432\u0430\u044f Dockerfile\u00a0\u0438 Helm-\u0447\u0430\u0440\u0442\u0430\u043c\u0438, \u0432\u043d\u0435\u0434\u0440\u044f\u043b \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430 C# \u0441 RabbitMQ \u2014 \u0432\u0441\u0451 \u0440\u0430\u0434\u0438 \u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0439 \u0446\u0435\u043b\u0438\u00a0<em>\u00ab\u043d\u0438\u0437\u043a\u043e\u0439 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0438\u00bb<\/em>. \u0410 \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0438 \u0433\u043e\u0434\u0430, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 Angular, \u0441 \u0443\u0436\u0430\u0441\u043e\u043c \u043e\u0441\u043e\u0437\u043d\u0430\u043b: \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0431\u0449\u0430\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437\u00a0\u0446\u0435\u043f\u043e\u0447\u043a\u0438 Input\/Output, \u0441\u043b\u043e\u0432\u043d\u043e \u044d\u0442\u043e 2005-\u0439, \u0430 \u043c\u044b \u043f\u0438\u0448\u0435\u043c WinForms.<\/p>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u0441\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u0440\u0430\u0431\u043b\u044c, \u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u0444. \u041d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u043c\u044b \u0433\u043e\u0440\u0434\u043e \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c\u00a0<em>event-driven architecture<\/em>, \u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0448\u0451\u043f\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043f\u0441\u044b, \u0431\u0443\u0434\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0441\u0442\u043a\u0438 \u043d\u0430 \u0448\u043a\u043e\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0442\u0435\u043a\u0435. \u0418\u0440\u043e\u043d\u0438\u044f? \u0427\u0435\u043c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430\u0448\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u043d\u0438 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u043c\u043e\u043d\u043e\u043b\u0438\u0442\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0435\u0436\u0430\u043b\u0438 \u0432 \u043c\u0438\u0440\u0435 backend.<\/p>\n<p>\u041c\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u0441\u0442\u0438\u043d\u044b \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u043b, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0435 \u043e\u043a\u043d\u043e \u0438 \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u041e\u0442\u043c\u0435\u043d\u0430\u00bb, \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0440\u0438 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0441\u0435\u0433\u043e 12 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438! \u0412 \u043c\u0438\u0440\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0431\u044b \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u044f\u0442\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442 \u043b\u0435\u0439\u0431\u043b\u0430. \u0418 \u0442\u043e\u0433\u0434\u0430 \u044f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c:\u00a0<em>\u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434, \u043f\u0440\u0438 \u0432\u0441\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0443\u0441\u0432\u043e\u0438\u043b \u0443\u0440\u043e\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c?\u00bb<\/em><\/p>\n<p>\u041c\u044b \u043e\u0441\u0432\u043e\u0438\u043b\u0438 WebAssembly, \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 GraphQL, \u0440\u0430\u0437\u043e\u0440\u0432\u0430\u043b\u0438 CSS \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438, \u043d\u043e \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0430 \u0432 \u044d\u043f\u043e\u0445\u0435 jQuery. \u041a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u044b \u0437\u0430\u0431\u044b\u043b\u0438, \u0447\u0442\u043e React, Angular \u0438 Vue \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433, \u0430 \u043f\u0440\u043e\u00a0<em>\u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/em>.<\/p>\n<p>\u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u044f \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u0432\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442? \u0427\u0442\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u044f\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 RabbitMQ, Kafka \u0438 AWS SQS, \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0441\u043f\u0430\u0441\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430? \u0418 \u0447\u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0435\u00a0\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 15 \u041a\u0411 \u043a\u043e\u0434\u0430 \u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0432 \u043a\u0440\u043e\u043b\u0438\u0447\u044c\u044e \u043d\u043e\u0440\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0430\u0448\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0443\u0442 \u043f\u0435\u0440\u0435\u0448\u0435\u043f\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0432\u0435\u0442\u0441\u043a\u0438\u0435 \u0431\u0435\u0441\u0435\u0434\u044b \u043a\u0430\u043a \u0432\u0437\u0440\u043e\u0441\u043b\u044b\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 1: \u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u044d\u043a\u0441\u043a\u0443\u0440\u0441 \u2014 40 \u043b\u0435\u0442 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 Pub\/Sub<\/h3>\n<p>\u0412 1983 \u0433\u043e\u0434\u0443, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u0434\u0436\u0430\u043c\u043f\u0435\u0440\u044b \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u0438\u0445 \u043f\u043b\u0430\u0442\u0430\u0445, \u0410\u0434\u0435\u043b\u044c \u0413\u043e\u043b\u0434\u0431\u0435\u0440\u0433 \u0438\u0437 Xerox PARC \u043f\u0438\u0441\u0430\u043b\u0430 \u043a\u043e\u0434 \u0434\u043b\u044f Smalltalk-80. \u0412 \u0435\u0451 \u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0438\u0438 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0435\u0442 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b, \u0432\u0435\u0431-\u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u044d\u043f\u043e\u0445\u0443: \u00ab<em>\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/em>\u00bb. \u042d\u0442\u043e \u0431\u044b\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0434\u043e\u0445 <code>Pub\/Sub<\/code> \u2014 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u043c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043e\u043c \u044d\u0441\u043f\u0435\u0440\u0430\u043d\u0442\u043e \u0434\u043b\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439.<\/p>\n<h4>\u042d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0432 \u0442\u0440\u0451\u0445 \u044d\u043f\u043e\u0445\u0430\u0445<\/h4>\n<p><strong>1. \u042d\u0440\u0430 \u043f\u043b\u0435\u043c\u0451\u043d (1980\u20132000)<\/strong>\u00a0Smalltalk-\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u043e\u0431\u044b\u0442\u043d\u044b\u0435 \u043b\u044e\u0434\u0438 \u2014 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0431\u0435\u0437 \u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u043e\u0432. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430? \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u00ab\u043f\u0438\u0441\u044c\u043c\u043e\u00bb, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u043d\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u00ab\u043f\u043b\u0435\u043c\u0435\u043d\u0438\u00bb-\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f.<\/p>\n<pre><code class=\"smalltalk\">\"\u041f\u043b\u0435\u043c\u044f \u0410 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u043b\u0435\u043c\u0435\u043d\u0438 \u0411\" \u0411 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432: '\u041e\u0433\u043e\u043d\u044c \u043f\u043e\u0433\u0430\u0441!'<\/code><\/pre>\n<p><strong>\u042d\u0440\u0430 \u0438\u043c\u043f\u0435\u0440\u0438\u0439 (2000\u20132010)<\/strong>\u00a0CORBA \u0438 Enterprise Service Bus (ESB) \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u0431\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044e. \u041d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e:<\/p>\n<ul>\n<li>\n<p>\u0417\u043d\u0430\u0442\u044c WSDL-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b<\/p>\n<\/li>\n<li>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c XML-\u0441\u0445\u0435\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 2010 \u0433\u043e\u0434\u0430 \u043c\u044b \u0442\u0440\u0438 \u043d\u0435\u0434\u0435\u043b\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 SAP \u0441 .NET \u0447\u0435\u0440\u0435\u0437 ESB. \u041a\u043e\u0433\u0434\u0430 \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440\u0430: \u00ab\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0449\u0435?\u00bb, \u043e\u043d \u043e\u0442\u0432\u0435\u0442\u0438\u043b: \u00ab\u042d\u0442\u043e enterprise \u2014 \u0437\u0434\u0435\u0441\u044c \u0442\u0430\u043a \u043f\u0440\u0438\u043d\u044f\u0442\u043e\u00bb.<\/p>\n<p><strong>\u042d\u0440\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (2010\u2013\u043d.\u0432.)<\/strong>\u00a0Kafka, RabbitMQ \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 <code>Pub\/Sub<\/code> \u0432\u00a0<em>\u043b\u0438\u043d\u0433\u0432\u0430-\u0444\u0440\u0430\u043d\u043a\u0430<\/em>\u00a0\u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f = \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0411\u0440\u043e\u043a\u0435\u0440 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443<\/p>\n<\/li>\n<\/ul>\n<h4>\u0424\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0438\u0439 \u043f\u043e\u0432\u043e\u0440\u043e\u0442: \u041e\u0442 \u043f\u0440\u0438\u043a\u0430\u0437\u043e\u0432 \u043a \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430\u043c<\/h4>\n<p><code>Pub\/Sub<\/code> \u2014 \u044d\u0442\u043e \u0446\u0438\u0444\u0440\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f\u00a0<em>\u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0420\u0443\u0441\u0441\u043e<\/em>. \u041a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442\u00a0<code>PriceChangedEvent<\/code>, \u043e\u043d \u043a\u0430\u043a \u0431\u044b \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u00ab\u042f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e\u00bb<\/p>\n<\/li>\n<li>\n<p>\u00ab\u041d\u043e \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u2014 \u0441\u043b\u0443\u0448\u0430\u0439\u0442\u0435\u00bb<\/p>\n<\/li>\n<li>\n<p>\u00ab\u041e\u0431\u0435\u0449\u0430\u044e \u0444\u043e\u0440\u043c\u0430\u0442: {itemId: string, newPrice: number}\u00bb<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 TCP\/IP \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439: \u043a\u0430\u043a \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0437\u0430\u0431\u043e\u0442\u044f\u0442\u0441\u044f \u043e \u0442\u043e\u043c, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u044b \u0438\u043b\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0442\u0430\u043a \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, Angular \u0432\u044b \u0438\u043b\u0438 React.<\/p>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 Pub\/Sub \u043f\u0435\u0440\u0435\u0436\u0438\u043b 40 \u043b\u0435\u0442 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0438\u0439?<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0410\u043d\u0442\u0438\u0445\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u044c<\/strong>: \u0421\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u0447\u0430\u0442\u0441\u044f \u0436\u0438\u0442\u044c \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 (\u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f Dead Letter Queues)<\/p>\n<\/li>\n<li>\n<p><strong>\u042f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c<\/strong>: \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043d\u0430 \u0447\u0451\u043c \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u2014 \u043e\u043d\u0438 \u043a\u0430\u043a \u044d\u0441\u043f\u0435\u0440\u0430\u043d\u0442\u043e \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u042d\u0432\u043e\u043b\u044e\u0446\u0438\u043e\u043d\u043d\u043e\u0441\u0442\u044c<\/strong>: \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0448\u0438\u043d\u044b \u0438 \u0440\u0430\u0441\u0442\u0438 \u0434\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0438\u043d\u0433\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437 \u043d\u0430 \u043c\u0438\u0442\u0430\u043f\u0435 \u044f \u0443\u0441\u043b\u044b\u0448\u0430\u043b \u0444\u0440\u0430\u0437\u0443: \u00abKafka \u2014 \u044d\u0442\u043e Smalltalk \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u0434\u043e\u043b\u044f \u043f\u0440\u0430\u0432\u0434\u044b \u2014 \u043e\u0431\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0443\u0447\u0430\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u0435\u0436\u043b\u0438\u0432\u043e\u043c\u0443 \u043e\u0431\u0449\u0435\u043d\u0438\u044e \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u044d\u0442\u043e\u0442 40-\u043b\u0435\u0442\u043d\u0438\u0439 \u043e\u043f\u044b\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u043a Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c \u2014 \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0442\u044b\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u043b\u043e\u043a\u0442\u044f\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 Input\/Output \u0438 \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<h4>\u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434: \u0417\u0430\u0441\u0442\u0440\u044f\u0432\u0448\u0438\u0439 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c?<\/h4>\n<p>\u041f\u043e\u043a\u0430 \u0431\u044d\u043a\u0435\u043d\u0434 \u0432 2010-\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b \u043e\u0442 SOAP \u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c, \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u043b\u2026\u00a0<code>@Output()<\/code>. \u0412 Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0438 \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u043a\u0438 \u044d\u0440\u044b \u0438\u043c\u043f\u0435\u0440\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>\u0416\u0451\u0441\u0442\u043a\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441\u044b \u043a\u0430\u043a ESB-\u043c\u043e\u043d\u0441\u0442\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u0447\u0435\u0440\u0435\u0437 5 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u2014 \u043a\u0430\u043a \u0431\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0447\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0<code>@Output() analyticsEvent<\/code>\u00a0\u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 D<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 B \u2192 C \u2192 A<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0433\u043e\u043d \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0430\u0434\u0438 \u0441\u0442\u0440\u043e\u043a\u0438\u00a0<code>analytics.track('click')<\/code>. \u042d\u0442\u043e \u043a\u0430\u043a \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0438\u0441\u044c\u043c\u043e \u0441\u043e\u0441\u0435\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u0423\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b<\/h4>\n<p><strong>1. \u0421\u043e\u0431\u044b\u0442\u0438\u044f \u2260 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432<\/strong><\/p>\n<p>\u0411\u044d\u043a\u0435\u043d\u0434 \u0434\u0430\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u043b: \u0435\u0441\u043b\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 A \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 B, \u0430 B \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 C \u2014 \u044d\u0442\u043e \u0430\u043d\u0442\u0438\u043f\u0430\u0442\u0442\u0435\u0440\u043d. \u041d\u043e \u0432\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435\u00a0@Output() \u2192 \u0441\u0435\u0440\u0432\u0438\u0441 \u2192 @Input() \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0440\u043c\u043e\u0439.<\/p>\n<p><strong>2. \u0411\u0440\u043e\u043a\u0435\u0440 \u2260 \u0442\u043e\u0447\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u0430<\/strong><\/p>\n<p>RabbitMQ \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0410 \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 Angular-\u0441\u0435\u0440\u0432\u0438\u0441 \u0441 Subject-\u0430\u043c\u0438 \u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u0440\u0438 1000 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p><strong>3. \u0424\u043e\u0440\u043c\u0430\u0442 &gt; \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<p>\u041d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 OpenAPI\/Swagger \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b. \u0412\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 any \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445.<\/p>\n<h4>\u0417\u0430\u0440\u044f \u043d\u0430\u0434\u0435\u0436\u0434\u044b: Web Components<\/h4>\n<p>\u041f\u043e \u0438\u0440\u043e\u043d\u0438\u0438, \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u043e\u0433\u043e \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432 2011 \u0433\u043e\u0434\u0443 \u0441 \u0438\u0434\u0435\u0438 Web Components. \u0418\u0445\u00a0<code>Custom Events<\/code>\u00a0\u0431\u043b\u0438\u0436\u0435 \u043a \u0434\u0443\u0445\u0443 Pub\/Sub, \u0447\u0435\u043c Angular-\u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">\/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0410 dispatchEvent(new CustomEvent('price-changed', {    detail: {itemId: '45', price: 20} }));  \/\/ \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0411 window.addEventListener('price-changed', (e) =&gt; {    console.log(e.detail.price); });<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u043d\u043d\u0438\u0439 Smalltalk, \u043d\u043e \u0441 HTML5-\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c. \u0416\u0430\u043b\u044c, \u0447\u0442\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u043d\u0435 \u043f\u043e\u0448\u043b\u0438 \u044d\u0442\u0438\u043c \u043f\u0443\u0442\u0451\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p><strong>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0430\u0440\u0430\u0434\u043e\u043a\u0441<\/strong>: \u0422\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 2 \u0433\u043e\u0434\u0430, \u043d\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0437\u0430\u0441\u0442\u0440\u044f\u043b\u0438 \u0432 2000-\u0445. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u044b \u0438 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0443\u2026 40-\u043b\u0435\u0442\u043d\u0435\u0433\u043e Smalltalk.<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u044d\u0442\u0438 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 Angular-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u2014 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443\u00a0<code>@Input\/@Output<\/code>\u00a0\u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u043f\u0430\u0441\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f. \u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043a\u043e\u0432\u0443\u044e \u0441\u0442\u0435\u043d\u0443, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0437\u0430\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043d\u0443\u0442\u0440\u0438\u00a0\u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u0441\u043d\u0430\u0440\u0443\u0436\u0438.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 2: \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434-\u0434\u0438\u043b\u0435\u043c\u043c\u0430 \u2014 \u041a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u0431\u043e\u043b\u0442\u0430\u0442\u044c<\/h3>\n<p>\u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0435 \u043a\u043e\u0434 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0438 \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e?\u00a0\u041a\u0430\u043a \u0442\u043e\u0442 \u0441\u043e\u0441\u0435\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0432\u0441\u0435\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043c\u0435\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f. \u0412 Angular-\u043c\u0438\u0440\u0435 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043d\u0435\u0432\u0438\u043d\u043d\u043e\u0433\u043e\u00a0<code>@Input()<\/code>\u00a0\u0438\u00a0<code>@Output()<\/code>, \u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0443\u0442\u0438\u043d\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f, \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u0438\u0433\u0440\u0443 \u0432 \u00ab\u0438\u0441\u043f\u043e\u0440\u0447\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u00bb.<\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 1: Input\/Output \u043a\u0430\u043a \u0446\u0435\u043f\u043d\u044b\u0435 \u0440\u0435\u0430\u043a\u0446\u0438\u0438<\/h4>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u00a0<code>ProductCard<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434:<\/p>\n<pre><code class=\"typescript\">\/\/ product-card.component.ts @Output() openModal = new EventEmitter&lt;string&gt;();  onClick() {   this.openModal.emit('product-details'); }  \/\/ parent.component.html &lt;product-card (openModal)=\"handleModal($event)\"&gt;&lt;\/product-card&gt; &lt;modal [type]=\"modalType\"&gt;&lt;\/modal&gt;<\/code><\/pre>\n<p>\u0427\u0442\u043e \u043d\u0435 \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p><code>ProductCard<\/code>\u00a0\u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u0443\u0440\u044c\u0435\u0440\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0430\u0441\u0442\u044f\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u0430\u0432\u043a\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u043e\u0444\u0438\u0441\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043b\u0438\u0447\u043d\u043e \u0432 \u0440\u0443\u043a\u0438, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u044f\u0449\u0438\u043a \u0434\u043b\u044f \u043f\u0438\u0441\u0435\u043c.<\/p>\n<h4>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2: \u0421\u0435\u0440\u0432\u0438\u0441\u044b-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a\u0438 \u043a\u0430\u043a \u043d\u043e\u0432\u044b\u0439 \u043c\u043e\u043d\u043e\u043b\u0438\u0442<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 Output-\u043e\u0432 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u043e, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c\u00a0<code>ModalService<\/code>:<\/p>\n<pre><code class=\"typescript\">\/\/ modal.service.ts private modalSubject = new Subject&lt;string&gt;(); modal$ = this.modalSubject.asObservable();  open(type: string) {   this.modalSubject.next(type); }  \/\/ product-card.component.ts constructor(private modal: ModalService) {}  onClick() {   this.modal.open('product-details'); }<\/code><\/pre>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435, \u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u00ab\u0431\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u00bb, \u0437\u043d\u0430\u044e\u0449\u0438\u0439 \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u043c\u043e\u0434\u0430\u043b\u043a\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0436\u0435\u0441\u0442\u043a\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a API \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043c\u043e\u043a\u0438\u043d\u0433\u0430 \u0446\u0435\u043b\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u043d\u0430\u0448\u00a0<code>SharedService<\/code>\u00a0\u0440\u0430\u0437\u0440\u043e\u0441\u0441\u044f \u0434\u043e 1200 \u0441\u0442\u0440\u043e\u043a \u2014 \u043e\u043d \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043c\u043e\u0434\u0430\u043b\u043a\u0430\u043c\u0438, \u0442\u0443\u043b\u0442\u0438\u043f\u0430\u043c\u0438, \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c\u0438. \u041c\u044b \u0448\u0443\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u044d\u0442\u043e \u043e\u043d \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c, \u0430 \u043d\u0435 \u043c\u044b, \u043d\u043e \u0441\u043c\u0435\u0445 \u0431\u044b\u043b \u043d\u0435\u0440\u0432\u043d\u044b\u043c.<\/p>\n<h4>\u041a\u0435\u0439\u0441: \u041c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e-\u0448\u043f\u0438\u043e\u043d<\/h4>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u043e\u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0438\u0437 17 \u043c\u0435\u0441\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u041f\u043e \u0441\u0442\u0430\u0440\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c\u00a0<code>@Output() registerClick<\/code>\u00a0\u0432 5 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 3 \u0443\u0440\u043e\u0432\u043d\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c\u00a0<code>AnalyticsService<\/code>, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c 23 \u0442\u0435\u0441\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u044d\u0442\u043e \u0443\u0448\u043b\u043e 2 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0434\u043d\u044f. \u0421 <a href=\"https:\/\/postboy.artstesh.ru\/\" rel=\"noopener noreferrer nofollow\">postboy <\/a>\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u043d\u044f\u043b\u043e 20 \u043c\u0438\u043d\u0443\u0442:<\/p>\n<pre><code class=\"typescript\">\/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u043c\u043e\u0434\u0430\u043b\u043a\u0438 \u0441 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u043e\u0439 postboy.fire(new OpenModalEvent({   type: 'signup',   source: 'navbar' \/\/ \u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 }));  \/\/ \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0432\u0441\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u043c\u043e\u0434\u0430\u043b\u043e\u043a postboy.sub(OpenModalEvent).subscribe(event =&gt; {   analytics.track('modal-open', event.type, event.source); });<\/code><\/pre>\n<p>\u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u043e\u043a \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435.<\/p>\n<h4>\u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043b\u043e\u0432\u0443\u0448\u043a\u0430?<\/h4>\n<ul>\n<li>\n<p><strong>\u0425\u0440\u0443\u043f\u043a\u043e\u0441\u0442\u044c<\/strong>: \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u043b\u043d\u0443 \u043f\u0440\u0430\u0432\u043e\u043a \u0432 \u0434\u0440\u0443\u0433\u0438\u0445<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c<\/strong>: \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443, \u043d\u0443\u0436\u043d\u043e \u043c\u043e\u043a\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c<\/strong>: \u041d\u043e\u0432\u044b\u0435 \u0444\u0438\u0447\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0433\u043e\u0440\u043e\u0434 \u0431\u0435\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0440\u043e\u044f\u0442 \u0434\u043e\u043c\u0430 \u043a\u0430\u043a \u043f\u043e\u043f\u0430\u043b\u043e, \u0430 \u043f\u043e\u0442\u043e\u043c \u0433\u043e\u0434\u0430\u043c\u0438 \u0440\u0430\u0441\u0447\u0438\u0449\u0430\u044e\u0442 \u043a\u0440\u0438\u0432\u044b\u0435 \u043f\u0435\u0440\u0435\u0443\u043b\u043a\u0438.<\/p>\n<p>\u0410 \u0435\u0449\u0451 \u0434\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u043a\u043e\u0434-\u0440\u0435\u0432\u044c\u044e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u00ab\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 C\u00bb.<\/p>\n<p><strong>\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0438\u0442\u043e\u0433<\/strong>: Angular-\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e\u0445\u043e\u0436\u0438 \u043d\u0430 \u0436\u0438\u0442\u0435\u043b\u0435\u0439 \u043c\u0435\u0433\u0430\u043f\u043e\u043b\u0438\u0441\u0430 \u2014 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b, \u043d\u043e \u0438\u043c \u043d\u0443\u0436\u043d\u0430 \u00ab\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430\u00bb \u0434\u043b\u044f \u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u043e\u0447\u0442\u0443: \u0447\u0435\u0440\u0435\u0437 \u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, NgRx \u0438\u043b\u0438 \u043b\u0435\u0433\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u0438\u043d\u043e\u0433\u0434\u0430 \u043b\u0443\u0447\u0448\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 \u044d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430.<\/p>\n<h3>\u0427\u0430\u0441\u0442<\/h><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-459624","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/459624","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=459624"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/459624\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=459624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=459624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=459624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}