VAUVA — Stock sync engine
The same brand sells 150–230 units a day on Trendyol and a few a day on its own site, from one shared stock.
Selling the same item on two channels risks selling the last unit twice. We built a sync engine that copies Trendyol’s stock to Shopify, passes site sales back, and reports everything on a phone-first console.
The challenge
- 01
Trendyol is the main channel and the master for stock, so Shopify must follow it without ever overselling.
- 02
A site sale has to reduce Trendyol’s stock too, without the same change ever being applied twice.
- 03
Trendyol’s stock list shows a write about a minute late, and a bad or empty read must never wipe the shop’s stock.
- 04
The owner is not a developer: the tool has to be understandable on a phone, with a clear off switch.
What we built
Two-way sync every 15 minutes
Shopify stock is set to Trendyol’s minus a small buffer, so the last unit is never sold twice. Site sales are passed back to Trendyol.
Approve before anything is written
Products match only on an identical barcode, then wait for a person to approve them. Suspicious cases are reported, never linked.
Safety brakes
Compare-and-set writes, results verified before a retry, a circuit breaker for unusually large changes, a single-runner lock and a global off switch.
An app on the owner’s phone
An installable console with today’s sales per channel, products running low, an activity log and push alerts that respect quiet hours.
Tech & SEO notes
- Next.js on Vercel with cron jobs and a separate watchdog; Neon Postgres for mappings, sales history and logs.
- Shopify Admin GraphQL and the Trendyol seller API, with idempotency keys on every stock write.
- Also converts Trendyol review exports into a Judge.me import file, skipping reviews already imported.
Want this for your business?
Send us your site. We’ll show you what it’s costing you and what we’d build instead.
We reply within 1 hour