Urgent.News

What's breaking now, across thousands of outlets.

Tech

Polling Video Status Before Download Into a Privately Controlled Bucket

Short answer: treat generation as a submitted job, not a completed video. Poll with exponential backoff and a hard deadline, obtain the download URL only after success, and copy the bytes into a private bucket you control before deleting any provider-side asset. For a customer-support team turning approved user images into campaign clips, this boundary preserves the moderation decision while…

When generating a video for a customer support campaign, treat the process as a submitted job rather than a completed video. Poll the status with exponential backoff and a timeout, only after which obtain the download URL. Store the video bytes in a private bucket controlled by your team before deleting any provider-side asset. This boundary preserves moderation decisions while avoiding the slow renderer from being part of the request path.

Treat each phase separately: submission, rendering, copying, and storage. Use durable states like submitted, rendering, copying, and stored in your own database, and record the provider job ID and idempotency key at submission. Stop polling after a reasonable deadline and enter a failed state if the rendering times out. Never attach the API bearer token to the presigned download URL; treat it as a separate authority.

Only mark storage as complete after the private destination has accepted the object. Keep the moderation gate in place before submission, and validate the uploaded file's actual content rather than trusting its extension or MIME type. Implement the handoff as a resumable worker using the same base URL and key for generation and storage, supplying idempotency keys on writes, honoring Retry-After, and never forwarding that key to the download URL. Generate production request types from the discovery schema instead of guessing optional fields.

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

AWS says data centers in space won't be viable for 10 or 20 years

Amazon Web Services CEO Matt Garman claims that data centers in space are "highly unlikely to be economically viable or practical in the next decade or two." Garman said as much on Alex Heath's…

  • AWS CEO Matt Garman doubts space-based data centers will be viable in 10-20 years.
  • Current space launch limitations and demand surge pose challenges for orbital data centers.
  • Deserts considered most probable site for data centers, but capacity shortfall expected.

Azure Outage Triage, Browser MCP, Code Security, and Agent Tools

These five projects sit at different layers of the development stack, but they share a practical theme: giving developers better context before they change code.

  • Microsoft 365 Status and Azure Service Health separate incidents
  • Open Orange runs Cloudflare Workers on Azure without code changes
  • AI-assisted security validation gate identifies code vulnerabilities

More from Saturday 14 November →