eventuate-tram-sagas-examples-customers-and-orders icon indicating copy to clipboard operation
eventuate-tram-sagas-examples-customers-and-orders copied to clipboard

I don't think it's need distributed transaction in this case

Open WestCoastBaby opened this issue 6 years ago • 1 comments

It just involved two service,and Customer-Server don't need to excute DQL.It is my understanding that 2 or more database need to execute DQL than we need distributed transaction. Furthermore,If I need compensate and action in every step,and there are over 2 step.What am I supposed to write SagaDefinition like below?

private SagaDefinition<CreateOrderSagaData> sagaDefinition = step() .withCompensation(this::reject) .step() .invokeParticipant(this::reserveCredit) .step() .invokeParticipant(this::approve) .build();

WestCoastBaby avatar Jan 23 '19 03:01 WestCoastBaby

I figure out the second Q,(#^.^#) image

WestCoastBaby avatar Jan 23 '19 03:01 WestCoastBaby