# ouqiang/delay-queue

延迟队列

Repository: https://github.com/ouqiang/delay-queue
Canonical: https://ross.abutalabs.com/products/delay-queue
Language: Go
License: MIT
License Family: permissive
Topics: delayqueue, delayed-job, redis, golang, delay-queue
Last push: 2017-12-03T05:46:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3355, "days_push": 3195, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1194, forks 236 (observed 2026-08-28T04:03:56.774173+00:00)

## What it is
A Redis-based delay queue service written in Go, inspired by Youzan's delay queue design. It exposes an HTTP API for pushing delayed jobs and long-polling consumers, using Redis sorted sets to trigger tasks when their execution time arrives.

## Use cases
- automatically close orders unpaid after 30 minutes
- auto-approve reviews 5 days after order completion
- send membership expiry reminder SMS 15 and 3 days before
- implement Alipay-style async notification retry intervals
- schedule delayed background jobs with Redis
- retry failed webhook notifications with increasing delays

## When to choose
- you need delayed task execution backed only by Redis without extra infrastructure
- you want a simple HTTP API for pushing and polling delayed jobs
- you need retry patterns with increasing intervals like payment notification callbacks

## When to avoid
- you need a full-featured message broker with high throughput like Kafka or RabbitMQ
- you cannot tolerate per-second polling granularity for task triggering
- you need persistent job storage beyond Redis or complex routing/topology features

## Facets
- artifact type: service
- maturity: maintenance
- function: message-queue, scheduling, http-server
- domain: backend, microservices
- platform: go, self-hosted
- tags: delay-queue, redis, delayed-jobs, task-scheduling, http-api, golang, messaging, linux, docker

## Member repositories
- ouqiang/delay-queue (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.774173+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:10.289005+00:00, confidence not recorded.
  - readme: https://github.com/ouqiang/delay-queue (fetched 2026-08-28T04:03:56.774173+00:00, sha 5a77ce5a7d94)
- Data as of 2026-08-30T08:39:29.467469+00:00.
