Concerns about Medusa 2.x workflows when running large scale applications #14835
Unanswered
khanh-to-niteco
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Medusa team,
We have workflows in many places in Medusa 2 core framework. This raises several questions:
1. Workflow compensation:
2. Concurrency issues:
Example: cart workflow with inventory check. When we have only few items in inventory, and many requests to add items to cart run at the same time, all these requests could get confirmation that there is enough stock, but actually only the first request should get that confirmation.
This may not be a real issue in a particular application, but just to illustrate the point.
Workflows do have benefits when used in the right context:
But since workflows in Medusa 2 framework core don't have our business requirement context, it may not work well under load.
Please give your thoughts, thanks.
Beta Was this translation helpful? Give feedback.
All reactions