金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  418 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks

Why Orleans' actor is virutal

(Jin Qing's Column, Nov. 2, 2021)

Virtual Actor is a concept invented by Microsoft Orleans, which is a framework of distributed actor.

Orleans: Distributed Virtual Actors for Programmability and Scalability describes the virtual programming model.

The virtual actor is analogous to virtual memory. Virtual actors are mapped to physical arctors instances in the running servers. Virtualization of actors in Orleans has 4 facets:

  1. Perpetual existence

    • Actors always exist, virtually
    • Actors can not be created or destroied explicitly
    • Server failure does not affect the actors' existence
  2. Automatic instantiation

    • Activation: Orleans automatically create an actor
    • A request triggers an activation if the actor doesn't exist
    • Unused actors are automatically reclaimed
  3. Location transparency

    • Applications don't know where the physical actor is
    • Similar to virtual memory's "paged out" and mapping
  4. Automatic scale out

    • 2 activation modes:

      • Single activation (default): Only one simultaneous actor is allowed

      • Stateless worker: Many activations of an actor are created

        • to increase throughput

Actor viruliaztion greatly simplifes the programming, since it gets rid of the burden of actor lifecycle control.

 

 

posted on 2021-11-02 15:27 金庆 阅读(74) 评论(0)  编辑 收藏 引用 所属分类: 9. 其它

只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理