Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Service Fabric 很陌生。
如果我打开状态管理器事务,并且在其中进行网络 I/O(非服务结构 Web 服务调用),则提交事务。想知道出现的问题,是否有更好的方法来使用 Service Fabric Reliable 服务?
调用外部 Web 服务可能需要一些时间(例如,如果它很忙或不可用)。因此,尽量避免对外部系统的调用超出事务范围,以避免长时间锁定。因为长锁会导致超时错误。
因此,如果可能,首先进行服务调用,然后执行事务,反之亦然。
(只是为了确定:在事务中嵌套 Web 服务调用时,您不会得到分布式事务)