Discover the true costs of ecommerce platforms in our free guide.
See how industry leaders succeed with Virto.
Boost ecommerce with advanced marketing.
When your infrastructure only has few products, peer-to-peer integration can seem like a light way to connect everything.
Unfortunately, as the company business grows, the integrations won’t stay light for long. Many organizations have learned the hard way, an infrastructure based on P2P integration quickly becomes unmanageable, brittle, and damaging to both the IT budget and the organization’s ability to meet current and changing business needs.
To avoid P2P integration disadvantages, Virto Commerce recommends using integration middleware approach.
Integration middleware
Using middleware for integrating Virto with other applications is a good practice that is normal for enterprises and middle-size companies rather than point-to-point integrations.
Reasons are obvious:
The next important point is to define which side initiates the integration:
Let’s have a look at both scenarios in detail.
Assume, the customer has placed an order. The ecommerce system saves it and displays a “Thank you” message. Then the ecommerce system sends an async event (For example Webhook) to trigger the Sync New Order integration middleware. The integration middleware delivers a new order to the ERP, receives the confirmation and updates the delivery status in the ecommerce system.
To validate order details, we need to have the actual price and stock information. The ecommerce application periodically triggers the integration application to load a new price and inventory. The integration application receives an updated price and inventory and delivery to the ecommerce asynchronously.
The eCommerce initiates integrations
Note: The event can be replaced with the Schedule trigger. For example, you can synchronize the ecommerce backend and the ERP every 5 minutes.
Benefits
Disadvantages
Now both systems can work independently and asynchronously. The middleware solution can change the decision criteria without making any code changes or interrupting the flow of messages. Interfacing with multiple ERP systems can be challenging because you need to add a new step for each ERP.
Again, the customer has placed an order. The ecommerce system saves it, displays a “Thank you” message. Async event can be sent to the ERP for information. Everything looks the same as in the previous scenario.
The ERP initiates the synchronization process based on its own business rules, resource utilization, etc. Do call the integration middleware.
The military “Fire-and-forget” principle for the modern weapon is a good example of how ERP can send new prices or inventory. Update price and inventory processes are initiated from ERP and asynchronous. Integration middleware is responsible to deliver the update to an ecommerce system.
ERP initiates integrations
Advantages
Disadvantages
Now both systems can work independently and asynchronously. The middleware solution can change the decision criteria without making any code changes or interrupting the flow of messages. But ERP works as a primary trigger for all operations. The development effort is required on the ERP side and custom logic to track the last number for update orders, price and inventory.
In this post, we have reviewed different approaches how-to integrate ecommerce solutions and ERP.