we’re using the carts-rest-api module for Glue.
We’re currently experiencing the loss of data, if a client fires multiple parallel requests to PATCH
/carts/<cartId>/items/<sku> endpoint. More precise, it’s like some requests are beeing ignored, as the updated cart does not contain the updated quantities for some items.
As there’s no “lock” on the cart, it happens that parallel patches are applied at the same time.
Internally Spryker works with a “clone” of the current cart and writes it back to the session, once all operations are completed.
Due to this, e.g. the second request will start without the updated data of the first request.
Once finished, it immediately overwrites the changes from the first request.
Can you please confirm this bug?
Additionally, as far as we know, there currently is no support for “bulk” updates on the cart, is this correct?