![]() ![]() MONGOOSE START MONGODB SERVER UPDATEStep 4: if the application fails to update the quantity in stock of products, users could have a bad experience since they can order an unavailable product.Step3: If the payment execution succeeds but the system fails to update the status (wrong API response parsing, bad update query, etc.), we have an order already paid, but the user receives a message asking him to pay again.Step 2: If the payment execution fails (uncatched errors, service unavailable, etc.), we have an order created with payment status unknown, meaning if the user checks out the payment, he will have a message like, "We are processing your payment." for minutes, hours, days if we don't change the status manually.Step 1: If the application fails to create the order (duplicate order reference, insufficient permissions, etc.), the application will break the other steps will not continue.Let's analyze our system if we have a failure at each step: On the sequence diagram above, five steps constitute the order workflow. Here is the sequence diagram of the workflow to implement: Sequence diagram of the order workflow The importance of transaction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |