Three photos of a vintage brass desk lamp land on a marketplace server, and the seller wants a rotatable preview on the listing. Holding that HTTP upload open during mesh construction invites gateway timeouts, and an impatient second click on the submit button triggers a duplicate build.
Returning an application-owned job record right away avoids both traps. The listing page tracks progress cleanly while a background worker handles generation, validation, and storage.
Close the Upload Request With an Application Job ID
An upload endpoint only needs to validate the three lamp images, write an internal job row, push a message onto your queue, and return that local job ID to the browser.
Once the browser receives that reference, the listing editor can display Queued and Generating states without blocking form edits.
Skip exact percentage bars unless the upstream worker receives measurable progress events. If the seller closes the browser tab, the server-side job continues uninterrupted, and your own queue controls concurrency before requests ever hit an external endpoint.
That lifecycle requirement separates production backends from ad hoc tooling. An MCP connection inside a chat client works fine when a developer wants a quick placeholder mesh during a prototype session. Marketplace listings need deterministic retries, versioned storage, and seller-scoped permissions, which belong behind a standard backend service integration.
Hand Off Reference Views to a Background Worker
Once the job record is committed, a queue consumer picks up the validated lamp photos and dispatches the external build. When your backend workers generate 3D models through an API from text or one to five views of the same object, their first step is to bind the remote task identifiers to that local job row before any polling starts.
Feed the worker coherent angles of a single item, such as one front and two side shots of the brass lamp, and reject wide room photos or a second lamp style before dispatch.
Not every catalog update needs fresh geometry, either. When an already approved lamp mesh only needs a brushed-nickel or matte-black shade variation, route that job through reference-image retexturing for PBR or shaded maps instead of rebuilding the 3D form from scratch.
On a 3D generation service such as Hyper3D, accepting a job returns a task ID and a subscription key, while subsequent status, balance, and download calls do not consume generation credits. Store both identifiers server-side alongside your listing ID, input version, and an idempotency key like listing_4821:v2 so the browser never sees a provider credential.
If a worker container restarts mid-run, those persisted tokens let the replacement process resume polling the active build rather than spawning an orphan asset. A scheduled polling loop with backoff also prevents page refreshes from hammering the status endpoint.
Route Input Errors, Auth Alerts, and Rate Limits Separately
Collapsing every non-200 response behind one generic retry button wastes credits and hides broken credentials. Split error handling across four distinct paths:
Cap worker concurrency below your active plan's ceiling rather than discovering limits through 429 bursts. Under a Business allowance of five concurrent tasks and 120 to 240 requests per minute, an application-side semaphore keeps status polling and upload spikes from starving active builds. Monitor queue age by failure type in your own telemetry instead of quoting sellers a fixed completion minute.
Verify Downloaded Files Before Updating the Listing
Have the worker fetch output files by task ID only after the job reports Done, then validate the archive before touching the live listing record. Tie every attempt to its exact input version: a repeated click on the same lamp photos should return the existing in-flight job, whereas a deliberate retry after new photography creates a fresh version without overwriting an already approved preview.
Match each validated export to the system that consumes it:
GLB for browser viewers: Check lightweight geometry and texture budgets on a target phone before publishing.
USDZ for mobile AR: Verify real-world lamp dimensions and upright tabletop placement.
FBX or OBJ for artist archives: Keep an editable source mesh alongside the version record whenever a 3D artist may refine materials later.
STL for physical print checks: Reserve watertight exports for physical scale or fabrication tests.
Treat upstream cloud buckets as short-lived staging. Business plans typically retain uploads and outputs for seven days, whereas Enterprise contracts set custom retention windows and no-training terms for unreleased designs. Pull completed files into private review storage immediately, serve approved models from your own media CDN rather than a temporary provider URL, and apply clear purge rules for seller photos and rejected runs.
Stand up the local queue, 429 backoff, and private bucket transfer first. Once those pieces hold, run three clean photos of one desk lamp end to end until the GLB rotates smoothly from marketplace storage.
