{"id":264658,"date":"2015-08-31T17:28:02","date_gmt":"2015-08-31T13:28:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=264658"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=264658","title":{"rendered":"gRPC \u2014 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043e\u0442 Google \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e2d\/7a5\/31f\/e2d7a531f783426fa5537acdbaeb42f1.png\"\/><br \/>  \u0412 \u0434\u0435\u043b\u0435 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u0434\u0435\u043b\u0430 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u043a \u0432 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u043c \u043a\u043e\u043c\u0438\u043a\u0441\u0435 <a href=\"http:\/\/xkcd.ru\/927\/\">\u00ab14 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432\u00bb<\/a> \u2014 \u0447\u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0443\u0442 \u043d\u0435 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Remote_procedure_call\">\u043d\u0430\u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043e<\/a>: \u0434\u0440\u0435\u0432\u043d\u0438\u0435 DCOM \u0438 Corba, \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 SOAP \u0438 .NET Remoting, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 REST \u0438 AMQP (\u0434\u0430, \u044f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435 RPC, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0434\u0430\u0436\u0435 \u0432\u043e\u0442 <a href=\"http:\/\/habrahabr.ru\/post\/264181\/\">\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043f\u0438\u043a<\/a> \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438, \u0442\u0435\u043c \u043d\u0438 \u043c\u0435\u043d\u0435\u0435 \u0432\u0441\u0451 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a RPC, \u0430 \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u0443\u0442\u043a\u0430 \u0438 \u043f\u043b\u0430\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0443\u0442\u043a\u0430 \u2014 \u043d\u0443, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A3%D1%82%D0%B8%D0%BD%D0%B0%D1%8F_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F\">\u0432\u044b \u0432 \u043a\u0443\u0440\u0441\u0435<\/a>). <\/p>\n<p>  \u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u043c \u043a\u043e\u043c\u0438\u043a\u0441\u0430, \u043d\u0430 \u0440\u044b\u043d\u043e\u043a \u043f\u0440\u0438\u0448\u0435\u043b Google \u0438 \u0437\u0430\u044f\u0432\u0438\u043b \u0447\u0442\u043e \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0449\u0451 \u043e\u0434\u0438\u043d, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 RPC. Google \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u2014 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0432 21-\u043e\u043c \u0432\u0435\u043a\u0435 \u0433\u043e\u043d\u044f\u0442\u044c \u043f\u0435\u0442\u0430\u0431\u0430\u0439\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0441\u0442\u0430\u0440\u043e\u043c\u0443 \u0438 \u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 HTTP+REST, \u0442\u0435\u0440\u044f\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0431\u0430\u0439\u0442\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043b\u0443\u043f\u043e. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u044f\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u00ab\u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435\u00bb \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0432 \u0438\u0445 \u0441\u0442\u0438\u043b\u0435.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435, <a href=\"http:\/\/www.grpc.io\/\">gRPC<\/a>, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u00abgRPC Remote Procedure Calls\u00bb \u2014 \u043d\u043e\u0432\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u043e\u0442 Google. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0436\u0435 \u043e\u043d, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u00ab14 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432\u00bb \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442 \u043c\u0438\u0440 (\u043d\u0443 \u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u044c), \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0431\u0438\u043b\u0434 gRPC \u043f\u043e\u0434 Windows + Visual Studio (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435 \u043c\u043d\u0435, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u2014 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0443\u043f\u0443\u0449\u0435\u043d\u043e \u0448\u0442\u0443\u043a 5 \u0432\u0430\u0436\u043d\u044b\u0445 \u0448\u0430\u0433\u043e\u0432, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442, \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442?<\/h4>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0433\u043b\u044f\u043d\u0435\u043c\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433. \u0427\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c? \u041c\u044b \u0432\u0438\u0434\u0438\u043c REST + HTTP\/1.1. \u041d\u0435\u0442, \u0435\u0441\u0442\u044c \u0432\u0441\u044f\u043a\u043e\u0435, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0430 \u0442\u0443\u0447\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0431\u0440\u044b\u0445 \u0442\u0440\u0438 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438 \u043d\u0435\u0431\u043e\u0441\u0432\u043e\u0434\u0430 \u043a\u043b\u0438\u0435\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0445 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439. \u041f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0432\u0448\u0438\u0441\u044c \u0435\u0449\u0451 \u0447\u0443\u0442\u044c \u043f\u0440\u0438\u0441\u0442\u0430\u043b\u044c\u043d\u0435\u0435, \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e REST \u0432 95% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0432\u044b\u0440\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/CRUD\">CRUD<\/a>. <\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li>\u041d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 HTTP\/1.1 \u2014 \u043d\u0435\u0441\u0436\u0430\u0442\u044b\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 \u0441\u0432\u044f\u0437\u0438, \u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u041e\u0421, \u043b\u0438\u0448\u043d\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a, \u043b\u0438\u0448\u043d\u0438\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438.<\/li>\n<li>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430 REST+CRUD, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u043a\u0430\u043a \u0432\u043e\u0437\u0434\u0443\u0448\u043d\u044b\u0439 \u0448\u0430\u0440\u0438\u043a \u043d\u0430 \u0433\u043b\u043e\u0431\u0443\u0441 \u0438 \u0432\u044b\u043d\u0443\u0436\u0434\u0430\u0435\u0442 \u042f\u043d\u0434\u0435\u043a\u0441 \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u0435, \u0431\u0435\u0441\u0441\u043f\u043e\u0440\u043d\u043e, <a href=\"http:\/\/habrahabr.ru\/company\/yandex\/blog\/265569\/\">\u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043e\u0434\u043d\u0430\u043a\u043e, \u0431\u044b\u043b\u0438 \u0431\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u0435\u0441\u043b\u0438 \u0431\u044b \u043b\u044e\u0434\u044f\u043c \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0434\u0443\u043c\u0430\u0442\u044c \u00ab\u0427\u0435\u043c \u0436\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0437\u0430\u043a\u043b\u0438\u043d\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u0438\u0437\u044b\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044f \u2014 PUT&#8217;\u043e\u043c \u0438\u043b\u0438 POST&#8217;\u043e\u043c? \u0418 \u043a\u0430\u043a\u043e\u0439 \u0436\u0435 HTTP-\u043a\u043e\u0434 \u0432\u0435\u0440\u043d\u0443\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043e\u0437\u043d\u0430\u0447\u0430\u043b \u201e\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 3 \u043a\u043b\u0435\u0442\u043a\u0438 \u0432\u043f\u0435\u0440\u0451\u0434 \u0438 \u0442\u044f\u043d\u0438\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443\u201c ?\u00bb<\/li>\n<\/ul>\n<p>  \u0418\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f gRPC. \u0418\u0442\u0430\u043a, \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043c\u044b \u0438\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li><a href=\"https:\/\/ru.wikipedia.org\/wiki\/Protocol_Buffers\">Protobuf<\/a> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u041e\u0447\u0435\u043d\u044c \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0432\u0448\u0430\u044f \u0441\u0435\u0431\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0448\u0442\u0443\u043a\u0430. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0442\u0435, \u043a\u043e\u043c\u0443 \u0431\u044b\u043b\u0430 \u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2014 \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u0440\u0430\u043b\u0438 Protobuf, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0443\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043e\u043c. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435.<\/li>\n<li>HTTP\/2 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430. \u0418 \u044d\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0445\u043e\u0434! \u0412\u0441\u044f \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u0436\u0430\u0442\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e c\u043e\u043a\u0435\u0442\u0430 \u0434\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u043a\u0440\u0430\u0441\u043e\u0442\u0438\u0449\u0430.<\/li>\n<li>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0443\u0442\u0438 \u2014 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u00ab\u0441\u0435\u0440\u0432\u0438\u0441\/\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\/\u0440\u0435\u0441\u0443\u0440\u0441\/\u0437\u0430\u043f\u0440\u043e\u0441? \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440=\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0441\u0435\u0440\u0432\u0438\u0441\u00bb, \u0430 \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u2014 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u0432\u0430\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0435\u0451 \u0441\u043e\u0431\u044b\u0442\u0438\u0439. <\/li>\n<li>\u041d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043a HTTP-\u043c\u0435\u0442\u043e\u0434\u0430\u043c, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a HTTP-\u0441\u0442\u0430\u0442\u0443\u0441\u0430\u043c. \u041f\u0438\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435.<\/li>\n<li>SSL\/TLS, OAuth 2.0, \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0438\u0441\u044b Google, \u043f\u043b\u044e\u0441 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u044e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0432\u0443\u0445\u0444\u0430\u043a\u0442\u043e\u0440\u043d\u0443\u044e)<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 9-\u0442\u0438 \u044f\u0437\u044b\u043a\u043e\u0432: C, C++, Java, Go, Node.js, Python, Ruby, Objective-C, PHP, C# \u043f\u043b\u044e\u0441, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0432\u0437\u044f\u0442\u044c \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0445\u043e\u0442\u044c \u0434\u043b\u044f \u0431\u0440\u0435\u0439\u043d\u0444\u0430\u043a\u0430.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 gRPC \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 API \u043e\u0442 Google. \u0423\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <a href=\"https:\/\/github.com\/google\/googleapis\">\u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/a>. \u041d\u0435\u0442, REST-\u0432\u0435\u0440\u0441\u0438\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0442\u043e\u0436\u0435 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f. \u041d\u043e \u043f\u043e\u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u043e\u0440 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0441\u043a\u0430\u0436\u0435\u043c, \u0438\u0437 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f REST-\u0432\u0435\u0440\u0441\u0438\u044e, \u043e\u0442\u0434\u0430\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 1 \u0441\u0435\u043a \u0438\u043b\u0438 \u0441 \u0442\u0435\u043c\u0438 \u0436\u0435 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438 \u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0437\u044f\u0442\u044c gRPC-\u0432\u0435\u0440\u0441\u0438\u044e, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e 0.5 \u0441\u0435\u043a \u2014 \u0447\u0442\u043e \u0432\u044b \u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435? \u0410 \u0447\u0442\u043e \u0432\u044b\u0431\u0435\u0440\u0435\u0442 \u0432\u0430\u0448 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442?<\/li>\n<\/ul>\n<h4>\u0421\u0431\u043e\u0440\u043a\u0430 gRPC<\/h4>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u044f:  <\/p>\n<ul>\n<li>Git<\/li>\n<li>Visual Studio 2013 + Nuget<\/li>\n<li>CMake<\/li>\n<\/ul>\n<h4>\u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043e\u0434<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c <a href=\"https:\/\/github.com\/grpc\/grpc\">\u0440\u0435\u043f\u043e\u0437\u0438\u043f\u043e\u0440\u0438\u0439 gRPC<\/a> \u0441 \u0413\u0438\u0442\u0445\u0430\u0431\u0430<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <br \/> \n<pre><code class=\"bash\">git submodule update --init <\/code><\/pre>\n<p>   \u2014 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 (protobuf, openssl \u0438 \u0442.\u0434.).<\/li>\n<\/ol>\n<h4>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c Protobuf<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 grpc\\third_party\\protobuf\\cmake \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0430\u043c \u043f\u0430\u043f\u043a\u0443 build, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0451.<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<br \/>   cmake -G \u00abVisual Studio 12 2013\u00bb -DBUILD_TESTING=OFF\u2026 <\/li>\n<li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0444\u0430\u0439\u043b protobuf.sln \u0432 Visual Studio \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c (F7).<br \/>   \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0446\u0435\u043d\u043d\u044b\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 protoc.exe, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u043c \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\\\u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 lib-\u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0443\u0442 \u043d\u0443\u0436\u043d\u044b \u043f\u0440\u0438 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0435 gRPC.<\/li>\n<li>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043f\u043a\u0443 grpc\\third_party\\protobuf\\cmake\\build\\Debug \u0432 \u043f\u0430\u043f\u043a\u0443 grpc\\third_party\\protobuf\\cmake. <br \/>   \u0415\u0449\u0451 \u0440\u0430\u0437 \u2014 \u043f\u0430\u043f\u043a\u0443 Debug \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 1 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435. \u042d\u0442\u043e \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u043d\u0435\u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0445 gRPC \u0438 Protobuf. \u0412 Protobuf \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0431\u0438\u043b\u0434\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 build, \u0430 \u0432\u043e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 gRPC \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0431 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e\u0442 \u0438 \u0438\u0449\u0443\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Protobuf \u043f\u0440\u044f\u043c\u043e \u0432 grpc\\third_party\\protobuf\\cmake\\Debug <\/li>\n<\/ul>\n<h4>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c gRPC<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b grpc\\vsprojects\\grpc_protoc_plugins.sln \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e.<br \/>   \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0435\u0440\u043d\u043e \u043f\u0440\u043e\u0448\u043b\u0438 \u0441\u0431\u043e\u0440\u043a\u0443 Protobuf \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0430\u043f\u0435 \u2014 \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u0433\u043b\u0430\u0434\u043a\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u043a protoc.exe, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0435\u043c\u0443 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\\\u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u043e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b gRPC (\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440). \u041f\u043b\u0430\u0433\u0438\u043d\u044b \u0438 protoc.exe \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043e\u0434\u043d\u0443 \u043f\u0430\u043f\u043a\u0443, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 grpc\\vsprojects\\Debug.<\/li>\n<li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b grpc\\vsprojects\\grpc.sln \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0435\u0433\u043e.<br \/>   \u041f\u043e \u0445\u043e\u0434\u0443 \u0441\u0431\u043e\u0440\u043a\u0443 \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f Nuget \u0438 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 (openssl, zlib). \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 Nuget \u0438\u043b\u0438 \u043e\u043d \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0441\u043a\u0430\u0447\u0430\u043b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<br \/>   \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044e \u0431\u0438\u043b\u0434\u0430 \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 gRPC.<\/li>\n<\/ol>\n<h4>\u041d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442<\/h4>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0441\u0435\u0431\u0435 API \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440\u0430 \u0441 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c gRPC<br \/>  \u041c\u0435\u0442\u043e\u0434\u044b \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0442\u0430\u043a\u0438\u0435:  <\/p>\n<ul>\n<li>GetKarma \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0435\u0433\u043e \u043a\u0430\u0440\u043c\u044b<\/li>\n<li>PostArticle \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0435\u0451 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0443 \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043d\u0435 \u0443\u0434\u0430\u043b\u0430\u0441\u044c<\/li>\n<\/ul>\n<p>  \u042d\u0442\u043e \u0432\u0441\u0451 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 gRPC. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a (\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 <a href=\"https:\/\/developers.google.com\/protocol-buffers\/docs\/proto3\">protobuf<\/a>):<\/p>\n<pre><code class=\"javascript\">syntax = &quot;proto3&quot;;  package HabrahabrApi;  message KarmaRequest {   string username = 1; }  message KarmaResponse {   string username = 1;   float karma = 2; }  message PostArticleRequest {   string title = 1;   string body = 2;   repeated string tag = 3;    repeated string hub = 4;  }  message PostArticleResponse {   bool posted = 1;   string url = 2;   string time = 3;   string error_code = 4; }\t  service HabrApi {   rpc GetKarma(KarmaRequest) returns (KarmaResponse) {}   rpc PostArticle(PostArticleRequest) returns (PostArticleResponse) {} } <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 grpc\\vsprojects\\Debug \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0430\u043c 2 \u043a\u043e\u043c\u0430\u043d\u0434\u044b (\u043a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b):  <\/p>\n<pre><code class=\"bash\">protoc --grpc_out=. --plugin=protoc-gen-grpc=grpc_cpp_plugin.exe habr.proto protoc --cpp_out=. habr.proto  <\/code><\/pre>\n<p>  \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c 4 \u0444\u0430\u0439\u043b\u0430:  <\/p>\n<ul>\n<li>habr.pb.h<\/li>\n<li>habr.pb.cc<\/li>\n<li>habr.grpc.pb.h<\/li>\n<li>habr.grpc.pb.cc<\/li>\n<\/ul>\n<p>  \u042d\u0442\u043e, \u043a\u0430\u043a \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f, \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u043d\u0430\u0448\u0438\u0445 \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u043c\u0443 \u0432\u044b\u0448\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443.<\/p>\n<h4>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442!<\/h4>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432 Visual Studio \u043d\u043e\u0432\u044b\u0439 solution, \u043d\u0430\u0437\u043e\u0432\u0451\u043c \u0435\u0433\u043e HabrAPI. <\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0434\u0432\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 HabrServer \u0438 HabrClient.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0438\u0445 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435 h \u0438 \u0441\u0441-\u0444\u0430\u0439\u043b\u044b. \u0412 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0434\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432\u0441\u0435 4, \u0432 \u043a\u043b\u0438\u0435\u043d\u0442 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e habr.pb.h \u0438 habr.pb.cc.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 Additional Include Directories \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0430\u043c grpc\\third_party\\protobuf\\src \u0438 grpc\\include<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 Additional Library Directories \u043f\u0443\u0442\u044c \u043a grpc\\third_party\\protobuf\\cmake\\Debug<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0432 Additional Dependencies \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 libprotobuf.lib<\/li>\n<li>\u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0438\u043f \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0438 \u0442\u0430\u043a\u0438\u043c \u0436\u0435, \u0441 \u043a\u0430\u043a\u0438\u043c \u0431\u044b\u043b \u0441\u043e\u0431\u0440\u0430\u043d Protobuf (\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e Runtime Library \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Code Generation). \u0412 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u0438 Protobuf \u0432 \u043d\u0443\u0436\u043d\u043e\u0439 \u0432\u0430\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0438 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e. \u042f \u0432\u044b\u0431\u0438\u0440\u0430\u043b \u0438 \u0442\u0430\u043c \u0438 \u0442\u0430\u043c \/MTd.<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0447\u0435\u0440\u0435\u0437 Nuget \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 zlib \u0438 openssl.<\/li>\n<\/ol>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0432\u0441\u0451 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f. \u041f\u0440\u0430\u0432\u0434\u0430, \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u043a\u0430 \u0435\u0449\u0451 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<h5>\u041a\u043b\u0438\u0435\u043d\u0442<\/h5>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0442 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0432 habr.pb.h. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043d\u0451\u043c \u043c\u0435\u0442\u043e\u0434\u044b GetKarma \u0438 PostArticle. \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">#include &lt;iostream&gt; #include &lt;memory&gt; #include &lt;string&gt;  #include &lt;grpc\/grpc.h&gt; #include &lt;grpc++\/channel.h&gt; #include &lt;grpc++\/client_context.h&gt; #include &lt;grpc++\/create_channel.h&gt; #include &lt;grpc++\/credentials.h&gt; #include &quot;habr.grpc.pb.h&quot;  using grpc::Channel; using grpc::ChannelArguments; using grpc::ClientContext; using grpc::Status; using HabrahabrApi::KarmaRequest; using HabrahabrApi::KarmaResponse; using HabrahabrApi::PostArticleRequest; using HabrahabrApi::PostArticleResponse; using HabrahabrApi::HabrApi;  class HabrahabrClient {  public:   HabrahabrClient(std::shared_ptr&lt;Channel&gt; channel)       : stub_(HabrApi::NewStub(channel)) {}    float GetKarma(const std::string& username) {     KarmaRequest request;     request.set_username(username);     KarmaResponse reply;     ClientContext context;      Status status = stub_-&gt;GetKarma(&context, request, &reply);     if (status.ok()) {       return reply.karma();     } else {       return 0;     }   }    bool PostArticle(const std::string& username) {     PostArticleRequest request;     request.set_title(&quot;Article about gRPC&quot;);     request.set_body(&quot;bla-bla-bla&quot;);     request.set_tag(&quot;UFO&quot;);     request.set_hab(&quot;Infopulse&quot;);     PostArticleResponse reply;     ClientContext context;      Status status = stub_-&gt;PostArticle(&context, request, &reply);     return status.ok() && reply.posted();   }   private:   std::unique_ptr&lt;HabrApi::Stub&gt; stub_; };  int main(int argc, char** argv) {   HabrahabrClient client(       grpc::CreateChannel(&quot;localhost:50051&quot;, grpc::InsecureCredentials(),                           ChannelArguments()));   std::string user(&quot;tangro&quot;);   std::string reply = client.GetKarma(user);   std::cout &lt;&lt; &quot;Karma received: &quot; &lt;&lt; reply &lt;&lt; std::endl;    return 0; }  <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0421\u0435\u0440\u0432\u0435\u0440<\/h5>\n<p>  \u0421 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u043e\u0445\u043e\u0436\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u2014 \u043c\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u0441\u044f \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432 habr.grpc.pb.h \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u044b. \u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u043c \u043f\u043e\u0440\u0442\u0443, \u043d\u0443 \u0438 \u0436\u0434\u0451\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u041a\u0430\u043a-\u0442\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"cpp\">#include &lt;iostream&gt; #include &lt;memory&gt; #include &lt;string&gt;  #include &lt;grpc\/grpc.h&gt; #include &lt;grpc++\/server.h&gt; #include &lt;grpc++\/server_builder.h&gt; #include &lt;grpc++\/server_context.h&gt; #include &lt;grpc++\/server_credentials.h&gt; #include &quot;habr.grpc.pb.h&quot;  using grpc::Server; using grpc::ServerBuilder; using grpc::ServerContext; using grpc::Status; using HabrahabrApi::KarmaRequest; using HabrahabrApi::KarmaResponse; using HabrahabrApi::PostArticleRequest; using HabrahabrApi::PostArticleResponse; using HabrahabrApi::HabrApi;  class HabrahabrServiceImpl final : public HabrApi::Service {   Status GetKarma(ServerContext* context, const KarmaRequest* request,                   KarmaResponse* reply) override {     reply-&gt;set_karma(42);     return Status::OK;   }    Status PostArticle(ServerContext* context, const PostArticleRequest* request,                   PostArticleResponse* reply) override {     reply-&gt;set_posted(true);     reply-&gt;set_url(&quot;some_url&quot;);      return Status::OK;   } };  void RunServer() {   std::string server_address(&quot;0.0.0.0:50051&quot;);   HabrahabrServiceImpl service;    ServerBuilder builder;   builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());   builder.RegisterService(&service);   std::unique_ptr&lt;Server&gt; server(builder.BuildAndStart());   std::cout &lt;&lt; &quot;Server listening on &quot; &lt;&lt; server_address &lt;&lt; std::endl;   server-&gt;Wait(); }  int main(int argc, char** argv) {   RunServer();    return 0; } <\/code><\/pre>\n<p>  \u0423\u0434\u0430\u0447\u0438 \u0432\u0430\u043c \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 gRPC.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/265805\/\"> http:\/\/habrahabr.ru\/post\/265805\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e2d\/7a5\/31f\/e2d7a531f783426fa5537acdbaeb42f1.png\"\/><br \/>  \u0412 \u0434\u0435\u043b\u0435 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u0434\u0435\u043b\u0430 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u043a \u0432 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u043c \u043a\u043e\u043c\u0438\u043a\u0441\u0435 <a href=\"http:\/\/xkcd.ru\/927\/\">\u00ab14 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432\u00bb<\/a> \u2014 \u0447\u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0443\u0442 \u043d\u0435 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Remote_procedure_call\">\u043d\u0430\u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u043e<\/a>: \u0434\u0440\u0435\u0432\u043d\u0438\u0435 DCOM \u0438 Corba, \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 SOAP \u0438 .NET Remoting, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 REST \u0438 AMQP (\u0434\u0430, \u044f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0435 RPC, \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0434\u0430\u0436\u0435 \u0432\u043e\u0442 <a href=\"http:\/\/habrahabr.ru\/post\/264181\/\">\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u043e\u043f\u0438\u043a<\/a> \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438, \u0442\u0435\u043c \u043d\u0438 \u043c\u0435\u043d\u0435\u0435 \u0432\u0441\u0451 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a RPC, \u0430 \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u0443\u0442\u043a\u0430 \u0438 \u043f\u043b\u0430\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0443\u0442\u043a\u0430 \u2014 \u043d\u0443, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A3%D1%82%D0%B8%D0%BD%D0%B0%D1%8F_%D1%82%D0%B8%D0%BF%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F\">\u0432\u044b \u0432 \u043a\u0443\u0440\u0441\u0435<\/a>). <\/p>\n<p>  \u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u043c \u043a\u043e\u043c\u0438\u043a\u0441\u0430, \u043d\u0430 \u0440\u044b\u043d\u043e\u043a \u043f\u0440\u0438\u0448\u0435\u043b Google \u0438 \u0437\u0430\u044f\u0432\u0438\u043b \u0447\u0442\u043e \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0449\u0451 \u043e\u0434\u0438\u043d, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 RPC. Google \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u2014 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0432 21-\u043e\u043c \u0432\u0435\u043a\u0435 \u0433\u043e\u043d\u044f\u0442\u044c \u043f\u0435\u0442\u0430\u0431\u0430\u0439\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0441\u0442\u0430\u0440\u043e\u043c\u0443 \u0438 \u043d\u0435\u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u043c\u0443 HTTP+REST, \u0442\u0435\u0440\u044f\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0431\u0430\u0439\u0442\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u043b\u0443\u043f\u043e. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u044f\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u00ab\u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0443\u0447\u0448\u0435\u00bb \u2014 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0432 \u0438\u0445 \u0441\u0442\u0438\u043b\u0435.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435, <a href=\"http:\/\/www.grpc.io\/\">gRPC<\/a>, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u00abgRPC Remote Procedure Calls\u00bb \u2014 \u043d\u043e\u0432\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u043e\u0442 Google. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0436\u0435 \u043e\u043d, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u00ab14 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u0432\u00bb \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442 \u043c\u0438\u0440 (\u043d\u0443 \u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u044c), \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0431\u0438\u043b\u0434 gRPC \u043f\u043e\u0434 Windows + Visual Studio (\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435 \u043c\u043d\u0435, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u2014 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0443\u043f\u0443\u0449\u0435\u043d\u043e \u0448\u0442\u0443\u043a 5 \u0432\u0430\u0436\u043d\u044b\u0445 \u0448\u0430\u0433\u043e\u0432, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442, \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438.  <\/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-264658","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264658","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=264658"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264658\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}