<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTTP Traffic Access on Apache Dubbo</title><link>https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/</link><description>Recent content in HTTP Traffic Access on Apache Dubbo</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/index.xml" rel="self" type="application/rss+xml"/><item><title>Access Ingress Traffic</title><link>https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/http_triple/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/http_triple/</guid><description>&lt;h2 id="1-preparation">1. Preparation&lt;/h2>
&lt;ul>
&lt;li>kubectl&lt;/li>
&lt;li>A k8s cluster, with kubeconfig configured&lt;/li>
&lt;/ul>
&lt;h2 id="2-calling-triple-application-via-gateway-using-http-protocol">2. Calling Triple Application via Gateway using HTTP Protocol&lt;/h2>
&lt;p>The Dubbo-go-pixiu gateway supports calling Dubbo clusters in GO/Java. In the Dubbo-go 3.0 scenario, we can request the pixiu gateway via HTTP protocol from outside the cluster, allowing protocol conversion at the gateway layer to further call Dubbo-go services inside the cluster.&lt;/p>
&lt;p>&lt;img alt="image.png" src="https://deploy-preview-3202--dubbo.netlify.app/imgs/docs3-v2/golang-sdk/tasks/pixiu/http_triple/triple-pixiu.png">&lt;/p>
&lt;p>The path for users to call Dubbo-go services is http://$(app_name)/$(service_name)/$(method).&lt;/p></description></item><item><title>Exposing Dubbo-go services using Pixiu</title><link>https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/pixiu-nacos-triple/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-3202--dubbo.netlify.app/en/overview/mannual/golang-sdk/tutorial/gateway/pixiu-nacos-triple/</guid><description>&lt;p>The Dubbo-go-pixiu gateway supports calls to Dubbo clusters in GO/Java. In the scenario of Dubbo-go 3.0, we can request the Pixiu gateway over HTTP protocol outside the cluster, perform protocol conversion at the gateway layer, and further call the Dubbo-go services inside the cluster.&lt;/p>
&lt;p>&lt;img alt="img" src="https://deploy-preview-3202--dubbo.netlify.app/imgs/docs3-v2/golang-sdk/samples/pixiu-nacos-triple/triple-pixiu.png">&lt;/p>
&lt;p>The path for users to call Dubbo-go services is http://$(app_name)/$(service_name)/$(method).&lt;/p>
&lt;p>For example, if a proto file has the following definition:&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-protobuf" data-lang="protobuf">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#719e07">package&lt;/span> org&lt;span style="color:#719e07">.&lt;/span>apache.dubbo.quickstart.samples;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#268bd2">service&lt;/span> UserProvider {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#719e07">rpc&lt;/span> SayHello (HelloRequest) &lt;span style="color:#719e07">returns&lt;/span> (User) {}
&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;span style="display:flex;">&lt;span>&lt;span style="color:#268bd2">message&lt;/span> &lt;span style="color:#268bd2">HelloRequest&lt;/span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#dc322f">string&lt;/span> name &lt;span style="color:#719e07">=&lt;/span> &lt;span style="color:#2aa198">1&lt;/span>;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>And when the dubbo-go service starts, it configures the application name as my-dubbogo-app in the dubbogo.yml:&lt;/p></description></item></channel></rss>