当使用requires_new属性的几个方法通过服务间通信或编排在同一逻辑工作单元内调用时,该属性就会出现问题。
Problems occur with the REQUIRES_NEW attribute when methods using it are invoked within the same logical unit of work via inter-service communication or through orchestration.
其原因还是因为我们假设您编排的是成熟服务,所以这里不需要任何复杂的集成逻辑。
The reason is, again, because we're assuming that you are choreographing mature services and there is no need for any complex integration logic.
您可以使用它们定义业务逻辑的步骤,协调和编排其他服务以及与人员有关的活动。
You can use them to the define steps of your business logic, to coordinate and choreograph other services, and to involve people.
应用推荐