問題文
An application receives claims over HTTP and must not lose a claim even if the downstream processing fails halfway. HTTP does not take part in transactions. Which design meets the requirement?
選択肢
- Let the receiving flow do the work inside a try scope that begins a transaction, and return a failure to the caller when an operation in that scope fails.
- Let the receiving flow only put the claim on a transactional queue, and start a transaction from a listener on that queue in a second flow that does the work.
- Let the receiving flow write the claim to a log file for later replay, and return a success to the caller as soon as that line has been written to disk.
- Let the receiving flow retry the downstream work until it succeeds, and return a success to the caller only after the last retry of that work has finished.