You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We investigated the speed of placing an order and found that API request to subscribe email to the Klaviyo takes a big part of the time.
In the middle, it's about 500ms and in our case, it's about 9% of the time placing an order.
I propose moving this functionality to the crone job or moving it to the "Thank you" page, which will not affect placing orders.
Expected behavior
API request to subscribe email to the Klaviyo will not affect placing orders speed.
Benefits
Placing an order will be faster in about 500ms.
In case Klaviyo has an outage, it not will have the ability to break a placed order.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Hi @iGerchak thanks for raising this! We currently observe on custom_fields_sales_address_save so we can pull out the custom values we throw into that section. We can take a look on we can optimize this pattern to save some ms!
@cykolln would still technically be prone to failure in the event of a transient network failure. My suggestion would be to leverage the kl_sync table to record the operation at the time the observer is fired and then have a cronjob run in the background to process the pending messages.
This way if transient network failures occur, it can retry in the background (up until a hard limit) without affecting the user experience.
Description
We investigated the speed of placing an order and found that API request to subscribe email to the Klaviyo takes a big part of the time.
In the middle, it's about 500ms and in our case, it's about 9% of the time placing an order.
I propose moving this functionality to the crone job or moving it to the "Thank you" page, which will not affect placing orders.
Expected behavior
API request to subscribe email to the Klaviyo will not affect placing orders speed.
Benefits
Placing an order will be faster in about 500ms.
In case Klaviyo has an outage, it not will have the ability to break a placed order.
Additional information
No response
The text was updated successfully, but these errors were encountered: