Articles in this section

Optimize multiple connections in your Integration App flows to improve throughput

Using multiple connections in your Integration Apps is the easiest and most effective way to increase throughput across your flows.

Contents

Troubleshoot slow flows

Before adding connections, walk through the following checklist to try to narrow down the causes of any flows running below peak performance. 

The information-gathering steps (1-4) and the solutions provided proceed from simplest to the most complex. 

1. Identify the bottleneck

  • Is it happening with NetSuite, another endpoint, or both?
    • Try to isolate where the highest volume of data and most processing occurs.
    • Review the performance explanations and tips at Fine-tune integrator.io for optimal data throughput.
    • Are you retrieving additional fields, searches, files (or blobs) – or whole catalogs – unnecessarily?
  • Are the timestamps on your flow run dashboards indicating longer than expected flow steps?
    • Typically, exports run much faster than imports. A single request to retrieve a database table can quickly return 10 or 1,000 records. However, importing 1,000 updated records requires at least 1,000 separate requests, and sometimes many more.
    • Lookup steps are designed to send requests one at a time, not in parallel, and could run slowly, depending on the payload size.
  • Does the flow seem to be slowing down over time?
    • Once you’ve identified a likely culprit, compare that flow or flow step with historical jobs for the same Integration App.

2. Verify the existing configuration

  • Are the Export types set correctly?
    • Selecting Delta, as opposed to All, for example, has performance implications. 
  • Is a flow consistently slow, or might there be some temporary or cyclical factor at fault?
    • Monitor the integration’s performance for a day or two and then decide the next steps.

3. Try adding one new connection and adjusting the concurrency levels for each connection to that endpoint

  • Identify the priority of the respective flows within your business rules.
    • The slowest flows might not be the ones most in need of attention. Start by ordering your Integration App in relative importance for your company’s integration needs. The following list represents a typical hierarchy, from highest to lowest priority:
      1. Orders
      2. Inventory
      3. Fulfillments
      4. Billings 
      5. Product 
      6. Settlement
  • Create a second connection to that endpoint.
    • This secondary connection is dedicated to forming smaller queues of requests, as the result of sharing a lesser portion of the total concurrency available for the endpoint.
    • Replace the original connection for lower priority flows with this new connection.
    • Start small to isolate the variables, and then test the effects. 
  • Repeat this step, as needed, with a third connection – or more. 
    • Keep in mind that adding too many connections to the same account with low concurrency levels might have adverse effects on performance.

4. Borrow concurrency from the “main” connection

Note: This step is recommended when you have more than one Integration App installed in your integrator.io account or you have built custom flows within the App. Borrowing concurrency is an advanced option, requiring deliberate application and repeated testing.

  • If you are running multiple Integration Apps, repeat troubleshooting Step 3 to add a new connection to each Integration App.

Miscellaneous tips and tricks

  • Do not replace a connection within an integration flow that is in progress. If you replace the connection, the integration app automatically cancels all the jobs for the affected flow steps.
  • Celigo does not recommend replacing the connection for the following popular integration flows: 
    • Shopify
      • Shopify Order to NetSuite Order Add 
      • Shopify Order to NetSuite Cash Sale Add
      • Shopify Order to NetSuite Order/CashSale Add
    • Amazon
      • Amazon (MFN) Order to NetSuite Order Add
      • Amazon (FBA) Order to NetSuite Order Add
      • Amazon Settlement Report to NetSuite Custom Settlement Records
    • Square
      • Square Order to NetSuite Cash Sale 
  • If any of the integration flow belongs to a chain of flows (means two or more flows are auto-triggered one after another), it is recommended to maintain the same connection across all chained flows.
    • Order + customer sync in any eCommerce integration app.

Example: The customer sync is a low concurrency flow and order sync is a high concurrency flow. In this case, you should use the same connection for these two flows. If you use a different connection, the order sync fails and is blocked.

    • Estimate + customer sync in the Salesforce – NetSuite integration app.
  • In the Amazon – NetSuite integration app, it is recommended to run all the settlement integration flows with the same NetSuite connection.
  • In the Amazon – NetSuite integration app, if you wish to assign a secondary connection for a flow, it is recommended to select the appropriate flow from the Select flows to allot secondary NetSuite connection setting (Settings > General section > General subtab)
  • If you clone the Salesforce – NetSuite integration app after adding multiple connections, all the connections are cloned from the source tile to the destination tile.
  • If you have multiple stores/accounts/banks within an integration tile, any newly added connection is applicable for all the stores/accounts/banks.
  • For the following integration flows, if you add an additional lookup, import, or export flow step, it is recommended to use the same connection for all flow components (imports or exports). 
    • Shopify
      • Shopify Order to NetSuite Order Add 
      • Shopify Order to NetSuite Cash Sale Add
      • Shopify Order to NetSuite Order/CashSale Add
      • Shopify Payout Transactions to NetSuite Deposit
    • Amazon 
      • NetSuite Transfer Order to Amazon Inbound Shipment Plan
Notes
  • The primary connection or newly created connection cannot be deleted even if they are not in use or offline. The connections are deleted only while uninstalling the integration app.
  • There is no additional check for authenticating any store/account/bank. It is recommended to configure the connections with the correct NetSuite ID.

 

Examples for optimizing connections

The general guidelines, demonstrated below, can be summarized as follows:

  1. Create a secondary connection – called, for example: “NetSuite (Low Traffic).”
  2. Parcel out the total available NetSuite concurrency:
    1. Dedicate a generous share to your default NetSuite connection.
    2. Give the remaining concurrency to the new secondary connection.
  3. Replace the connection on all low-priority flows (all except Order flows) with NetSuite (low traffic).
  4. Borrow concurrency, if you have more than one Integration App.

Refer back to the data you gathered during the troubleshooting discovery to see how a solution might be tailored for your company’s apps, data, and flows. 

Example A: Single Integration App, giving priority to order-related flows

First, let’s examine a Shopify – NetSuite Integration App, with the default flows and connections:

Flows Shopify NetSuite Connection
All Connection S1
Concurrency level: 4
Connection N1
Concurrency level: 10

The connections are already set to the maximum concurrency allowed in this customer’s accounts. 

Suppose that the holiday season is expected to bring 50,000 new orders and 100,000 item updates per day. With 20,000 items listed in Shopify, the increased traffic will invariably slow down the inventory, pricing, and item flows.

One solution is to add connections, as follows, favoring traffic in the order-related flows and especially the heavy payloads in the Shopify imports:

Flows Shopify  NetSuite Connection

Order-related:

  • Orders
  • Auto-billing
  • Refunds, and so on
Connection S1
Concurrency level: 4
Connection N1
Concurrency level: 8

Item-related:

  • Inventory
  • Pricing
  • Item
  • Item fulfillment

Connection S2, to custom app
Concurrency level: 5

(Dedicated to Inventory import)

Connection N2
Concurrency level: 2

Connection S3, to custom app
Concurrency level: 5

(Dedicated to other item-related imports)

Example B: Multiple Integration Apps borrowing concurrency from a connection in the Integration App with the highest priority data

In the next scenario, the integrator.io customer has a total of four Integration Apps running daily, all querying NetSuite frequently:

  • Shopify – NetSuite
  • Amazon Seller Central – NetSuite
  • eBay – NetSuite
  •  3PL Central – NetSuite

The NetSuite account allows up to 15 concurrent requests, which are apportioned among the four connections, as follows:

Integration  NetSuite Connection
Shopify – NetSuite Connection N1
Concurrency level: 5
Amazon Seller Central – NetSuite Connection N2
Concurrency level: 5
eBay – NetSuite Connection N3
Concurrency level: 3
3PL Central – NetSuite Connection N4
Concurrency level: 2

The inefficiency in this configuration may not be apparent at first glance, but it has the effect of limiting the maximum concurrency for any one of the Integration Apps. Let’s assume that Shopify is most active, and the other flows don’t run as often. At no point can the Shopify flows access the full available concurrency; they can have only 5 concurrent requests at a time. The concurrency in the other connections is effectively wasted when not in use. 

The simplest solution is to give all the concurrency to one connection and distribute the rest by letting the connections in the remaining Integration Apps borrow from the “main” connection:

Integration  NetSuite Connection
Shopify – NetSuite Connection N1
Borrow concurrency from:
Concurrency level: 15
Amazon Seller Central – NetSuite Connection N2
Borrow concurrency from Connection N1
Concurrency level: *
eBay – NetSuite Connection N3
Borrow concurrency from Connection N1
Concurrency level:
3PL Central – NetSuite Connection N4
Borrow concurrency from Connection N1
Concurrency level:

* A connection that borrows concurrency from another cannot have its own concurrency level. That setting is disabled. 

Then, to give priority to certain flows and distribute concurrency where needed, the customer can add secondary connections for low-priority or low-volume flows or steps. Then, apportion the different levels from the two “pools” by borrowing from the two “main” connections.

Integration  NetSuite Connection Secondary NetSuite Connections
Shopify – NetSuite Connection N1
Borrow concurrency from:
Concurrency level: 10
Connection NB1
Borrow concurrency from:
Concurrency level: 5
Amazon Seller Central – NetSuite Connection N2
Borrow concurrency from Connection N1
Concurrency level:
Connection NB2
Borrow concurrency from Connection NB1
Concurrency level:
eBay – NetSuite Connection N3
Borrow concurrency from Connection N1
Concurrency level:
Connection NB3
Borrow concurrency from Connection NB1
Concurrency level:
3PL Central – NetSuite Connection N4
Borrow concurrency from Connection N1
Concurrency level:
Connection NB4
Borrow concurrency from Connection NB1
Concurrency level:

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.