Catalog systems · 7 min read
One catalog API for multi-vendor health monitoring and inventory sync
When a furniture retailer pulls catalog feeds from a dozen vendors, the first thing that breaks is not the feed. It is the truth. One vendor sync fails on a Tuesday night and nobody notices for nine days. Another feed quietly drops a category, so two hundred products sit in the store with last season's prices. A third starts sending the same SKU under a new identifier and the catalog grows duplicates. Everyone assumes someone else is watching.
For a large furniture retailer on Shopify Plus, that was the operating reality: a dozen small programs pulling vendor catalogs into the store on their own schedules, and no single place that could answer basic questions. What synced last night? Which vendor is stale? What does the feed contain that never made it into the store? We built a service called pipeline-orchestrator, the catalog API and health engine at the center of the stack, so those questions became cheap to ask.
What does a multi-vendor catalog API actually do?
The orchestrator is three systems sharing one PostgreSQL database.
A threaded catalog API, meaning it answers many requests at the same time. Every product, vendor listing, and sync run lives in one database behind that single API. Feed programs drop their incoming rows in through it, storefront tools read the official records out of it, and every change made in Shopify is recorded back through it. It is the ecommerce catalog API the rest of the platform treats as the source of truth: if the API does not know about a row, that row does not exist.
A multi-vendor health engine. Every sync run leaves a written record: items read, created, updated, skipped, and failed, with timestamps and per-item errors. From that history the engine works out each vendor's freshness, failure rate, and drift, and publishes those summaries as API endpoints rather than a nightly report nobody opens.
Gap-analysis endpoints. Because the incoming feed data and the recorded store state live in the same database, the API can compare them directly. The gap endpoints sort every SKU into missing-in-store, missing-in-feed, price drift, or unpublished, which turns "we think the catalog is fine" into a list you can act on.
How do you keep a renamed vendor SKU from duplicating the catalog?
The database is built around SKUs. A vendors table owns each feed's credentials and schedule. A products table holds the official record, and a vendor_listings table maps each vendor's SKU to the product it belongs to, which is how the API survives a vendor renaming a product mid-season. Sync activity is only ever added to, never updated in place: one runs row per sync and one run_items row per SKU touched. Any run can be replayed, audited, or compared against any other.
That history is what makes multi-vendor health monitoring honest. Health comes from what actually happened, not from a service reporting that it feels fine.
How do you keep a slow vendor feed from blocking the rest?
Inventory sync orchestration is a traffic-management problem before it is anything else: each vendor sync gets its own worker and its own database session from a fixed-size pool, so a twenty-minute crawl of a vendor's portal grinds away without starving the ninety-second CSV pulls behind it.
Two details keep this safe. A lock keyed on each vendor ID makes a second sync of the same vendor do nothing, which matters when a scheduled run and a manual pull collide. And incoming rows are moved into the official tables in one all-or-nothing step per run, so a worker that dies halfway through a sync leaves that vendor's catalog exactly as it was, never half-written.
How do you find what is in the feed but missing from the store?
The API compares the incoming feed data with the recorded store state inside one database, so the answer is a straightforward lookup rather than an export somebody pivots in a spreadsheet. The endpoints answer four questions per vendor: what is in the feed but not the store, what is in the store but not the feed, where prices have drifted, and what is loaded but unpublished. The same endpoints serve the scheduled syncs in the multi-vendor catalog pipeline and the manual pulls an operator triggers by hand, so automation and humans are judged by one yardstick.
How do you know which vendor feed is stale right now?
From run history, not self-reported pings: the health engine updates each vendor's status after every completed run, freshness measured from the last successful sync, a rolling failure rate, item-level error counts, and drift detection for SKUs that used to appear and then stopped. Those summaries come back as ordinary API responses, which is what lets the furniture ops dashboard render a per-vendor status board without knowing anything about how syncs work internally.
What does it cost to keep forty thousand SKUs in sync?
The catalog API tracks on the order of forty thousand SKUs across roughly a dozen vendors, with run history growing into the millions of rows. That is routine work for a single well-organized database, not a problem that needs a fleet of servers. The tables are indexed for exactly the four questions the system gets asked: the latest run per vendor, each SKU's history, feed-versus-store comparisons, and health summaries.
Operationally it is one small service and one modest database. Compute cost is trivial, the worker pool absorbs the busy moments, and the largest line item is the database itself, which we sized with room to spare rather than for heroics. Vendor syncs run on their own schedules through the day, health summaries refresh as runs complete, and there is no nightly batch window because nothing waits for one.
Why do multi-vendor catalogs fail quietly?
The uncomfortable truth about multi-vendor catalogs is that they do not fail loudly. They drift. A feed changes shape, a vendor retires a collection, a login expires, and the store keeps selling against a catalog that is quietly becoming fiction. The value of an ecommerce catalog API is not adding and editing product rows. It is that every one of those failure modes shows up in the run history or in a gap bucket, on an endpoint another tool can check automatically.
Questions this answers
How do I sync inventory from multiple vendors into Shopify?
Route every vendor feed through one catalog API that holds each feed's incoming rows, moves them into the official tables in one all-or-nothing step per run, and records every Shopify change back through the same API. That is how the multi-vendor catalog pipeline keeps a dozen vendors on one source of truth instead of a fleet of independent jobs.
What is a catalog API in ecommerce?
A catalog API is the single service that owns your product, vendor, and sync-run records. Every other tool drops its incoming rows in through it, reads the official records out of it, and logs changes back to it, so if the API does not know about a row, that row does not exist for the store.
How do I know which vendor feed is stale or broken?
Track every sync run as a written history: items read, created, updated, skipped, and failed. From that history a health engine can work out freshness from the last successful run and a rolling failure rate per vendor, published as endpoints the furniture ops dashboard renders as a status board.
How do I catch vendor price changes before customers see them?
Gap-analysis endpoints compare the incoming feed with the recorded store state inside one database and sort every SKU into missing-in-store, missing-in-feed, price drift, or unpublished. You get a list you can act on after each run instead of finding stale pricing nine days later.
Can one PostgreSQL database handle a dozen vendor feeds?
Yes. This system tracks roughly forty thousand SKUs across a dozen vendors with run history in the millions of rows, which is routine for a single database once its tables are indexed for the four questions it gets asked: the latest run per vendor, each SKU's history, feed-versus-store comparisons, and health summaries.
What happens if two syncs for the same vendor run at once?
A lock keyed on each vendor ID makes the second sync do nothing, which is what protects the catalog when a scheduled run and a manual pull collide. A slow vendor gets its own worker and database session, so it never queues behind or starves the others.
Why does my Shopify store keep selling discontinued or mispriced products?
Multi-vendor catalogs fail quietly: a feed changes shape, a vendor retires a collection, or a login expires, and the store keeps selling against a catalog that is becoming fiction. Every one of those failure modes only surfaces if you record run history and compare the feed against the store. Talk to us if that sounds familiar.
Which vendor is stale right now?
If your store is syncing vendor feeds into Shopify and you cannot answer "which vendor is stale right now" in under a minute, that is fixable. Talk to us about what a pipeline-orchestrator looks like for your catalog, or run the agent check to see how your storefront reads to the machines increasingly doing the shopping.