River is a multi-language job queue that stores work in Postgres or SQLite alongside application data. It provides retries, scheduling, uniqueness constraints, maintenance workers, and a web UI.
Overview
River encourages enqueueing jobs in the same database transaction as business writes so committed work becomes visible only after commit and rolls back with failures. Go, Java, JavaScript, Ruby, and Rust clients share compatible schemas, allowing polyglot producers and consumers.
Workers register by stable job kind strings, and clients manage goroutine pools, graceful shutdown, periodic cron-style jobs, snoozing, cancellation, batch insertion, and telemetry subscriptions. Cross-language enqueueing lets microservices hand off tasks without duplicating queue infrastructure.
A bundled web UI inspects queues, and Pro features advertise advanced workflow primitives. Documentation covers transactional insertion helpers, unique job keys, and testing utilities that assert enqueued args.
Teams already on Postgres or SQLite adopt River to avoid operating Redis-only queues while keeping distributed systems semantics simpler.
Key features
- Postgres and SQLite backends
- Transactional job enqueue
- Multi-language client libraries
- Automatic retries and scheduling
- Unique job deduplication
- Periodic and cron jobs
- Queue statistics subscriptions
- Inspectable web user interface
Use cases
- Async work after DB commits
- Polyglot microservice handoffs
- Scheduled maintenance tasks
- Rate-limited background processing
- SQLite-backed small deployments