Skip to content
New issue

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

如何能Subscribe并处理来自Master的自定义Topic #179

Closed
hua-pan opened this issue Oct 14, 2022 · 6 comments
Closed

如何能Subscribe并处理来自Master的自定义Topic #179

hua-pan opened this issue Oct 14, 2022 · 6 comments

Comments

@hua-pan
Copy link

hua-pan commented Oct 14, 2022

需要Subscribe某个来自Master的自定义的Topic,并用自定义Fn处理,目前好像不支持?

@myzhan
Copy link
Owner

myzhan commented Oct 14, 2022

你是指 custom_messages 吗?现在不支持,不过要支持的话也不是很难,因为已经有 event 机制。

@hua-pan
Copy link
Author

hua-pan commented Oct 15, 2022

@myzhan 是的,想从master发些message给boomer worker去消费,希望能支持哈

@myzhan
Copy link
Owner

myzhan commented Oct 18, 2022

初步看了一下,因为 python 这个动态类型用 go 来实现比较麻烦。打算只允许传输固定的 data 类型,这样可以吗?

@hua-pan
Copy link
Author

hua-pan commented Oct 19, 2022

初步看了一下,因为 python 这个动态类型用 go 来实现比较麻烦。打算只允许传输固定的 data 类型,这样可以吗?
@myzhan 当然可以哈,目的就是收到massage,boomer这边golang能有办法解析即可,感谢大佬!

@myzhan
Copy link
Owner

myzhan commented Oct 20, 2022

支持了,更新一下,参考 example 试试。

@hua-pan
Copy link
Author

hua-pan commented Oct 20, 2022

可以了,感谢!

@hua-pan hua-pan closed this as completed Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants