首页 > 其他分享 >Why Orleans‘ actor is virutal

Why Orleans‘ actor is virutal

时间:2023-06-15 16:36:26浏览次数:42  
标签:Orleans activation actor actors virtual Virtual virutal Why


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
  1. Automatic instantiation
  • Activation: Orleans automatically create an actor
  • A request triggers an activation if the actor doesn’t exist
  • Unused actors are automatically reclaimed
  1. Location transparency
  • Applications don’t know where the physical actor is
  • Similar to virtual memory’s “paged out” and mapping
  1. 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.


标签:Orleans,activation,actor,actors,virtual,Virtual,virutal,Why
From: https://blog.51cto.com/u_16162321/6493183

相关文章

  • Docker network —— why network
      course:ManagingDockerNetworking|Pluralsight ManagingDockerNetworkingby NigelPoultonThiscoursewillteachyouhowtobuildandmanagecontainernetworks,andhowtoconfigureandmanageservicediscovery.     1.微服务=》网......
  • Why are Python strings immutable? 字符串是否可以改变
    实践1、pythons="abc"s+="34" #OK print(s)s[0]="k" # TypeError:'str'objectdoesnotsupportitemassignment   golang  s:="abc"  s+="456"  fmt.Println(s)  s[0]="......
  • 单链表——追加函数(有无懂的大佬解答一下why不加强制类型过不去)
    #include<bits/stdc++.h>usingnamespacestd;typedefstruct{intid;stringname;}Data;typedefstruct{ DatanodeData; structNode*nextNode;}CLtype;//追加链表CLtype*CLAddEnd(CLtype*head,Datanodedata){CLtype*node,*htemp; if(!(node=(CLt......
  • 解决 VirutalBox 安装 Alpine Linux 出现 Kernel Panic 的问题
    问题如图,使用默认配置安装AlpineLinux时总是会启动都启动不了,找了半天后终于在官方论坛上找到原因了。解决在设置里分配大于1个的cpu就行,如图我这里给的是2个,分配完毕后重新启动就正常了......
  • Why WA?
    Acwing292炮兵阵地状压dp#include<bits/stdc++.h>#defineintlonglong#defineitnintusingnamespacestd;intread(){intx=1,a=0;charch=getchar();while(ch>'9'||ch<'0')x=(ch=='-')?-1:x,ch=getchar......
  • 【Node】coderwhy node 项目视频中 jwt.sign 没有返回值的问题
    在写登录接口时,想生成token用于登录验证,但是在使用jwt生成token(jwt.sign())时却没有返回token,服务端没有报错但是使用postman验证接口时却没有得到正确的请求结果。如果你在使用openssl生成的private.key时是和coerwhy老师一样1024的话就会报错解决方法:最好是生成20......
  • [CMU15-418] Lecture1 Why Parallelism
    本系列文章为15-418/15-618:ParallelComputerArchitectureandProgramming,Fall2018课程学习笔记课程官网:参考文章:相关资源与介绍:Theme1Theme2Theme3SummaryILP(instructionlevelparallelism)指令级并行不能一直增长,因为一个程序中出现若干不相关指令......
  • WHY OVS?
    了解OVS绕不过SDN的发展,因为OVS的"O"就是openflow协议。2006年,SDN诞生于美国GENI项目资助的斯坦福大学CleanSlate课题,斯坦福大学NickMcKeown教授为首的研究团队提出了Openflow的概念用于校园网络的试验创新。后续基于Openflow给网络带来可编程的特性,SDN(softwaredefinenet......
  • 5why 分析法
    什么是5why分法法?所谓5why分析法,又称“5问法”,也就是对一个问题点连续以5个“为什么”来自问,以追究其根本原因。虽为5个为什么,但使用时不限定只做“5次为什么的探讨”,......
  • Why is redux state immutable???
    众所周知,redux的三项原则之一有stateisread-only,即immutable.为了保证immutable,所以每次reducer都要return一个newobject,作为新的state.但为什么state一定要......