dro7152 2017-11-12 18:34
浏览 63
已采纳

Akka的路由器是否类似于Go的select?

I read that Akka library has something called "Routers" which routes messages to their routees (who will receive the messages). Is this similar to selective communication in Go which uses the select statement?

  • 写回答

1条回答 默认 最新

  • donglu3184 2017-11-13 04:17
    关注

    It is similar in abstract terms and general understanding but very different if you compare with Akka router.

    As you are trying to compare a language feature with a framework feature here is an explantation.

    Go uses select over channels and this feature is a basic building block which you can use to extend routing and add many features which Akka has. Try looking into some fantastic GitHub libraries.

    https://github.com/avelino/awesome-go#routers

    Akka itself is huge and very well written. Akka router has many other options which includes routing strategy and remote routing as well.

    go-select is a language feature which makes it easier to implement routing feature if you compare with other languages (readers-no language war please!)

    Thanks

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路