Your Rust API is fast, your p99 is beautiful, and then a user hits “Export to CSV” and your request handler blocks for 40 seconds. That is the moment every Rust service discovers it needs a background job queue — and the moment you find out that the ecosystem’s three main options make wildly different bets about how jobs should be stored, retried, and scheduled.
This is a practical comparison of Apalis, Fang, and Rusty-Celery based on their current releases, not their README promises. I pulled live repository data, read the example code shipped in each repo, and looked at what each library does when a worker dies mid-job.
The Short Answer
Use Apalis. It is the only one of the three that is actively developed (last commit November 28, 2026), has first-class retry/cron/rate-limit layers, and offers both Redis and SQL backends behind one worker API. Pick Fang if you are already running Postgres with Diesel, only need polling workers, and want the smallest possible dependency surface — it is boring in the good way. Skip Rusty-Celery unless you specifically need to interoperate with an existing Python Celery cluster over AMQP; its last commit was June 2024 and it will not compile cleanly against modern dependency trees.
If you take one sentence away: Apalis is a job framework, Fang is a Postgres queue, Rusty-Celery is protocol compatibility.
How the Three Compare
| Dimension | Apalis | Fang | Rusty-Celery |
|---|---|---|---|
| GitHub stars | 1,522 | 722 | 874 |
| Latest activity | Nov 28, 2026 | Jul 2, 2026 | Jun 17, 2024 |
| Current version | apalis 1.3.0 | fang 0.11.0 | celery (unmaintained) |
| License | MIT | MIT | Apache-2.0 |
| Backends | Memory, Redis, Postgres, MySQL, SQLite | Postgres, MySQL, SQLite (Diesel) | AMQP (RabbitMQ), Redis broker |
| Retry with backoff | Built-in RetryPolicy layer | Built-in, per-task | Manual |
| Cron / periodic jobs | apalis-cron | #[cron] tasks | Beat scheduler (partial) |
| Rate limiting | rate_limit(n, per) layer | No | No |
| Concurrency model | tokio::spawn, configurable | Thread pool workers | Tokio tasks |
| Web UI | None built-in | None built-in | None built-in |
| Celery interop | No | No | Yes (wire-compatible) |
Two columns matter more than the rest: backend flexibility and whether the project shipped anything this year. Apalis wins both. Fang wins on simplicity. Rusty-Celery wins on exactly one thing — talking to existing Python infrastructure.
Which One Fits Your Stack
| Your situation | Recommended | Why |
|---|---|---|
| New Rust service, jobs must survive restarts | Apalis + apalis-redis or apalis-sql | Durable backend, retry/cron layers, active maintenance |
| Already on Postgres + Diesel, no Redis in the stack | Fang | Jobs live in your existing database; no new infrastructure |
| Migrating a Python Celery deployment to Rust incrementally | Rusty-Celery | Produces and consumes standard Celery messages over AMQP |
| Need periodic jobs (nightly reports, cleanup) | Apalis (apalis-cron) or Fang #[cron] | Both ship cron support; Rusty-Celery’s beat support is partial |
| Prototyping, single process, jobs can be lost | Apalis MemoryStorage | Zero infrastructure, same worker API as production |
| High job volume with strict rate limits (third-party APIs) | Apalis | Only one of the three with a rate-limit layer |
Apalis: The Framework That Grew Up
Apalis 1.3.0 is structured as a core crate plus backend crates: apalis-redis (1.2.0), apalis-sql (0.7.4) for Postgres/MySQL/SQLite, and apalis-cron (1.2.0) for scheduled work. The worker API is identical regardless of backend — which is the entire point. You prototype against MemoryStorage and switch to Redis or Postgres by changing one type.
| |
The official basic example (from examples/basic/src/main.rs in the repo) shows the full worker surface, including retry policy and concurrency:
| |
Three things stand out compared with the alternatives. First, retries are conditional — you decide whether a panic is retryable, which matters because retrying a panicking job three times just triples your error budget. Second, rate_limit(100, per second) is built into the worker, so hammering a third-party API with 4 concurrent workers does not require a semaphore you wrote yourself. Third, parallelize(tokio::spawn) lets you move job execution off the worker’s own future, which is how you get real parallelism instead of cooperative interleaving.
For production, the Redis backend is the shortest path:
| |
| |
The weakness: Apalis has no admin UI. If your operations team expects a queue dashboard, you will be reading Redis keys or writing SQL against the jobs table. For a Rust-only shop that is acceptable; for a team that came from Sidekiq, it is a real cultural downgrade.
Fang: Postgres-Native Simplicity
Fang 0.11.0 takes the opposite approach: there is no abstraction layer. Jobs are rows in a Postgres (or MySQL/SQLite) table managed by Diesel, and workers are OS threads that poll. If your service already speaks Diesel, Fang adds one table and no new services.
| |
The repo’s simple_worker example is the canonical setup — note that the queue builder takes a connection pool and the worker pool is explicitly sized:
| |
What Fang gets right is retention semantics: RetentionMode::KeepAll keeps finished and failed jobs for inspection, which turns your jobs table into an audit log for free. Retrying is per-task via the Queueable trait, and periodic work uses a #[cron] attribute rather than a separate scheduler process.
What Fang gets wrong, or at least differently: polling. Workers poll the table on an interval, so latency between enqueue and execution is bounded by your poll interval, not by a push notification. At low volume this is invisible. At high volume, aggressive polling plus multiple worker pools means you are paying for a lot of SELECT ... FOR UPDATE SKIP LOCKED traffic. It is a legitimate design — Postgres queues scale further than most people believe — but it is not the same thing as Redis blocking pops.
Rusty-Celery: Great Idea, Abandoned Execution
Rusty-Celery is a wire-compatible Rust implementation of Celery. The pitch is excellent: keep your Python workers, write new ones in Rust, share the same RabbitMQ broker. The code is clean and the API is genuinely pleasant:
| |
The problem is maintenance. The repository’s last push was June 17, 2024. In a two-year gap, the Tokio, lapin, and sqlx ecosystems all moved; building it today typically means pinning old transitive dependencies or patching them yourself. There are also gaps that matter operationally: no rate-limiting layer, no first-class cron, and error handling that pushes retry logic onto your task bodies. If you are running Python Celery today and want to move one worker to Rust, it can work — but budget for dependency archaeology, and do not plan a long-term platform on it.
Operational Pitfalls Nobody Warns You About
1. Backend choice is a durability decision, not a performance decision. MemoryStorage in Apalis is wonderful for tests and catastrophic for production: a deploy drops every queued job. If a job represents money, an email, or a webhook delivery, it needs a durable backend before it needs to be fast.
2. Retries without idempotency are data corruption with extra steps. All three libraries will happily run your job twice if a worker dies after the side effect but before the acknowledgement. Make handlers idempotent — dedupe keys in the database, not in the queue.
3. Fang’s RetentionMode grows your database. KeepAll is great for debugging and terrible for a table with a million rows a day. Pair it with a retention job or use RemoveAllFinished in high-volume tables.
4. Cron jobs and workers need separate deployments. A cron scheduler that lives in the same process as your web server will fire on every replica. Apalis’s apalis-cron and Fang’s dedicated worker binary both assume you run the scheduler as a single instance.
5. Do not put payloads bigger than a few KB in the queue. Redis and Postgres will both do it; your network and your backup window will hate you. Store a pointer, not a 2 MB serialized document.
If you are still choosing your async foundations, the runtime comparison in our Tokio vs async-std vs smol guide is worth reading before you pick a queue — the runtime determines what your worker’s concurrency model can even look like. And if your scheduling needs are simpler than a full queue (just “run this every five minutes”), our Rust task scheduling libraries comparison covers the lighter-weight crates. Teams that ended up on the BEAM instead can compare notes in the Elixir background processing guide, where Oban solves the same problem with a very different philosophy.

