Akka Path Concept

1. Path vs Reference

Quote from official doc: An actor reference designates a single actor and the life-cycle of the reference matches that actor’s life-cycle; an actor path represents a name which may or may not be inhabited by an actor and the path itself does not have a life-cycle, it never becomes invalid. You can create an actor path without creating an actor, but you cannot create an actor reference without creating corresponding actor.

2. Logical Path vs Physical Path

logical path indicates the parental supervision relationship, regardless of where the parent/child is. With logical path you have a clear parental hierarchy view.

physical path indicates where the residing actor system is, especially for remote parent/child relationship. With physical path you have a clear actor physical distribution view.

3. Relative Path vs Absolute Path


4. Path vs Address

Each actor path has an address component, describing the protocol and location by which the corresponding actor is reachable, followed by the names of the actors in the hierarchy from the root up.

so, address seems equal to protocol + IP + port.

path = address + actor-hierarchy

5. actorOf vs actionSelection


References

[1] akka official documentation 2.4.1 (Java). http://doc.akka.io/docs/akka/current/general/addressing.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值