Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

How and where does a corda node (Y1) leave a message for a backup node (Y2) so that Y2 can resume the flow that got interrupted because Y1 went down?

When in a hot-cold corda deployment where say the nodes are: c1 (PartyA), c11 (PartyA backup), c2 (PartyB) Now if a flow has been initiated by c2 and c1 is responding but it goes down while doing that, then where, if at all anywhere, is the message stored for c11 to read from and know what c1 couldn't complete and hence should be attempted again.

More context about the above setup -

  1. There was no shared database setup (this can be the only other thing that c1 puts the info at for c11 to continue but then what if before committing even that it goes down)
  2. I used an infinite while loop in the responder's call() method to simulate a stuck scenario

I used to think it was the artemis folder but after mounting a common network file storage in the artemis folder of c1 & c11, when c1 was put down c11 still did not attempt to initiate the responder again. Please do let me know if that while loop is an incorrect way to do things, I'll then change that first before continuing. It really maybe that a checkpoint is required to be saved for c11 to pick up and resume but then the question would be that what if c1 goes down before saving the first checkpoint.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...