Urgent.News

What's breaking now, across thousands of outlets.

Tech

Cron or Message Queue Scheduling for 10,000 Delayed Webhook Tasks (and Retry Rules)

Short answer: use a durable queue message for each reservation expiry, and keep a small cron scan as a repair path. The queue gives every delayed webhook task its own retry and idempotency boundary; cron remains useful for finding records whose scheduling transaction was interrupted. Neither mechanism should own a long-running job or hide an unreliable public HTTPS endpoint. Here is the decision…

The article discusses the choice between using a cron scanner or a delayed message queue for scheduling 10,000 delayed webhook tasks, along with retry rules. The recommended approach is to use a durable queue message for each reservation expiry, with a small cron scan as a repair path. The queue ensures that each delayed webhook task has its own retry and idempotency boundary, while the cron remains useful for finding records whose scheduling transaction was interrupted.

Neither mechanism should own a long-running job or hide an unreliable public HTTPS endpoint. The article also provides a decision matrix for determining the best approach based on specific requirements and a code example demonstrating how to implement the suggested solution using the transactional outbox pattern and conditional updates to handle message duplication.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Hitting an exact file size when compressing images in the browser

India's chartered accountancy board caps the photo you upload with your exam form at 50 KB. South Africa's tax service wants supporting documents under 2 MB.

  • Different countries have varying maximum file size limits for uploaded photos.
  • JPEG quality setting doesn't directly correlate with file size.
  • Binary search efficiently finds the right JPEG quality for target file size.

Parseable API keys inherit role permissions across telemetry streams

Parseable API keys inherit role permissions across telemetry streams Parseable stores and queries logs, metrics, traces, and events. It supports native authentication, OIDC, and API keys.

  • Parseable API keys inherit user account role permissions
  • RBAC model includes Admin, Editor, Writer, Reader, Ingestor roles
  • Review and test API keys to enforce proper permission union

Oxlint JS Plugins: Your Custom ESLint Rules No Longer Keep You on ESLint

Every team that has looked at Oxlint has hit the same wall. The benchmarks are great, the built-in rules cover most of what you use, and then someone remembers the twelve custom rules in…

  • Oxlint improves custom ESLint rules with hybrid Rust/JS approach
  • 80% of ESLint users can switch to Oxlint with minimal issues
  • Migration simple via npx @oxlint/migrate eslint.config.js command

Writing an MCP Server: The Tool Description Is the Whole API

Most first MCP servers look the same: someone wraps their existing REST API, exposes one tool per endpoint, ships it, and then watches the model call the wrong tool with the wrong arguments.

  • The tool description defines the entire API in MCP protocol.
  • SDK handles transport, discovery, and validation of tools.
  • Minimal server includes @modelcontextprotocol/server and @modelcontextprotocol/client packages.

More from Sunday 8 November →