FAQ
Is Apalis production-ready?
Yes, with a caveat. Apalis 1.3.0 is stable, actively maintained (commits through November 2026), and its retry, rate-limit, and cron layers are exactly the features that separate a demo from a production queue. The caveat is observability: there is no bundled dashboard, so you need tracing integration plus your own metrics for queue depth and failure rate.
Can I use Fang without Diesel?
No. Fang is built directly on Diesel for its Postgres, MySQL, and SQLite backends, and its task traits assume Diesel connection types. If your project uses SQLx or SeaORM, Apalis with apalis-sql is the better fit because it does not force an ORM choice on you.
Is Rusty-Celery still maintained?
Not meaningfully. The last commit to the main repository was June 17, 2024, at 874 stars. It still works if you pin an older dependency tree, and it remains the only practical way to interoperate with an existing Celery/AMQP deployment from Rust, but it should not be the foundation of a new system in 2026.
Do I need Redis to run background jobs in Rust?
No. Fang runs entirely on your existing relational database, and Apalis supports Postgres, MySQL, SQLite, and in-memory backends. Redis is convenient because blocking pops reduce latency, but a Postgres-backed queue with SKIP LOCKED handles surprisingly high throughput and keeps your infrastructure smaller.
How do I monitor a Rust job queue?
Instrument three numbers: enqueue rate, completion rate, and oldest-pending-job age. The third one is the early warning signal — a growing oldest-job age means your workers are saturated or stuck, long before your error rate moves. Apalis’s enable_tracing() gives you per-job spans to feed into your existing tracing pipeline.
💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com