Elan Qisthi

Senior Backend Engineer · Go, Java & Distributed Systems

Open to Relocation

Cutting Out the Middleman: Direct NetSuite-to-Go ERP Sync

AlloFresh · Senior Product Engineer · Jan 2025 – Jul 2025 · Go, NetSuite, SuiteScript

Context

At AlloFresh (online grocery e-commerce), our in-house Go backend services relied on ERP record updates from NetSuite—covering operational and financial records such as ledger entries, invoices, and inventory.

When I joined, synchronizing those records depended on a paid third-party integration vendor. The vendor's primary role was listening to NetSuite events and forwarding them so our internal Go services could consume them.

That middleman layer introduced three headaches:

  1. Recurring vendor spend for integration plumbing we could own in-house.
  2. An extra network and operational hop, making sync delays and failures harder to trace.
  3. Opaque ownership, since the integration logic lived outside our engineering team's codebase.

Building the Direct Integration

Instead of treating NetSuite as a black box, I dug into NetSuite's native scripting capabilities (SuiteScript) to understand how record changes were captured and dispatched.

BEFORE:
  NetSuite ERP ──▶ [ Paid 3rd-Party Vendor ] ──▶ In-House Go Services

AFTER (Migrated Flows):
  NetSuite ERP (In-House SuiteScript Hook) ──▶ In-House Go Services (Real-Time Sync)

I built native SuiteScript event hooks directly inside NetSuite to push ERP record updates straight to our in-house Go services. Delivery failures were handled internally within the script and surfaced via monitoring whenever an error occurred in the event hook.

What Changed

  • Core flows migrated in-house: While the third-party vendor was not completely retired during my tenure, migrating key ERP sync flows onto the direct SuiteScript-to-Go path proved out the in-house approach and reduced reliance on vendor middleware.
  • Simpler data flow: Removing the external middleware hop on migrated flows made sync issues straightforward to trace between NetSuite and Go.
  • Real-time synchronization: Ledger, invoice, and inventory changes propagated directly into our internal services as events fired.

Turning a Solo Fix Into Team Capability

A script that only one engineer understands quickly becomes a maintenance liability. To make in-house NetSuite development sustainable across the team, I documented NetSuite scripting guidelines and technical assessment standards so other engineers could safely build, review, and maintain future NetSuite integrations.