Urgent.News

What's breaking now, across thousands of outlets.

Tech

Reusable Product Assets with Go: Reliable Background Removal Under Upload Bursts

The page fires after a course-merchandising upload: the original garment photo exists, but one or more fashion catalog cutouts still show the studio wall because background removal missed its publication deadline. The worker queue looks busy, so the tempting response is to add workers. That can create duplicate assets without telling the on-call whether quality, scheduling, or delivery actually…

The source discusses methods for handling reusable background removal assets in a fashion catalog when faced with high upload bursts. It emphasizes keeping one lossless master per item and generating delivery variants asynchronously. The key points are:

1. Identify the oldest affected item, its last completed stage, and the batch deadline for quick recovery.

2. Maintain a transparent master for each fashion item and generate delivery variants asynchronously.

3. Alert on the age of the oldest incomplete asset instead of just queue depth.

4. Ensure completion on both edge quality and variant delivery.

5. Maintain a clean master to preserve the expensive decision about which pixels belong to the product, allowing smaller derivatives to change with catalog layout and browser mix.

6. Treat each upload as a small state machine with states: received, cutout_ready, variants_ready, and published.

7. Use an idempotency key based on the source content and transformation policy, not just a queue message ID.

8. Schedule jobs through a compare-and-set claim to the asset store and enqueue them on the queue.

9. Handle permanent claims and reconciliation in case of process exits between claim and job record.

10. Instrument every transition and emit a counter for every attempted transition with from, to, and a bounded reason.

11. Use a monotonic per-asset lifecycle and record queue wait and processing duration separately.

12. Set a service-level objective to require 99% of publications to meet the deadline, while acknowledging that visual quality cannot be fully automated-checked.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Daiwa Securities' customer data may have leaked due to unauthorized access

TOKYO (Kyodo) -- Daiwa Securities Group Inc. said Monday that data on around 110,000 customers of its securities brokerage unit and other nonpersonal

  • Approximately 110,000 customers' data potentially leaked
  • Unauthorized access occurred between Friday evening and Saturday morning
  • Personal details, including names, email addresses, and account numbers compromised

More from Tuesday 6 October →