Giter Site home page Giter Site logo

Java服务注册成功,但在zookeeper里没有显示该节点 Java service registration was successful, but the node was not displayed in zookeeper about sofa-rpc-java-demo HOT 8 CLOSED

gxcsoccer avatar gxcsoccer commented on July 17, 2024
Java服务注册成功,但在zookeeper里没有显示该节点 Java service registration was successful, but the node was not displayed in zookeeper

from sofa-rpc-java-demo.

Comments (8)

coco723 avatar coco723 commented on July 17, 2024

@gxcsoccer

from sofa-rpc-java-demo.

gxcsoccer avatar gxcsoccer commented on July 17, 2024

你用的是 sofa-rpc 吧

from sofa-rpc-java-demo.

coco723 avatar coco723 commented on July 17, 2024

@gxcsoccer

  1. node服务和Java服务注册到zookeeper名称为什么是相同的?不应该是以服务名称注册的吗?这个地方不明白~
  2. node作为提供者,Java作为消费者的时候,Node服务一开始的入口是ProtoService.proto,然后调rpc目录下的ProtoService的echoObj方法吗?这个能详细介绍下吗
    17_31_28__01_24_2019
    从图上是可以看出提供者和消费者都是在sofa-rpc下,但我在两个服务都没有找到sofa-rpc的名称,不明白

from sofa-rpc-java-demo.

gxcsoccer avatar gxcsoccer commented on July 17, 2024

@cocoyh 没看懂你的问题

  1. node 和 java 暴露服务没什么区别,只要暴露的服务一样,注册到 zk 的名字就一样
  2. ProtoService.proto 只是一个接口定义,有了接口定义,提供者知道该提供什么接口,消费者知道该怎么调用。根据消费者调用的请求(包含服务名、方法名、参数等)来路由到具体的方法

from sofa-rpc-java-demo.

coco723 avatar coco723 commented on July 17, 2024

@gxcsoccer 第二个问题懂了,可第一个问题还是不太懂,node和Java服务中都没有看到sofa-rpc,zookeeper这里为什么是sofa-rpc?
09_53_51__01_25_2019

from sofa-rpc-java-demo.

gxcsoccer avatar gxcsoccer commented on July 17, 2024

@gxcsoccer 第二个问题懂了,可第一个问题还是不太懂,node和Java服务中都没有看到sofa-rpc,zookeeper这里为什么是sofa-rpc?

这个是约定,你用 sofa-rpc,那就是 sofa-rpc,如果你用 dubbo,那就是 dubbo

from sofa-rpc-java-demo.

coco723 avatar coco723 commented on July 17, 2024

@gxcsoccer 懂了,谢谢~
sofa-rpc框架与淘宝的HSF、dubbo有什么关系和区别?因为网上差了很多资料,好像都没怎么说明白,关于HSF,网上资料感觉也是很少,sofa-rpc感觉文档资料比较完善,很赞~

希望大老能再出一个以HSF框架的java-rpc-demo,与node互相调用~

from sofa-rpc-java-demo.

gxcsoccer avatar gxcsoccer commented on July 17, 2024

@cocoyh 外部不用关注 HSF 了,就是 dubbo

from sofa-rpc-java-demo.

Related Issues (1)

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.