Giter Club home page Giter Club logo

Comments (4)

tanhaipeng avatar tanhaipeng commented on May 5, 2024

内部的broker终于开源了👍

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

Routing的逻辑已经调整为如下格式:

group:service_full_name:version
m=method_name

如果后续基于路由做hashcode化,只需要hash第一个路由key就可以啦。

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

当然的路由key格式如下,主要是Group + Service + Method + version,样例如下:

dc1!com.xxx.user.UserService.findUserbyId:1.0.0

在使用新的高性能路由规则时,会进行如下转换:

  • dc1!com.xxxx.user.UserService:1.0.0 -> xxxx
  • com.xxxx.user.UserService.findUserbyId -> yyyy

第一个int表示路由,第二个int表示目标函数ID,使用两个int完成匹配。 考虑到logging和metrics的需求,添加一个byte[] comment用于记录,格式为rounting text

新的路由MimeType为 ’message/x.rsocket.binary-routing.v0‘,metadata类为 BinaryRoutingMetadata

from alibaba-rsocket-broker.

linux-china avatar linux-china commented on May 5, 2024

https://github.com/alibaba/alibaba-rsocket-broker/wiki/RSocket-Routing

from alibaba-rsocket-broker.

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.