dongxinm279890 2019-08-21 11:05
浏览 96

如何在Actor系统中为Kafka使用者建模

I have been looking into designing an actor system using proto actor and Go.

I would like to include a kafka consumer, but I have been trying to understand how the communication would work with the parent/child relationship with the data from kafka.

It makes sense to me that i should have a child actor that is a kafka consumer, also a kafka parent that managed how many consumers to create based on partitions.

enter image description here

The idea is the unbound kafka data consumed is then passed to Group 1/2 actors which would send data to child actors, the data received from kafka would contain an ID which is relevant to only one child actor and that child would update its state.

My question is how would the kafka child actors data be sent to Group 1/2 actors? Should it be a defined "route" and Group 1/2 actors broadcast the messages to all children, then the children filter on id? Or should the data propagate back up the hierarchy to the manager and then to Group 1/2?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?