{"id":282580,"date":"2016-12-15T22:25:04","date_gmt":"2016-12-15T19:25:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282580"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282580","title":{"rendered":"\u041a\u0430\u043a Discord \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 1 000 000 push-\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u043e\u0432 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Elixir GenStage"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/285\/80e\/8af\/28580e8af4eb4ae08c83127326a5270f.jpg\"\/><br \/>  <i>Discord<\/i><\/p>\n<p>  <abbr title=\"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0438 \u0432\u0438\u0434\u0435\u043e\u0447\u0430\u0442 \u0434\u043b\u044f \u0433\u0435\u0439\u043c\u0435\u0440\u043e\u0432\">Discord<\/abbr> \u0438\u0441\u043f\u044b\u0442\u0430\u043b \u043d\u0435\u0431\u044b\u0432\u0430\u043b\u044b\u0439 \u0440\u043e\u0441\u0442. \u0427\u0442\u043e\u0431\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c, \u043d\u0430\u0448\u0435\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0430.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u044b \u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0445\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Elixir GenStage.<\/p>\n<h1>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c: Overwatch \u0438 Pok\u00e9mon GO<\/h1>\n<p>  \u042d\u0442\u0438\u043c \u043b\u0435\u0442\u043e\u043c \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043b\u0430 \u0441\u043a\u0440\u0438\u043f\u0435\u0442\u044c \u043e\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u0427\u0430\u0442 \/r\/Overwatch \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u043b \u0437\u0430 25\u00a0000 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0447\u0430\u0442-\u0433\u0440\u0443\u043f\u043f\u044b Pok\u00e9mon GO \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043b\u0438 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412\u0441\u043f\u043b\u0435\u0441\u043a\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0442\u043e\u0440\u043c\u043e\u0437\u044f\u0442 \u0432\u0441\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439, \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u043a\u043b\u0430\u0434\u0443\u0442 \u0435\u0451. Push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043f\u043e\u0437\u0434\u043d\u043e, \u0438\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0432\u043e\u0432\u0441\u0435.<\/p>\n<h1>GenStage \u0438\u0434\u0451\u0442 \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c<\/h1>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u0447\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u044b\u043c \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e\u043c \u0431\u044b\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441 Google Firebase Cloud Messaging.<\/p>\n<p>  \u041c\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u043c \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u0443\u044e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c push-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a Firebase \u043f\u043e XMPP, \u0430 \u043d\u0435 \u043f\u043e HTTP.<\/p>\n<p>  Firebase XMPP \u0441\u043b\u0435\u0433\u043a\u0430 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0447\u0435\u043c HTTP. Firebase \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e XMPP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u044b\u043b\u043e \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 100 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438. \u0415\u0441\u043b\u0438 \u043e\u0442 \u0432\u0430\u0441 \u0443\u043b\u0435\u0442\u0435\u043b\u043e 100 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0434\u043e\u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 Firebase \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439.<\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e 100 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0447\u0442\u043e\u0431\u044b XMPP-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u044f\u043b\u0438\u0441\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u043e\u0432 \u043f\u043e\u0442\u043e\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/p>\n<p>  \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e GenStage \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<h1>GenStage<\/h1>\n<p>  \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 GenStage?<\/p>\n<blockquote><p><i>GenStage \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u0436\u0438\u043c Elixir \u0434\u043b\u044f \u043e\u0431\u043c\u0435\u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438 \u043f\u043e\u0434 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 Elixir. [<a href=\"http:\/\/elixir-lang.org\/blog\/2016\/07\/14\/announcing-genstage\/\">0<\/a>]<\/i><\/p><\/blockquote>\n<p>  \u0427\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435? \u041f\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443, \u044d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u0434\u0430\u0451\u0442 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u043d\u0438 \u043e\u0434\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0430\u0441\u044c.<\/p>\n<p>  \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441 \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438 GenStage \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432.<\/p>\n<blockquote><p><i>\u042d\u0442\u0430\u043f\u044b (stages) \u2014 \u044d\u0442\u043e \u0448\u0430\u0433\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u0438\/\u0438\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u044d\u0442\u0430\u043f\u043e\u0432.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u044d\u0442\u0430\u043f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f. \u042d\u0442\u0430\u043f\u044b \u043c\u043e\u0433\u0443\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0440\u043e\u043b\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f, \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u043e\u043b\u0435\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f, \u044d\u0442\u0430\u043f \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u00ab\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c\u00bb (source), \u0435\u0441\u043b\u0438 \u043e\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0438\u043b\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u00ab\u0441\u0442\u043e\u043a\u043e\u043c\u00bb (sink), \u0435\u0441\u043b\u0438 \u043e\u043d \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442. [<a href=\"https:\/\/hexdocs.pm\/gen_stage\/Experimental.GenStage.html\">1<\/a>]<\/i><\/p><\/blockquote>\n<p>  <\/p>\n<h1>\u041f\u043e\u0434\u0445\u043e\u0434<\/h1>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3cc\/494\/ffa\/3cc494ffaa744052bd29535b44343cf9.gif\"\/><\/p>\n<p>  \u041c\u044b \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u0434\u0432\u0430 \u044d\u0442\u0430\u043f\u0430 GenStage. \u041e\u0434\u0438\u043d \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u043e\u0434\u0438\u043d \u0441\u0442\u043e\u043a.<\/p>\n<ul>\n<li>\u042d\u0442\u0430\u043f 1 \u2014 Push Collector. \u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 push-\u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0421\u0435\u0439\u0447\u0430\u0441 \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u0441\u0441 Erlang \u0434\u043b\u044f Push Collector \u043d\u0430 \u043e\u0434\u043d\u0443 \u043c\u0430\u0448\u0438\u043d\u0443.\n<\/li>\n<li>\u042d\u0442\u0430\u043f 2 \u2014 Pusher. \u042d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 push-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 Push Collector \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442 \u0438\u0445 \u043a Firebase. \u041e\u043d \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e 100 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430 \u0440\u0430\u0437, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u0442\u044c \u043b\u0438\u043c\u0438\u0442 Firebase \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0442\u0438\u043f\u0430 Pusher (\u0442\u043e\u0436\u0435 \u043d\u0430 Erlang) \u043c\u043d\u043e\u0433\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/li>\n<\/ul>\n<p>  <\/p>\n<h1>\u041e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0441\u0431\u0440\u043e\u0441 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GenStage<\/h1>\n<p>  \u0423 GenStage \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043d\u0430\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432: \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (back-pressure) \u0438 \u0441\u0431\u0440\u043e\u0441 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (load-shedding).<\/p>\n<h2>\u041e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435<\/h2>\n<p>  Pusher \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c GenStage, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 Push Collector&#8217;\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 Pusher \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u042d\u0442\u043e \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 push-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438. \u041a\u043e\u0433\u0434\u0430 Firebase \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441, \u0442\u043e\u0433\u0434\u0430 Pusher \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0435\u0449\u0451 \u043e\u0442 Push Collector&#8217;\u0430.<\/p>\n<p>  Pusher \u0437\u043d\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 Firebase XMPP, \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043b\u0438\u0448\u043d\u0435\u0433\u043e. \u0410 Push Collector \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u0441\u044b\u043b\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 Pusher, \u0435\u0441\u043b\u0438 \u0442\u043e\u0442 \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b.<\/p>\n<h2>\u0421\u0431\u0440\u043e\u0441 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/h2>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Pusher&#8217;\u044b \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 Push Collector, \u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u043e\u0435 \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e \u0432 Push Collector. \u0421\u0443\u043f\u0435\u0440-\u0434\u0443\u043f\u0435\u0440 \u043c\u043e\u0449\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c.<\/p>\n<p>  \u0412 GenStage \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0430\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0439: \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f.<\/p>\n<p>  \u0412 Push Collector \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e push-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u0431\u0443\u0444\u0435\u0440. <b>\u0412 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0431\u0443\u0444\u0435\u0440 \u043f\u0443\u0441\u0442\u043e\u0439, \u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u043c\u0435\u0441\u044f\u0446 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u043d \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u043a\u0441\u0442\u0430\u0442\u0438.<\/b><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0443 \u0443\u0436 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438 \u0431\u0443\u0444\u0435\u0440 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u043e\u0433\u0434\u0430 Push Collector \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 push-\u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430 \u0441\u0447\u0451\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 <code>buffer_size<\/code> \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>init<\/code> Push Collector&#8217;\u0430.<\/p>\n<p>  \u0421 \u044d\u0442\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 \u043c\u044b \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441\u043e \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0430\u043c\u0438 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439.<\/p>\n<h1>\u041a\u043e\u0434 (\u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0430\u043c\u0430\u044f \u0432\u0430\u0436\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c)<\/h1>\n<p>  \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430, \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u044d\u0442\u0430\u043f\u044b Pusher \u0438 Push Collector. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043c\u044b \u0443\u0431\u0440\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0445 \u0437\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043e\u0442\u043a\u0430\u0437\u043e\u0432, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, Firebase \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0442.\u0434.<\/p>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<h2>Push Collector (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c)<\/h2>\n<p>  <a href=\"https:\/\/gist.github.com\/jhowarth\/40df1170d58c046da3315405fec965bf#file-push_collector-ex\">push_collector.ex<\/a><\/p>\n<pre><code class=\"erlang\">defmodule GCM.PushCollector do   use GenStage      # Client      def push(pid, push_requests) do     GenServer.cast(pid, {:push, push_requests})   end      # Server      def init(_args) do     # Run as producer and specify the max amount      # of push requests to buffer.     {:producer, :ok, buffer_size: @max_buffer_size}   end      def handle_cast({:push, push_requests}, state) do     # Dispatch the push_requests as events.     # These will be buffered if there are no consumers ready.     {:noreply, push_requests, state}   end      def handle_demand(_demand, state) do     # Do nothing. Events will be dispatched as-is.     {:noreply, [], state}   end end<\/code><\/pre>\n<h2>Pusher (\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c)<\/h2>\n<p>  <a href=\"https:\/\/gist.github.com\/jhowarth\/4e8c37ad61c197e68d2cb456ac28797d#file-pusher-ex\">pusher.ex<\/a><\/p>\n<pre><code class=\"erlang\">defmodule GCM.Pusher do   use GenStage   # The maximum number of requests Firebase allows at once per XMPP connection   @max_demand 100       defstruct [     :producer,     :producer_from,     :fcm_conn_pid,     :pending_requests,   ]      def start_link(producer, fcm_conn_pid, opts \\\\ []) do     GenStage.start_link(__MODULE__, {producer, fcm_conn_pid}, opts)   end      def init({producer, fcm_conn_pid}) do     state = %__MODULE__{       next_id: 1,       pending_requests: Map.new,       producer: producer,       fcm_conn_pid: fcm_conn_pid,     }     send(self, :init)     # Run as consumer     {:consumer, state}   end      def handle_info(:init, %{producer: producer}=state) do     # Subscribe to the Push Collector     GenStage.async_subscribe(self, to: producer, cancel: :temporary)     {:noreply, [], state}   end      def handle_subscribe(:producer, _opts, from, state) do     # Start demanding requests now that we are subscribed     GenStage.ask(from, @max_demand)     {:manual, %{state | producer_from: from}}   end      def handle_events(push_requests, _from, state) do     # We got some push requests from the Push Collector.     # Let\u2019s send them.     state = Enum.reduce(push_requests, state, &do_send\/2)     {:noreply, [], state}   end      # Send the message to FCM, track as a pending request   defp do_send(%{fcm_conn_pid: fcm_conn_pid, pending_requests: pending_requests}=state, push_request) do     {message_id, state} = generate_id(state)     xml = PushRequest.to_xml(push_request, message_id)     :ok = FCM.Connection.send(fcm_conn_pid, xml)     pending_requests = Map.put(pending_requests, message_id, push_request)     %{state | pending_requests: pending_requests}   end      # FCM response handling   defp handle_response(%{message_id: message_id}=response, %{pending_requests: pending_requests, producer_from: producer_from}=state) do     {push_request, pending_requests} = Map.pop(pending_requests, message_id)          # Since we finished a request, ask the Push Collector for more.     GenStage.ask(producer_from, 1)          %{state | pending_requests: pending_requests}   end      defp generate_id(%{next_id: next_id}=state) do     {to_string(next_id), %{state | next_id: next_id + 1}}   end end<\/code><\/pre>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u0430<\/b><br \/>  \u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430\u0441\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u041d\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e push-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041d\u0430 \u043d\u0438\u0436\u043d\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e push-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043f\u043e\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u0432 \u0431\u0443\u0444\u0435\u0440 Push Collector.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/003\/4a0\/735\/0034a0735ad3aef41878e1f91dd527d4.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/9b4\/460\/164\/9b44601642a8372622abff0e3a345072.png\"\/><\/p>\n<p>  <b>\u0425\u0440\u043e\u043d\u0438\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439:<\/b>  <\/p>\n<ul>\n<li>~17:47:00\u200a \u2014 \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/li>\n<li>~17:47:30 \u200a\u2014\u200a \u041a \u043d\u0430\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. Push Collector \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0431\u0443\u0444\u0435\u0440, \u043e\u0436\u0438\u0434\u0430\u044f \u0440\u0435\u0430\u043a\u0446\u0438\u0438 Pusher. \u0412\u0441\u043a\u043e\u0440\u0435 \u0431\u0443\u0444\u0435\u0440 \u0447\u0443\u0442\u044c \u043e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u043b\u0441\u044f.<\/li>\n<li>~17:48:50\u200a \u2014 Pusher&#8217;\u044b \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 Firebase \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u043e\u043d\u0438 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u0431\u0443\u0444\u0435\u0440 Push Collector&#8217;\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f.<\/li>\n<li>~17:50:00\u200a \u2014 \u0411\u0443\u0444\u0435\u0440 Pusher Collector \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043f\u0438\u043a\u0430 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/li>\n<li>~17:50:50\u200a \u2014 \u0411\u0443\u0444\u0435\u0440 Pusher Collector \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/li>\n<li>~17:51:30\u200a \u2014 \u200a\u041d\u0430\u043f\u043b\u044b\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e\u0448\u0451\u043b \u043d\u0430 \u0441\u043f\u0430\u0434.<\/li>\n<li>~17:52:30\u200a \u2014 \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u0432 \u043d\u043e\u0440\u043c\u0443.<\/li>\n<\/ul>\n<h1>\u0423\u0441\u043f\u0435\u0445 Elixir<\/h1>\n<p>  \u041c\u044b \u0432 Discord \u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Elixir \u0438 Erlang \u043a\u0430\u043a \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 \u0431\u044d\u043a\u0435\u043d\u0434\u0430. \u041f\u0440\u0438\u044f\u0442\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 GenStage, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043d\u0435\u0440\u0443\u0448\u0438\u043c\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 Erlang\/OTP.<\/p>\n<p>  \u041c\u044b \u0438\u0449\u0435\u043c \u0441\u043c\u0435\u043b\u044b\u0445 \u0434\u0443\u0445\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Discord \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0440\u0430\u0441\u0442\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u043b\u044e\u0431\u0438\u0442\u0435 \u0438\u0433\u0440\u044b \u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0437\u0430\u0434\u0430\u0447\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0432\u0430\u0448\u0435 \u0441\u0435\u0440\u0434\u0446\u0435 \u0431\u0438\u0442\u044c\u0441\u044f \u0447\u0430\u0449\u0435, <a href=\"https:\/\/discordapp.com\/company\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430\u0448\u0438 \u0432\u0430\u043a\u0430\u043d\u0441\u0438\u0438<\/a>.<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:\/\/habrahabr.ru\/post\/317724\/\"> https:\/\/habrahabr.ru\/post\/317724\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/285\/80e\/8af\/28580e8af4eb4ae08c83127326a5270f.jpg\"\/><br \/>  <i>Discord<\/i><\/p>\n<p>  <abbr title=\"\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0439 \u0438 \u0432\u0438\u0434\u0435\u043e\u0447\u0430\u0442 \u0434\u043b\u044f \u0433\u0435\u0439\u043c\u0435\u0440\u043e\u0432\">Discord<\/abbr> \u0438\u0441\u043f\u044b\u0442\u0430\u043b \u043d\u0435\u0431\u044b\u0432\u0430\u043b\u044b\u0439 \u0440\u043e\u0441\u0442. \u0427\u0442\u043e\u0431\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c, \u043d\u0430\u0448\u0435\u043c\u0443 \u043e\u0442\u0434\u0435\u043b\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0430.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u044b \u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0441\u043f\u0435\u0445\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u0434\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Elixir GenStage.<\/p>\n<h1>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0442\u043e\u0440\u043c: Overwatch \u0438 Pok\u00e9mon GO<\/h1>\n<p>  \u042d\u0442\u0438\u043c \u043b\u0435\u0442\u043e\u043c \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043b\u0430 \u0441\u043a\u0440\u0438\u043f\u0435\u0442\u044c \u043e\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u0427\u0430\u0442 \/r\/Overwatch \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u043b \u0437\u0430 25\u00a0000 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0447\u0430\u0442-\u0433\u0440\u0443\u043f\u043f\u044b Pok\u00e9mon GO \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0438 \u043f\u043e\u0442\u043e\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043b\u0438 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439.  <\/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-282580","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282580","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=282580"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282580\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}