<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interoperability with gRPC on Apache Dubbo</title><link>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/interop-grpc/</link><description>Recent content in Interoperability with gRPC on Apache Dubbo</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/interop-grpc/index.xml" rel="self" type="application/rss+xml"/><item><title>Intercommunication with gRPC applications</title><link>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/interop-grpc/call_grpc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-3199--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/interop-grpc/call_grpc/</guid><description>&lt;h2 id="1-introduction">1. Introduction&lt;/h2>
&lt;p>The triple protocol is 100% compatible with gRPC. This example demonstrates using dubbo-go to develop applications that interoperate with gRPC. You can view the &lt;a href="https://github.com/apache/dubbo-go-samples/tree/main/rpc/grpc" target="_blank">complete example source code&lt;/a> here.&lt;/p>
&lt;h2 id="2-how-to-intercommunicate">2. How to Intercommunicate&lt;/h2>
&lt;p>The Triple protocol of Dubbo-go is compatible with the gRPC protocol. When creating the server, you can set &lt;code>protocol.WithTriple()&lt;/code> to use the Triple protocol.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-go" data-lang="go">&lt;span style="display:flex;">&lt;span>	srv, err &lt;span style="color:#719e07">:=&lt;/span> server.&lt;span style="color:#268bd2">NewServer&lt;/span>(
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> server.&lt;span style="color:#268bd2">WithServerProtocol&lt;/span>(
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> protocol.&lt;span style="color:#268bd2">WithPort&lt;/span>(&lt;span style="color:#2aa198">20000&lt;/span>),
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> protocol.&lt;span style="color:#268bd2">WithTriple&lt;/span>(),
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> ),
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> )
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="3-example">3. Example&lt;/h2>
&lt;h3 id="31-server-introduction">3.1 Server Introduction&lt;/h3>
&lt;h4 id="server-proto-file">Server proto File&lt;/h4>
&lt;p>Source file path: dubbo-go-sample/rpc/grpc/proto/greet.proto&lt;/p></description></item></channel></rss>