将 Azure Function 微服务组装到事务中有哪些策略?

What strategies are there for assembling Azure Function microservices into transactions?

将 Azure Functions 视为表达小块业务逻辑的一种方式,以便将它们组装成 'units of work.' 也许通过创建调用其他函数的新函数,也许通过逻辑应用程序,不确定。一般来说,这些函数的集合如何作为事务执行...可以传递数据库上下文和服务总线事务吗?

What strategies are there for assembling Azure Function microservices into transactions?

对于微服务来说,最终一致性比事务性强一致性更适合。关于微服务事务的上下文和解决方案,您可以关注link.

Compensating Transaction pattern

云中的应用程序运行 频繁修改数据。这些数据可能分布在不同地理位置的各种数据源中。为避免争用并提高分布式环境中的性能,应用程序不应尝试提供强事务一致性。相反,应用程序应该实现最终一致性。在此模型中,典型的业务操作由一系列独立的步骤组成。

can db contexts and service bus transactions be passed around?

这些事务的工作级别与服务级别事务不同。 Compensating Transaction 只是微软推荐的一种模式。我们需要自己去实现它,让它适合你的服务。