{"id":467556,"date":"2025-07-18T22:42:45","date_gmt":"2025-07-18T22:42:45","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=467556"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=467556","title":{"rendered":"<span>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c topic exchange \u0432 RabbitMQ \u0434\u043b\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c<\/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>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0433\u0438\u0431\u043a\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 RabbitMQ \u2014 <code>topic exchange<\/code>. \u0418\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u00ab\u043a\u0443\u0434\u0430-\u0442\u043e\u00bb, \u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0443\u0440\u043e\u0432\u043d\u044f BGP, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0432\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. <\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 topic exchange \u0438 \u0432 \u043a\u0430\u043a\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\u0445 \u043e\u043d \u043d\u0443\u0436\u0435\u043d<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043d\u0430\u0447\u043d\u0451\u043c, \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u043e\u0434\u0438\u043d \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: <code>topic exchange<\/code> \u2014 \u044d\u0442\u043e <strong>\u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440<\/strong>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c, <strong>\u043a\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>\u0433\u0438\u0431\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043a\u043b\u044e\u0447\u0435\u0439<\/strong>, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438\u0437 \u0442\u043e\u0447\u0435\u043a (<code>.<\/code>).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430:<\/p>\n<pre><code>invoice.created.eu.highvalue<\/code><\/pre>\n<p>\u0422.\u0435 \u0435\u0441\u0442\u044c \u043f\u043e \u0444\u0430\u0442\u043a\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>if region == \"eu\" and amount &gt; 10000<\/code>, \u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0438\u043d\u0434\u0438\u0448\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code>invoice.created.eu.*<\/code><\/pre>\n<p>\u0418 \u0432\u0441\u0435, \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u0434\u0430 \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.<\/p>\n<p><code>topic exchange<\/code> \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u0442\u0440\u043e\u0438\u0442\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u043c\u0443\u043b\u044c\u0442\u0438\u0442\u0435\u043d\u0430\u043d\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0441 \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e tenant ID \u0432 \u043a\u043b\u044e\u0447\u0435, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 CI\/CD-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <code>ci.build.java<\/code> \u0438\u043b\u0438 <code>ci.test.python<\/code>, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u043b\u0435\u0440\u0442\u043e\u0432 (<code>alert.#<\/code>) \u0438\u043b\u0438 \u0432\u0435\u0434\u0451\u0442\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (<code>*.error.*<\/code>). \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043b\u044e\u0441 \u2014 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c: \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0441\u0445\u0435\u043c\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u044f \u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u2014 \u0432\u0441\u0451 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438.  <\/p>\n<h3>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430<\/h3>\n<p><code>topic exchange<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>*<\/code> \u2014 \u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442 (\u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e)<\/p>\n<\/li>\n<li>\n<p><code>#<\/code> \u2014 \u043d\u043e\u043b\u044c \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">routing key<\/p>\n<\/th>\n<th>\n<p align=\"left\">matched by<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>a.b.c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.*<\/code>, <code>a.*.c<\/code>, <code>a.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>order.created.us.ny<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>order.*.us.*<\/code>, <code>#.ny<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>ci.test.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>ci.*.go<\/code>, <code>ci.#<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h4>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b<\/h4>\n<ol>\n<li>\n<p><code>#<\/code> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438: <code>a.#.b<\/code> \u2014 <strong>\u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e<\/strong><\/p>\n<\/li>\n<li>\n<p><em> \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <\/em><strong><em>\u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442<\/em><\/strong><em>, \u043d\u0435 \u0434\u0432\u0430: <\/em><code><em>a.b<\/em><\/code><em> \u2260 <\/em><\/p>\n<\/li>\n<li>\n<p>routing key \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <strong>\u043d\u0435 \u043f\u0443\u0441\u0442\u044b\u043c<\/strong> \u0438 <strong>\u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4>\u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439<\/h4>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043b\u0443\u0447\u0448\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b routing key \u2014 \u044d\u0442\u043e <strong>hierarchical domain model<\/strong>, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:<\/p>\n<pre><code>&lt;domain&gt;.&lt;event&gt;.&lt;scope&gt;.&lt;detail&gt;<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>auth.login.success.user123<\/code><\/p>\n<\/li>\n<li>\n<p><code>payment.failed.eu.customer456<\/code><\/p>\n<\/li>\n<li>\n<p><code>order.created.us.ny<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430\u043c\u0438 \u0440\u0435\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0448\u044c:<\/p>\n<ul>\n<li>\n<p><code>auth.*.success.*<\/code> \u2014 \u043b\u043e\u0432\u0438\u043c \u0443\u0441\u043f\u0435\u0445 \u0432 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>*.failed.#<\/code> \u2014 \u043b\u043e\u0432\u0438\u043c \u043b\u044e\u0431\u044b\u0435 \u0444\u0435\u0439\u043b\u044b<\/p>\n<\/li>\n<li>\n<p><code>order.created.#<\/code> \u2014 \u0432\u0441\u0451 \u043f\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430, \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:<\/p>\n<ul>\n<li>\n<p><code>auth<\/code> \u2014 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>orders<\/code> \u2014 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>payment<\/code> \u2014 \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u044b<\/p>\n<\/li>\n<li>\n<p><code>notifications<\/code> \u2014 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0438\u0441\u0435\u043c \u0438 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c:<\/p>\n<ul>\n<li>\n<p><strong>\u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0439<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0439<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u043e\u0439 \u0431\u0435\u0437 \u0440\u0435\u0434\u0435\u043f\u043b\u043e\u044f \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u043e\u0432<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 routing key, \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<pre><code>&lt;domain&gt;.&lt;event&gt;.&lt;level&gt;.&lt;region&gt;.&lt;tenant&gt;<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439:<\/p>\n<pre><code>auth.login.failed.error.eu.tenant42 payment.refund.processed.info.us.tenant17 orders.create.success.info.ru.tenant01 notifications.email.bounced.warn.eu.tenant42<\/code><\/pre>\n<h4>\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438:<\/h4>\n<ol>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code><em>.error.<\/em>.*.*<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>critical-ops<\/code> (\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438\u0437 <code>payment<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>finance-pipeline<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 <code>bounced<\/code> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f -&gt;\u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>email-troubles<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e <code>tenant42<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>audit-tenant42<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code><em>.success.info.<\/em>.*<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>success-feed<\/code> \u0434\u043b\u044f ML-\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438<\/p>\n<\/li>\n<\/ol>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f exchange \u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432<\/h4>\n<pre><code class=\"python\">channel.exchange_declare(     exchange=\"events_topic\",     exchange_type=\"topic\",     durable=True )<\/code><\/pre>\n<p>\u0411\u0438\u043d\u0434\u0438\u043d\u0433\u0438:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041e\u0447\u0435\u0440\u0435\u0434\u044c<\/p>\n<\/th>\n<th>\n<p align=\"left\">Binding key<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>critical-ops<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.error.*.*<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>finance-pipeline<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>payment.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>email-troubles<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>notifications.email.bounced.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>audit-tenant42<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>#.*.*.*.tenant42<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>success-feed<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.success.info.*.*<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0435, \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439. \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u2014 \u0431\u0438\u043d\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u0420\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u0438 \u0442\u0435\u0433\u0438 \u2014 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<h4>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/h4>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f <code>producer.py<\/code>:<\/p>\n<pre><code class=\"python\">import pika  def send_event(routing_key: str, body: str):     connection = pika.BlockingConnection(pika.ConnectionParameters(\"localhost\"))     channel = connection.channel()      channel.exchange_declare(exchange=\"events_topic\", exchange_type=\"topic\", durable=True)      channel.basic_publish(         exchange=\"events_topic\",         routing_key=routing_key,         body=body.encode(\"utf-8\"),         properties=pika.BasicProperties(             delivery_mode=2  # persistent         )     )      print(f\"Sent [{routing_key}]: {body}\")     connection.close()  # \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f send_event(\"auth.login.failed.error.eu.tenant42\", \"Login failed from IP 1.2.3.4\")<\/code><\/pre>\n<h4>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0441 ack, QoS \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c<\/h4>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a (<code>consumer_critical.py<\/code>):<\/p>\n<pre><code class=\"python\">import pika  def handle_critical(ch, method, properties, body):     print(f\"[CRITICAL] {method.routing_key}: {body.decode()}\")     # \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0432 Slack, \u043b\u043e\u0433\u0433\u0438\u043d\u0433, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433     ch.basic_ack(delivery_tag=method.delivery_tag)  connection = pika.BlockingConnection(pika.ConnectionParameters(\"localhost\")) channel = connection.channel()  channel.queue_declare(queue=\"critical-ops\", durable=True)  channel.queue_bind(     exchange=\"events_topic\",     queue=\"critical-ops\",     routing_key=\"*.*.error.*.*\" )  channel.basic_qos(prefetch_count=5) channel.basic_consume(queue=\"critical-ops\", on_message_callback=handle_critical)  print(\"Waiting for critical events...\") channel.start_consuming()<\/code><\/pre>\n<p><code>prefetch_count=5<\/code> \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0440\u043a\u0435\u0440 \u043d\u0435 \u0437\u0430\u0445\u043b\u0435\u0431\u043d\u0443\u043b\u0441\u044f, \u0435\u0441\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0442\u044f\u0436\u0451\u043b\u043e\u0435. <code>basic_ack<\/code> \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e. <code>delivery_mode=2<\/code> \u2014 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0451\u0442 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u041e\u0447\u0435\u0440\u0435\u0434\u044c <code>durable=True<\/code> \u2014 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0441\u0431\u043e\u044f\u0445.<\/p>\n<h4>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <code>payment.refund.failed.error.us.tenant42<\/code> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>critical-ops<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code><em>.<\/em>.error.*.*<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>finance-pipeline<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code>payment.#<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>audit-tenant42<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code>#.*.*.*.tenant42<\/code>)<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e RabbitMQ \u0432 <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439<\/strong> \u043f\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0443. \u0422.\u0435 \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0434\u0438\u043d publish, \u0430 exchange \u0434\u0435\u043b\u0430\u0435\u0442 <strong>\u043c\u0443\u043b\u044c\u0442\u0438\u043a\u0430\u0441\u0442<\/strong> \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c.<\/p>\n<h4>\u041a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c<\/h4>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"python\">channel.queue_declare(queue=\"\", exclusive=True) channel.queue_bind(     exchange=\"events_topic\",     queue=result.method.queue,     routing_key=\"#\" )<\/code><\/pre>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c <code>#<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438\u0437 exchange, \u0438 \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 routing key \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043b\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u043c\u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430\u043c\u0438.<\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0433\u0434\u0435:<\/p>\n<ul>\n<li>\n<p><strong>routing key<\/strong> \u2014 \u044d\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><strong>topic exchange<\/strong> \u2014 \u0446\u0435\u043d\u0442\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><strong>\u043e\u0447\u0435\u0440\u0435\u0434\u0438<\/strong> \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u0431\u0435\u0437 \u043a\u043e\u0434\u0430<\/p>\n<\/li>\n<li>\n<p><strong>\u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u044b<\/strong> \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c \u0438 \u0433\u0438\u0431\u043e\u043a.<\/p>\n<hr\/>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p><code>topic exchange<\/code> \u2014  \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0435 <code>topic exchange<\/code> \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u043a\u0430\u043a\u0438\u0435 \u0441\u0445\u0435\u043c\u044b \u0432\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0433\u0434\u0435 \u043e\u0448\u0438\u0431\u0430\u043b\u0438\u0441\u044c, \u043a\u0430\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0441\u0430\u043c\u044b\u043c\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c\u0438? \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 RabbitMQ \u0435\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0449\u043d\u044b\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b: <code>headers exchange<\/code> \u0434\u043b\u044f \u043c\u0430\u0442\u0447\u0435\u0439 \u043f\u043e \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c, <code>consistent-hash exchange<\/code> \u0434\u043b\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438, <code>dead letter exchange<\/code> \u0434\u043b\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 <code>alternate exchange<\/code> \u043a\u0430\u043a fallback-\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c. \u0412\u0441\u0451 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043e \u0432 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u0435\u0441\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u0433\u0434\u0435 \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0435.<\/p>\n<hr\/>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441\u00a0\u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u0438\u043b\u0438\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u0433\u043b\u0443\u0431\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u00a0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439\u00a0\u2014 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u0435\u043c \u0432\u0430\u0441 \u043d\u0430\u00a0\u0434\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u0440\u043e\u043a\u0430:<\/p>\n<p><strong>8\u00a0\u0438\u044e\u043b\u044f \u0432 20:00<\/strong>\u00a0\u2014 <a href=\"https:\/\/otus.pw\/6Q5W\/\" rel=\"noopener noreferrer nofollow\"><em>\u00abRabbitMQ: \u043a\u0430\u043a\u00a0\u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043b\u0435\u0442\u0430\u0442\u044c \u043f\u043e\u00a0\u0441\u043b\u043e\u0436\u043d\u044b\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u00bb<\/em><\/a>. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u043a\u0430\u043a\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c topic exchange \u0434\u043b\u044f\u00a0\u0433\u0438\u0431\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<p><strong>23\u00a0\u0438\u044e\u043b\u044f \u0432 20:00<\/strong>\u00a0\u2014 <a href=\"https:\/\/otus.pw\/ygBR\/\" rel=\"noopener noreferrer nofollow\"><em>\u00ab\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u00a0RabbitMQ: \u0438\u043b\u0438\u00a0\u043a\u0430\u043a\u00a0\u041a\u0440\u043e\u043b\u0438\u043a \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0438\u0442 Kafka\u00bb<\/em><\/a>. \u041e\u0431\u0441\u0443\u0434\u0438\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 RabbitMQ \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 Kafka, \u0438 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a\u00a0\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0441\u00a0\u0443\u0447\u0451\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<blockquote>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 <a href=\"https:\/\/otus.pw\/s9iz\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u0441\u0442 \u043a\u00a0\u043a\u0443\u0440\u0441\u0443 \u00abRabbitMQ \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432\u00bb<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u0432\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0435\u0441\u044c \u0432\u00a0\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u0433\u0434\u0435 \u0441\u0442\u043e\u0438\u0442 \u0443\u0433\u043b\u0443\u0431\u0438\u0442\u044c \u0437\u043d\u0430\u043d\u0438\u044f.<\/p>\n<\/blockquote>\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\/923204\/\"> https:\/\/habr.com\/ru\/articles\/923204\/<\/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>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0433\u0438\u0431\u043a\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 RabbitMQ \u2014 <code>topic exchange<\/code>. \u0418\u043c\u0435\u043d\u043d\u043e \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u00ab\u043a\u0443\u0434\u0430-\u0442\u043e\u00bb, \u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0443\u0440\u043e\u0432\u043d\u044f BGP, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0432\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. <\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 topic exchange \u0438 \u0432 \u043a\u0430\u043a\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\u0445 \u043e\u043d \u043d\u0443\u0436\u0435\u043d<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043d\u0430\u0447\u043d\u0451\u043c, \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u043e\u0434\u0438\u043d \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: <code>topic exchange<\/code> \u2014 \u044d\u0442\u043e <strong>\u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440<\/strong>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u0442\u044c, <strong>\u043a\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>\u0433\u0438\u0431\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043a\u043b\u044e\u0447\u0435\u0439<\/strong>, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438\u0437 \u0442\u043e\u0447\u0435\u043a (<code>.<\/code>).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430:<\/p>\n<pre><code>invoice.created.eu.highvalue<\/code><\/pre>\n<p>\u0422.\u0435 \u0435\u0441\u0442\u044c \u043f\u043e \u0444\u0430\u0442\u043a\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>if region == \"eu\" and amount &gt; 10000<\/code>, \u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0438\u043d\u0434\u0438\u0448\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0448\u0430\u0431\u043b\u043e\u043d:<\/p>\n<pre><code>invoice.created.eu.*<\/code><\/pre>\n<p>\u0418 \u0432\u0441\u0435, \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u0434\u0430 \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.<\/p>\n<p><code>topic exchange<\/code> \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u0442\u0440\u043e\u0438\u0442\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0441 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u043c\u0443\u043b\u044c\u0442\u0438\u0442\u0435\u043d\u0430\u043d\u0442\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0441 \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e tenant ID \u0432 \u043a\u043b\u044e\u0447\u0435, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 CI\/CD-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <code>ci.build.java<\/code> \u0438\u043b\u0438 <code>ci.test.python<\/code>, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u043b\u0435\u0440\u0442\u043e\u0432 (<code>alert.#<\/code>) \u0438\u043b\u0438 \u0432\u0435\u0434\u0451\u0442\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (<code>*.error.*<\/code>). \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043b\u044e\u0441 \u2014 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c: \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0441\u0445\u0435\u043c\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u044f \u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u2014 \u0432\u0441\u0451 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438.  <\/p>\n<h3>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0438 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430<\/h3>\n<p><code>topic exchange<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u0435\u0446\u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p><code>*<\/code> \u2014 \u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442 (\u043e\u0434\u043d\u043e \u0441\u043b\u043e\u0432\u043e)<\/p>\n<\/li>\n<li>\n<p><code>#<\/code> \u2014 \u043d\u043e\u043b\u044c \u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">routing key<\/p>\n<\/th>\n<th>\n<p align=\"left\">matched by<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>a.b.c<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.*<\/code>, <code>a.*.c<\/code>, <code>a.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>order.created.us.ny<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>order.*.us.*<\/code>, <code>#.ny<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>ci.test.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>ci.*.go<\/code>, <code>ci.#<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h4>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b<\/h4>\n<ol>\n<li>\n<p><code>#<\/code> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438: <code>a.#.b<\/code> \u2014 <strong>\u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e<\/strong><\/p>\n<\/li>\n<li>\n<p><em> \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <\/em><strong><em>\u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442<\/em><\/strong><em>, \u043d\u0435 \u0434\u0432\u0430: <\/em><code><em>a.b<\/em><\/code><em> \u2260 <\/em><\/p>\n<\/li>\n<li>\n<p>routing key \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <strong>\u043d\u0435 \u043f\u0443\u0441\u0442\u044b\u043c<\/strong> \u0438 <strong>\u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4>\u041f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439<\/h4>\n<p>\u041e\u0434\u0438\u043d \u0438\u0437 \u043b\u0443\u0447\u0448\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b routing key \u2014 \u044d\u0442\u043e <strong>hierarchical domain model<\/strong>, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:<\/p>\n<pre><code>&lt;domain&gt;.&lt;event&gt;.&lt;scope&gt;.&lt;detail&gt;<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>auth.login.success.user123<\/code><\/p>\n<\/li>\n<li>\n<p><code>payment.failed.eu.customer456<\/code><\/p>\n<\/li>\n<li>\n<p><code>order.created.us.ny<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430\u043c\u0438 \u0440\u0435\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0448\u044c:<\/p>\n<ul>\n<li>\n<p><code>auth.*.success.*<\/code> \u2014 \u043b\u043e\u0432\u0438\u043c \u0443\u0441\u043f\u0435\u0445 \u0432 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><code>*.failed.#<\/code> \u2014 \u043b\u043e\u0432\u0438\u043c \u043b\u044e\u0431\u044b\u0435 \u0444\u0435\u0439\u043b\u044b<\/p>\n<\/li>\n<li>\n<p><code>order.created.#<\/code> \u2014 \u0432\u0441\u0451 \u043f\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430, \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u041a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441-\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:<\/p>\n<ul>\n<li>\n<p><code>auth<\/code> \u2014 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>orders<\/code> \u2014 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>payment<\/code> \u2014 \u043f\u043b\u0430\u0442\u0435\u0436\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u044b<\/p>\n<\/li>\n<li>\n<p><code>notifications<\/code> \u2014 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0438\u0441\u0435\u043c \u0438 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c:<\/p>\n<ul>\n<li>\n<p><strong>\u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0439<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0439<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u043e\u0439 \u0431\u0435\u0437 \u0440\u0435\u0434\u0435\u043f\u043b\u043e\u044f \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u043e\u0432<\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 routing key, \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<pre><code>&lt;domain&gt;.&lt;event&gt;.&lt;level&gt;.&lt;region&gt;.&lt;tenant&gt;<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439:<\/p>\n<pre><code>auth.login.failed.error.eu.tenant42 payment.refund.processed.info.us.tenant17 orders.create.success.info.ru.tenant01 notifications.email.bounced.warn.eu.tenant42<\/code><\/pre>\n<h4>\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438:<\/h4>\n<ol>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code><em>.error.<\/em>.*.*<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>critical-ops<\/code> (\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438\u0437 <code>payment<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>finance-pipeline<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 <code>bounced<\/code> \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f -&gt;\u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>email-troubles<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e <code>tenant42<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>audit-tenant42<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f <code><em>.success.info.<\/em>.*<\/code> -&gt; \u043e\u0447\u0435\u0440\u0435\u0434\u044c <code>success-feed<\/code> \u0434\u043b\u044f ML-\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438<\/p>\n<\/li>\n<\/ol>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f exchange \u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432<\/h4>\n<pre><code class=\"python\">channel.exchange_declare(     exchange=\"events_topic\",     exchange_type=\"topic\",     durable=True )<\/code><\/pre>\n<p>\u0411\u0438\u043d\u0434\u0438\u043d\u0433\u0438:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041e\u0447\u0435\u0440\u0435\u0434\u044c<\/p>\n<\/th>\n<th>\n<p align=\"left\">Binding key<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>critical-ops<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.error.*.*<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>finance-pipeline<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>payment.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>email-troubles<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>notifications.email.bounced.#<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>audit-tenant42<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>#.*.*.*.tenant42<\/code><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><code>success-feed<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\"><code><em>.<\/em>.success.info.*.*<\/code><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u043e \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0435, \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439. \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u2014 \u0431\u0438\u043d\u0434\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u0420\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u0438 \u0442\u0435\u0433\u0438 \u2014 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<h4>\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/h4>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044f <code>producer.py<\/code>:<\/p>\n<pre><code class=\"python\">import pika  def send_event(routing_key: str, body: str):     connection = pika.BlockingConnection(pika.ConnectionParameters(\"localhost\"))     channel = connection.channel()      channel.exchange_declare(exchange=\"events_topic\", exchange_type=\"topic\", durable=True)      channel.basic_publish(         exchange=\"events_topic\",         routing_key=routing_key,         body=body.encode(\"utf-8\"),         properties=pika.BasicProperties(             delivery_mode=2  # persistent         )     )      print(f\"Sent [{routing_key}]: {body}\")     connection.close()  # \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f send_event(\"auth.login.failed.error.eu.tenant42\", \"Login failed from IP 1.2.3.4\")<\/code><\/pre>\n<h4>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0441 ack, QoS \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c<\/h4>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a (<code>consumer_critical.py<\/code>):<\/p>\n<pre><code class=\"python\">import pika  def handle_critical(ch, method, properties, body):     print(f\"[CRITICAL] {method.routing_key}: {body.decode()}\")     # \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0432 Slack, \u043b\u043e\u0433\u0433\u0438\u043d\u0433, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433     ch.basic_ack(delivery_tag=method.delivery_tag)  connection = pika.BlockingConnection(pika.ConnectionParameters(\"localhost\")) channel = connection.channel()  channel.queue_declare(queue=\"critical-ops\", durable=True)  channel.queue_bind(     exchange=\"events_topic\",     queue=\"critical-ops\",     routing_key=\"*.*.error.*.*\" )  channel.basic_qos(prefetch_count=5) channel.basic_consume(queue=\"critical-ops\", on_message_callback=handle_critical)  print(\"Waiting for critical events...\") channel.start_consuming()<\/code><\/pre>\n<p><code>prefetch_count=5<\/code> \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0440\u043a\u0435\u0440 \u043d\u0435 \u0437\u0430\u0445\u043b\u0435\u0431\u043d\u0443\u043b\u0441\u044f, \u0435\u0441\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0442\u044f\u0436\u0451\u043b\u043e\u0435. <code>basic_ack<\/code> \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u043c, \u043f\u043e\u043a\u0430 \u043e\u043d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e. <code>delivery_mode=2<\/code> \u2014 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0451\u0442 \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0431\u0440\u043e\u043a\u0435\u0440\u0430. \u041e\u0447\u0435\u0440\u0435\u0434\u044c <code>durable=True<\/code> \u2014 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0441\u0431\u043e\u044f\u0445.<\/p>\n<h4>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <code>payment.refund.failed.error.us.tenant42<\/code> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>critical-ops<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code><em>.<\/em>.error.*.*<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>finance-pipeline<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code>payment.#<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 <code>audit-tenant42<\/code> (\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <code>#.*.*.*.tenant42<\/code>)<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e RabbitMQ \u0432 <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439<\/strong> \u043f\u043e \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0443. \u0422.\u0435 \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0434\u0438\u043d publish, \u0430 exchange \u0434\u0435\u043b\u0430\u0435\u0442 <strong>\u043c\u0443\u043b\u044c\u0442\u0438\u043a\u0430\u0441\u0442<\/strong> \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c.<\/p>\n<h4>\u041a\u0430\u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c<\/h4>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/p>\n<pre><code class=\"python\">channel.queue_declare(queue=\"\", exclusive=True) channel.queue_bind(     exchange=\"events_topic\",     queue=result.method.queue,     routing_key=\"#\" )<\/code><\/pre>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c <code>#<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438\u0437 exchange, \u0438 \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 routing key \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0435\u043b\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u043c\u0438 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430\u043c\u0438.<\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0433\u0434\u0435:<\/p>\n<ul>\n<li>\n<p><strong>routing key<\/strong> \u2014 \u044d\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p><strong>topic exchange<\/strong> \u2014 \u0446\u0435\u043d\u0442\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u043a\u043e\u0439<\/p>\n<\/li>\n<li>\n<p><strong>\u043e\u0447\u0435\u0440\u0435\u0434\u0438<\/strong> \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u0431\u0435\u0437 \u043a\u043e\u0434\u0430<\/p>\n<\/li>\n<li>\n<p><strong>\u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u044b<\/strong> \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434 \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c \u0438 \u0433\u0438\u0431\u043e\u043a.<\/p>\n<hr\/>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p><code>topic exchange<\/code> \u2014  \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0435 <code>topic exchange<\/code> \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u2014 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445: \u043a\u0430\u043a\u0438\u0435 \u0441\u0445\u0435\u043c\u044b \u0432\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0433\u0434\u0435 \u043e\u0448\u0438\u0431\u0430\u043b\u0438\u0441\u044c, \u043a\u0430\u043a\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0441\u0430\u043c\u044b\u043c\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c\u0438? \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 RabbitMQ \u0435\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0449\u043d\u044b\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b: <code>headers exchange<\/code> \u0434\u043b\u044f \u043c\u0430\u0442\u0447\u0435\u0439 \u043f\u043e \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c, <code>consistent-hash exchange<\/code> \u0434\u043b\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438, <code>dead letter exchange<\/code> \u0434\u043b\u044f \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 <code>alternate exchange<\/code> \u043a\u0430\u043a fallback-\u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c. \u0412\u0441\u0451 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043e \u0432 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u0435\u0441\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u0433\u0434\u0435 \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0435.<\/p>\n<hr\/>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441\u00a0\u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c\u0438, \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u0438\u043b\u0438\u00a0\u0445\u043e\u0442\u0438\u0442\u0435 \u0433\u043b\u0443\u0431\u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u00a0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439\u00a0\u2014 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u0435\u043c \u0432\u0430\u0441 \u043d\u0430\u00a0\u0434\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u0440\u043e\u043a\u0430:<\/p>\n<p><strong>8\u00a0\u0438\u044e\u043b\u044f \u0432 20:00<\/strong>\u00a0\u2014 <a href=\"https:\/\/otus.pw\/6Q5W\/\" rel=\"noopener noreferrer nofollow\"><em>\u00abRabbitMQ: \u043a\u0430\u043a\u00a0\u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043b\u0435\u0442\u0430\u0442\u044c \u043f\u043e\u00a0\u0441\u043b\u043e\u0436\u043d\u044b\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u00bb<\/em><\/a>. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u043a\u0430\u043a\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c topic exchange \u0434\u043b\u044f\u00a0\u0433\u0438\u0431\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445.<\/p>\n<p><strong>23\u00a0\u0438\u044e\u043b\u044f \u0432 20:00<\/strong>\u00a0\u2014 <a href=\"https:\/\/otus.pw\/ygBR\/\" rel=\"noopener noreferrer nofollow\"><em>\u00ab\u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u00a0RabbitMQ: \u0438\u043b\u0438\u00a0\u043a\u0430\u043a\u00a0\u041a\u0440\u043e\u043b\u0438\u043a \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0438\u0442 Kafka\u00bb<\/em><\/a>. \u041e\u0431\u0441\u0443\u0434\u0438\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 RabbitMQ \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0435\u0435 Kafka, \u0438 \u043f\u043e\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a\u00a0\u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0441\u00a0\u0443\u0447\u0451\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<blockquote>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 <a href=\"https:\/\/otus.pw\/s9iz\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u0441\u0442 \u043a\u00a0\u043a\u0443\u0440\u0441\u0443 \u00abRabbitMQ \u0434\u043b\u044f\u00a0\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432\u00bb<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e \u0432\u044b \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0435\u0441\u044c \u0432\u00a0\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u0430 \u0438 \u0433\u0434\u0435 \u0441\u0442\u043e\u0438\u0442 \u0443\u0433\u043b\u0443\u0431\u0438\u0442\u044c \u0437\u043d\u0430\u043d\u0438\u044f.<\/p>\n<\/blockquote>\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\/923204\/\"> https:\/\/habr.com\/ru\/articles\/923204\/<\/a><br \/><\/br><\/br><\/p>\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-467556","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467556","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=467556"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/467556\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}