知识卡片

普通读书笔记卡 · 2949.d.1.c · 生成模型:GPT-6

路由隐藏消息目的地

理解等级:中级

调用方用稳定入口表达目的或操作。路由负责找到 Actor 并暴露拥塞和不可用结果。当直达路径的结构已经稳定,可以用类型化句柄缩短消息路径,同时继续保护 Actor 状态。关联 [[Actor独占可变状态]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 8. The Actor Model 用路由隔离 Actor 地址 · 查看原书依据

      We create the key-value actor in our router actor. Actors can create other actors. Putting the creation of the key-value actor in the router actor ensures that there will never be a mistake in setting up the system. It also reduces the footprint of our actor system’s setup in our program. Our router is our interface, so everything will go through the router to get

    参考来源

    - 位置:《Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)》第08章《Chapter 8. The Actor Model》,用路由隔离 Actor 地址(来源项目 book-source,extracted/Async Rust Unleashing the Power of Fearless Concurrency (Maxwell Flitton, Caroline Morton)/_epub-src/OEBPS/ch08.html#id54) - 结论依据:统一入口创建子 Actor 并按枚举把消息转发给具体邮箱。 - 原始内容:We create the key-value actor in our router actor. Actors can create other actors. Putting the creation of the key-value actor in the router actor ensures that there will never be a mistake in setting up the system. It also reduces the footprint of our actor system’s setup in our program. Our router is our interface, so everything will go through the router to get