Solved

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

  • 6 May 2023
  • 2 replies
  • 34 views

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?

icon

Best answer by Penny 8 May 2023, 09:05

View original

2 replies

Userlevel 4

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! 😊

 

 

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