IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Why Orleans\' actor is virutal

    金庆发表于 2021-11-02 07:27:00
    love 0

    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.

     

     



    金庆 2021-11-02 15:27 发表评论


沪ICP备19023445号-2号
友情链接