Whenimporting deals using the Ecommerce bridge, a typical integration would insert data in quick succession in the following order.
- Sync contact
- Sync Deal
- Sync Deal line items
The idea is to add the contact, then associate the contact on the Deal, and then associate the line item with the Deal. Unfortunately the Ecommerce Bridge is not always fast enough to create the contact record before the deal is created and subsequently not fast enough creating the Deal before the Line item is created and errors are generated.
A solution is to send the contact, and then continuously query the API until the contact appears, then send the deal and continuously query the API until the deal appears, then send the line item.
Another solution is to build an artificial delay into the integration of 2 or 3 seconds every time an Ecommerce Bridge message is sent and hope the item has been processed.
In a situation where we have hundreds of deals syncing per day with multiple line items, this can create an integration that is very slow and very api intensive.
Are there any methods of improving this situation?