Skip to main content
Solved

When calling the api to update the customer attribute, the order is reversed.


When calling the api to update the customer attribute, the order is reversed. My first request was updated later than the later request, resulting in an attribute update error. Is there any good solution?

Best answer by Penny

Hi Jones!

Typically API calls are processed in order, but we do not guarantee that things will be processed in the exact order they are sent. As our application has multiple services if one happens to have a queue of things being processed it's possible that they could be processed slightly out of order.

If you're pushing attribute updates via multiple calls in quick succession, you could see a case where the first request may not have been completed before the second one was processed. 

In such scenarios, if the order of the attribute update is important, we would recommend throttling the requests to provide sufficient time for the first request to be processed. 

Hopefully this helps to clarify! ðŸ˜Š

 

 

View original
Did this topic help you find an answer to your question?

2 replies

Penny
  • 133 replies
  • Answer
  • May 8, 2023

Hi Jones!

Typically API calls are processed in order, but we do not guarantee that things will be processed in the exact order they are sent. As our application has multiple services if one happens to have a queue of things being processed it's possible that they could be processed slightly out of order.

If you're pushing attribute updates via multiple calls in quick succession, you could see a case where the first request may not have been completed before the second one was processed. 

In such scenarios, if the order of the attribute update is important, we would recommend throttling the requests to provide sufficient time for the first request to be processed. 

Hopefully this helps to clarify! ðŸ˜Š

 

 


  • Author
  • Novice
  • 9 replies
  • May 8, 2023
Penny wrote:

Hi Jones!

Typically API calls are processed in order, but we do not guarantee that things will be processed in the exact order they are sent. As our application has multiple services if one happens to have a queue of things being processed it's possible that they could be processed slightly out of order.

If you're pushing attribute updates via multiple calls in quick succession, you could see a case where the first request may not have been completed before the second one was processed. 

In such scenarios, if the order of the attribute update is important, we would recommend throttling the requests to provide sufficient time for the first request to be processed. 

Hopefully this helps to clarify! ðŸ˜Š

 

 

 

Thank you for your suggestion, I have solved the probability of this problem by delaying the call


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings