Giter Site home page Giter Site logo

geteway只有客户端例子,服务端怎么写呢?服务端监听的是8872,但是http请求的是9981端口 about rpcx-gateway HOT 4 CLOSED

rpcxio avatar rpcxio commented on May 27, 2024
geteway只有客户端例子,服务端怎么写呢?服务端监听的是8872,但是http请求的是9981端口

from rpcx-gateway.

Comments (4)

smallnest avatar smallnest commented on May 27, 2024

需要补充一个部署图。

from rpcx-gateway.

ztg1 avatar ztg1 commented on May 27, 2024

新手 表示运行不来的这个案例 求求大佬指点

from rpcx-gateway.

smallnest avatar smallnest commented on May 27, 2024

这个例子指你需要部署一个rpcx-gateway程序,通过它转发请求到后端的服务器。

不建议你这样使用,除非你开发一个自己的rpcx-gateway集群。

你可以通过http invoke的方式访问rpcx服务,你可以看http invoke的例子。对于非Go的其它编程语言,这是推荐的方式。

from rpcx-gateway.

ztg1 avatar ztg1 commented on May 27, 2024

谢谢大佬的提醒 我已经跑起来 1 先运行一个之前案例里一个rpc的服务; 2 运行这个gateway.go ; 3 通过http或者运行这个例子的examples下其它语言client即可看到效果;

from rpcx-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.