gocronx

gocronx / seqdelay

Public

High-performance delay queue

47
3
100% credibility
Found Mar 16, 2026 at 47 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

Seqdelay is a Go library providing a high-performance delay queue for scheduling tasks to execute after precise delays, suitable for embedded use or as a standalone HTTP service backed by Redis.

How It Works

1
💡 Spot a need for timed actions

You realize your app needs to automatically handle things like canceling unpaid orders after 15 minutes or sending reminders before coupons expire.

2
📦 Pick up seqdelay

You bring in this handy tool that makes scheduling these future actions super simple and fast.

3
🔗 Connect your storage

Link it to a reliable shared storage spot so your delayed tasks stay safe even if your app restarts.

4
Schedule your first task

Tell it to wait exactly the right amount of time, like 15 minutes, then kick off your custom action, such as closing an order.

5
Time passes—what happens?
Task fires

It triggers your action, like auto-cancelling and freeing up stock.

Cancel early

You stop it safely before it runs, keeping everything tidy.

🎉 Automation magic

Your app now handles delays reliably at scale, saving time and preventing mistakes like oversold inventory.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 47 to 47 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is seqdelay?

Seqdelay is a Go-based high-performance delay queue that schedules tasks to execute after precise delays, down to 1ms, using Redis for persistence. Developers embed it directly in Go services for zero-overhead callbacks or run it as a standalone HTTP server for any language via endpoints like /add, /pop, /finish, and /cancel. It handles real-world needs like auto-cancelling unpaid orders after 15 minutes or retrying payment callbacks with exponential backoff.

Why is it gaining traction?

It crushes benchmarks—4.4M tasks/sec on adds, zero-loss firing on 1M tasks—beating Redis Sorted Set polling with O(1) scheduling via a time wheel. Dual modes mean Go teams get embedded speed while HTTP unlocks polyglot backends, and built-in leader election supports distributed deploys without custom plumbing. Stats endpoint and task querying add easy monitoring.

Who should use this?

Backend engineers at e-commerce shops handling order timeouts, inventory releases, or coupon expirations. SaaS devs sending membership reminders or scheduled pushes. Teams needing high-performance queue for payment retries or rate-limit cooldowns in microservices.

Verdict

Solid for Go high-performance backend needs, with comprehensive tests, examples, and Redis Cluster support, but at 47 stars and 1.0% credibility, it's early-stage—prototype it before production. Worth watching if you need a lean delay queue alternative.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.