According to the REST API docs , request are 2 requests/second in the standard plan,
My question is
What would happen if 50 customer added a product to the cart simultaneously ?
Would it by queued or return error or 404 or something
Here’s my code
function addProductToCart(){
fetch('/cart/add', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(addData)
})
.then(response => {
console.log(' product added')
})
.catch((error) => {
console.error('Error:', error);
});
}
Thanks in advance