Coder Social home page Coder Social logo

哪位大佬知道服务注册用的为什么是postProcessBeforeInitialization,而不是postProcessAfterInitialization吗? about guide-rpc-framework HOT 3 OPEN

snailclimb avatar snailclimb commented on June 12, 2024
哪位大佬知道服务注册用的为什么是postProcessBeforeInitialization,而不是postProcessAfterInitialization吗?

from guide-rpc-framework.

Comments (3)

deepbreath373 avatar deepbreath373 commented on June 12, 2024

RpcReference是在After中来完成服务的调用,RpcReference是在Before中完成服务的注册。
就是为了让RpcService在被调用之前完成服务注册(就是在Before中实现),避免RpcReference在服务还没注册之前就调用了服务。
不知道对不对。:-)

from guide-rpc-framework.

MrZhang-badminton avatar MrZhang-badminton commented on June 12, 2024

+1,我也这么理解的

from guide-rpc-framework.

zhongyingxiang avatar zhongyingxiang commented on June 12, 2024

个人觉得应该要在服务启动之后才注册到zookeeper,不能提前暴露,不管放在postProcessBeforeInitialization还是postProcessAfterInitialization,都是不合适的。当然这个只是一个demo,不用考虑这个。

from guide-rpc-framework.

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.