Why Orleans‘ actor is virutal

Posted 金庆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Why Orleans‘ actor is virutal相关的知识,希望对你有一定的参考价值。

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.

以上是关于Why Orleans‘ actor is virutal的主要内容,如果未能解决你的问题,请参考以下文章

初探奥尔良(Orleans)

Orleans简介

如何评价微软的orleans框架

.NET 云原生架构师训练营(基于 OP Storming 和 Actor 的大型分布式架构一)--学习笔记

Learn Orleans 03 - 无锁

Learn Orleans 02 - Hello World