We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@lonng 消息默认转发给全局携程处理,如何根据业务请求自定义携程。有没有示例
The text was updated successfully, but these errors were encountered:
@zhaocy 可以把消息转发给自定义的携程处理,只需要对应的服务实现 Scheduler 接口就可以了。 参考 https://github.com/lonng/nano/blob/master/cluster/handler.go#L452
Sorry, something went wrong.
简单来说就是注册 service 的时候为这个 service 指定一个 scheduler name (https://github.com/lonng/nano/blob/master/component/options.go#L50),然后讲这个 scheduler 绑定要 session。
然后对应服务的消息就会让这个 scheduler 调度,而不是全家调度。
No branches or pull requests
@lonng 消息默认转发给全局携程处理,如何根据业务请求自定义携程。有没有示例
The text was updated successfully, but these errors were encountered: