SShortSingh.
Back to feed

Fixing Serverless Timeouts When Fetching YouTube Creator Metrics in Next.js

0
·3 views

A developer building PulseROI, a tool for Indian D2C brands tracking influencer campaigns, found that Vercel cron jobs fetching YouTube Data API metrics for 50+ creator handles frequently timed out past 25 seconds. The original approach, firing all requests at once through Promise.all, caused gateway timeouts, rate-limit hits, and lost data when a single slow call stalled the whole batch. The fix was to process requests in chunked concurrency pools with a per-request timeout wrapper and a hard abort controller. The article shares the TypeScript implementation used in production to keep cron jobs running under about 15 seconds.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Four Plex Media Server CVEs fixed by one upgrade to version 1.43.3.10861

CISA groups four identifiers under Plex Media Server, three of which are request-handling flaws enabling SSRF or URL injection and one that allows arbitrary file writes. The flaws affect versions below 1.43.3.10861, which is listed as unaffected. Prerequisites vary, with one flaw requiring no credentials and others needing a token, an account, or admin rights. The file write flaw is rated with total technical impact, while the request flaws are rated partial. Users are advised to upgrade, restrict search and timeline endpoints to trusted networks, limit admin accounts, and monitor plugin directories for new shared objects.

0
ProgrammingDEV Community ·

Seven Confluence Alternatives Compared for Large Enterprise Migration

Replacing Confluence at a large organization involves more than moving pages, since teams must keep information findable, maintain it collaboratively, manage access, and preserve links and ownership. The article compares seven alternatives across knowledge structure, permissions, collaboration and version history, migration suitability, and AI readiness. It presents the comparison as a shortlist that should be checked against representative content and actual access rules before any broad rollout. Each candidate is matched to use cases, such as ONES.com for connecting knowledge with project work, SharePoint for Microsoft 365 shops, and GitBook for developer documentation. The guide emphasizes testing migration of links, attachments, and permissions with a sample before committing.

0
ProgrammingDEV Community ·

Researchers Map Inner Circuits of AI Models to Make Them More Transparent

Large language models perform complex reasoning, yet even their builders often cannot trace how a given answer was produced, which is a serious concern in high-stakes fields like healthcare and defense. A new discipline called mechanistic interpretability aims to reverse-engineer a trained model's neurons, weights, and attention heads into understandable algorithms and logic circuits. Techniques such as sparse autoencoders are being used to isolate specific internal features tied to concepts like deception, geography, or code syntax. Proponents argue this approach could detect hidden deceptive behavior before deployment and enable targeted edits to models without full retraining. Overall, the field is presented as a way to keep increasingly capable AI systems transparent and aligned with human values.

0
ProgrammingDEV Community ·

Google's Content API for Shopping retirement: what custom Merchant Center integrations must change

Google retired version 2.1 of the Content API for Shopping on August 18, 2026, and requests from projects without an active extension now intermittently fail with HTTP 410 and a content_api_sunset error. All requests are expected to stop working in early 2027. The article notes that managed ecommerce platforms usually handle the migration, so the guidance targets teams maintaining custom scripts or feed services. Developers are advised not to retry failed calls and to log the sunset reason explicitly, since silent failures can leave product data stale in Merchant Center. The migration requires enabling the Merchant API, registering the Google Cloud project with the Merchant Center account, creating an API-input data source, and updating method names, product ID formats, and price structures. The author also promotes a free static scanner and a paid diagnostic service offered by their company.