简体   繁体   English

Azure Service Fabric Actor与服务的可重入

[英]Azure Service Fabric Actors Reentrancy with Services

When using stateful services and actors in service fabric, the documentation states that actors have an reentrancy policy allowing actors to go from ActorA to AcotrB and back to ActorA in one call context chain. 当在服务结构中使用有状态服务和参与者时,文档指出参与者具有重入策略,允许参与者在一个调用上下文链中从ActorA到AcotrB,再回到ActorA。 As described here here 如此处所述

But how does this interact with services? 但这如何与服务交互? Eg. 例如。 can i do something like: Service1 > Actor1 > Service2 > Actor2 > Service1 > Actor1 ...? 我可以做什么:Service1> Actor1> Service2> Actor2> Service1> Actor1 ...? Or will the call context be lost when contacting a service? 还是联系服务时呼叫上下文会丢失?

Re-entrancy only applies between actors. 重新入场仅适用于演员之间。 In your example, the second invocation from Service1 to Actor1 will block and eventually time out. 在您的示例中,从Service1到Actor1的第二次调用将阻塞,并最终超时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM